Kodi Joypad Issues...
-
@Leo1372 did you install kodi 16 first?
-
No I have not...
I am on RetroPie 3.5 currently, and Kodi 15.2.
I was wondering how to update to Kodi 16 but never really figured it out! So help on that be good to start off.
Thanks
-
@Leo1372
sudo apt-get remove kodi
update your setup script and reinstall kodi from the experimental menu as usual. You need to be on Jessie for it to work as wheezy is not supported. -
Kodi xml buttons usually start at 1 and count up, so your stop button may not work. To make a more complete xml you can add the lines for all buttons and type noop as the command to not do anything when pressed, so if in the future you want more commands, it's already set up.
-
Alright, Kodi has been updated, but the issue remains! :(
-
@wetriner Thank-You! I am not an expert on coding and line writing, I am more of a follow the tutorial guy, so a more easier in depth description of your most recent post would be nice!
-
@Leo1372 the controller name can be picky make sure you copy exactly what shows up when you run
cat /proc/bus/input/devices
including spaces and just swap settings in and out based on the examples in the wiki until you figure it out. -
<button id="1">Select</button><!-- A? --> <button id="2">Back</button><!-- B? --> <button id="3">Info</button> <button id="4">Stop</button> <button id="5">Rewind</button><!--L?--> <button id="6">FastForward</button><!--R?--> <button id="7">noop</button> <button id="8">noop</button>
I don't have your controller, so I can't even say that this makes sense or works. All I was trying to say is that keeping it organized for when you want to make additions or changes is a good idea. Optionally, the button name comments can help a lot as well, and get ignored by Kodi.
-
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.