Wireless Xbox 360 controller issues in Kodi 16.1 on RetroPie 4.0.1
-
@backstander make a backup file of
/usr/share/kodi/system/keymaps/joystick.Microsoft.Xbox.360.Controller.xml
and then delete the file and start from scratch based on https://github.com/retropie/retropie-setup/wiki/KODI#joypad-supportMight give you a better idea which buttons do what rather than slogging through the conflicts of the default xml
-
After some playing around with the
joystick.Microsoft.Xbox.360.Controller.xml
file and runningjstest /dev/input/js0
I discovered that what the jstest number is you have to add 1 to it for the xml file. For example if the jstest says button A = 0 then button A = 1 in the xml file.Here is my mapping for my setup (if I redo the whole file I'll post it to Pastebin because it will probably be big):
<!-- Linux alterations for default Xpad Driver --> <!-- Button Mappings in Windows: --> <!-- --> <!-- ID Button --> <!-- --> <!-- 1 A --> <!-- 2 B --> <!-- 3 X --> <!-- 4 Y --> <!-- 5 Left Shoulder --> <!-- 6 Right Shoulder --> <!-- 7 Left Trigger (linux) --> <!-- 8 Right Trigger (linux) --> <!-- 9 Back --> <!-- 10 Start --> <!-- 11 Guide --> <!-- 12 Left Stick Button --> <!-- 13 Right Stick Button --> <!-- 14 D-Pad Left --> <!-- 15 D-Pad Right --> <!-- 16 D-Pad Up --> <!-- 17 D-Pad Down --> <!-- Axis Mappings: --> <!-- --> <!-- ID Button --> <!-- --> <!-- 1 limit +1 Left Stick Right --> <!-- 1 limit -1 Left Stick Left --> <!-- 2 limit +1 Left Stick Down --> <!-- 2 limit -1 Left Stick Up --> <!-- 3 limit +1 Right Stick Right --> <!-- 3 limit -1 Right Stick Left --> <!-- 4 limit +1 Right Stick Down --> <!-- 4 limit -1 Right Stick Up --> <!-- Hat Mappings for some drivers: --> <!-- --> <!-- ID Position Button --> <!-- --> <!-- 1 up D-Pad Up --> <!-- 1 down D-Pad Down --> <!-- 1 left D-Pad Left --> <!-- 1 right D-Pad Right -->
-
Here is a work in progress of my
joystick.Microsoft.Xbox.360.Controller.xml
file:Edit: I should note that this config uses the left analog stick to move through the menus. I tried setting the dpad but no matter what I tried it would move 2 places in the menu so it was like double tapping all the time.
-
Just a heads up!
I ran
sudo apt-get update && sudo apt-get dist-upgrade
yesterday and it updated my xpad driver and now the buttons have changed again. I had to use my keyboard to navigate to the Controller Configurations UI in Emulation Station to reconfigure my Xbox 360 controller. Also Kodi 16.1 was completely messed up again so I uninstalled Kodi from the RetroPie Setup Script and completely deleted everything in/usr/share/kodi/
. Then I reinstalled Kodi which give me the originaljoystick.Microsoft.Xbox.360.Controller.xml
configurations. Kodi is working except the dpad will move 2 places like it is being double tapped. This was the same issue as before and is why I setup the left analog stick to navigate and the dpad to volume up and down in my customjoystick.Microsoft.Xbox.360.Controller.xml
file above.Does anyone know what could fix the dpad double tap in Kodi? No where else in RetroPie has this issue.
-
I actually fixed this by just running the Update All Installed Packages from the RetroPie Setup Script. I now have the trigger patched xpad driver again and my joystick.Microsoft.Xbox.360.Controller.xml file works for Kodi again!
-
I've followed your suggestion and copied the file into my directory yet when I launch Kodi, nothing changes. It doesn't seem to load the new keymap. It maybe worked once and had the issue of a double press on d-pad left or right and then when I went to relaunch it, it was back to being issue #1 as you described it. I've looked in the logs for Kodi and it seems to be recognizing the input as the 360 wireless controller but not loading the keymap that I've added to the directory. Any suggestions on where I should look to try and narrow this down?
-
@beankid just install the kodi 17 update and it will work (it's on the forum if you search it)
-
great that works out!!!! Finally!
-
@backstander I tried using you config but then the controller does not work in kodi at all, I ended up downgrading the kernel and it's working fine now in Kodi. Still having trouble with Amiga emulation though..
-
@Rascas has posted that "Kodi 17 beta 7 available for RetroPie"
https://retropie.org.uk/forum/topic/6308/testing-kodi-17-beta-7-available-for-retropieThis has a kodi-peripheral-joystick addon that should help you get your controllers working in Kodi.
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.