RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Kodi Joypad Issues...

    Scheduled Pinned Locked Moved Help and Support
    19 Posts 4 Posters 7.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Leo1372
      last edited by

      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>

      W 1 Reply Last reply Reply Quote 0
      • W
        wetriner @Leo1372
        last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • L
          Leo1372
          last edited by

          Thank-you for all of the help, I've started to get a grasp of this!

          1 Reply Last reply Reply Quote 0
          • L
            Leo1372
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • RascasR
              Rascas
              last edited by

              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/Keymap

              I 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.

              herb_fargusH 1 Reply Last reply Reply Quote 0
              • herb_fargusH
                herb_fargus administrators @Rascas
                last edited by

                @Rascas also as an aside I've submitted a PR for the xboxdrv driver : https://github.com/xbmc/xbmc/pull/9590

                If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

                1 Reply Last reply Reply Quote 0
                • L
                  Leo1372
                  last edited by

                  @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>

                  1 Reply Last reply Reply Quote 0
                  • RascasR
                    Rascas
                    last edited by Rascas

                    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.

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      Leo1372 @Rascas
                      last edited by

                      @Rascas The retropie 3.6 update, and how do I set setting periphrials?

                      RascasR 1 Reply Last reply Reply Quote 0
                      • RascasR
                        Rascas @Leo1372
                        last edited by

                        @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.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        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.