Kodi Joypad Issues...
-
Sorry I went away for a bit.
@wetriner can I just copy your example and input my button id's?
@herb_fargus Yes I have checked that and made sure it is the same.
So would this work?
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<global>
<joystick name="usb gamepad ">
<button id="1">Select</button><!-- A? -->
<button id="2">Back</button><!-- B? -->
<button id="0">Info</button>
<button id="3">Stop</button>
<button id="4">Rewind</button><!--L?-->
<button id="5">FastForward</button><!--R?-->
<button id="8">noop</button>
<button id="9">noop</button>
<axis id="0" limit="+0">Right</axis>
<axis id="0" limit="-0">Left</axis>
<axis id="1" limit="-1">Up</axis>
<axis id="1" limit="+1">Down</axis>
</joystick>
</global>
</keymap> -
@Leo1372 That was just an example of what I was talking about, which is what you asked for. You should be trying your own xml. If you're not getting any buttons responding, something else is wrong, like the name, and you could check the log for more info. You will probably need some tweaking. I just used putty and kept tinkering with it to finally get all my controllers working the way I want. Kodi xml is still pretty confusing to me. The ids kind of match what's in retroarch-joypad file or jstest but not always. I ended up setting all unknown button IDs to a corresponding Notification command, like Notification("Button 1",,.5), so I could get them all sorted out.
-
Thank-you for all of the help, I've started to get a grasp of this!
-
Alright. I got everything working. But, I thought it would be a good idea to update to 3.6. Everything works except my joypad in kodi. Everything in that area is hosed. Is there a way to revert back to 3.5 without losing all my data?
Leo
-
Configuring joysticks in Kodi on the RPi now is the same as configuring them in other platforms/OSs.
Some joysticks are plug n play, the most common ones like Logitech, PS3 etc, don't need any configuration.
Others needs the creation of a keymap in one .xml file.
You can read all about configuring them here:
http://kodi.wiki/view/KeymapI agree that it is not very easy or straightforward, but if you spend some time understanding how keymaps works in Kodi, you will see that it is not that hard.
-
@Rascas also as an aside I've submitted a PR for the xboxdrv driver : https://github.com/xbmc/xbmc/pull/9590
-
@Rascas I have a keymap xml file (based on the kodi setup on the wiki) set up it worked before the upgrade but not after, here it is:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<global>
<joystick name="usb gamepad ">
<button id="1">Stop</button> <!--X-->
<button id="2">Select</button> <!--A-->
<button id="3">Back</button> <!--B-->
<button id="4">Info</button> <!--Y-->
<button id="5">Rewind</button> <!--L-->
<button id="6">FastForward</button> <!--R-->
<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> -
Which upgrade are you talking about ? Joysticks only work in this version of Kodi 16. Make sure the gamepad option is enabled in Kodi -> Settings -> Settings ->Peripherals.
-
@Rascas The retropie 3.6 update, and how do I set setting periphrials?
-
@Leo1372 In Kodi -> Settings -> Settings ->Peripherals
Kodi 16 + joysticks was tested in RetroPie 3.6. Keep in mind that if you update the RetroPie-Setup scripts and make a Binary based instalation, you will get the very latest changes to RetroPie, so not the same as installing a clean RetroPie 3.6 image.
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.