Kodi & PS4 Dual Shock Controller (WIRED) Problem
-
Hello lads,
I'm having a problem with Kodi on a Raspberry 3. I have installed everything and the controller runs fine within the emulators and the menus. But when I load Kodi my keys get messed up. Nothing works except the shoulder buttons (left right) but thats it. I tried to edit the .XML file in the keymap folder. Nothing works. If I connect a keyboard on the first USB port it doesn't work. I tried different .XML files and nothing works. It's annoying because I really want to use Kodi to stream movies.
Here is my joystick.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<global>
<joystick name="USB gamepad ">
<button id="3">Select</button>
<button id="2">Back</button>
<axis id="1" limit="+1">Right</axis>
<axis id="1" limit="-1">Left</axis>
<axis id="2" limit="-1">Up</axis>
<axis id="2" limit="+1">Down</axis>
</joystick>
</global>
</keymap>EDIT:
I used the following XML file: https://github.com/notspiff/kodi-cmake/blob/master/system/keymaps/joystick.PS4.Controller.xml
But it still doesn't work.
-
@PetroRie Your Joystick name (<joystick name="USB gamepad ">) must match what you get with:
cat /proc/bus/input/devices
Then you have to find out what are the respective buttons ids of your controller and map them accordingly.
For more information check the RetroPie and Kodi Wiki's and maybe it is better to ask for help in Kodi's forum since this is only related to Kodi. -
I fixed it! Here is how. First; whenever I connect my PS4 controller Kodi cannot start for some reason. I decided to format the SD card and re-install everything and now it works. The mistake I made is that I didn't use my keyboard at the beginning, I didn't configure my keyboard. So that is why I couldn't use my keyboard in Kodi. Everything works great now.
-
@PetroRie How did you get this to work? I'm not able to get my PS4 controller to work in KODI either. I used the same XML file you attached and double checked with
cat /proc/bus/input/devices
to confirm that my controller name is indeedWireless Controller
, but it doesn't seem to work. -
@dover19 use kodi 17
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.