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 & PS4 Dual Shock Controller (WIRED) Problem

    Scheduled Pinned Locked Moved Help and Support
    5 Posts 4 Posters 4.4k 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.
    • P
      PetroRie
      last edited by PetroRie

      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.

      RascasR D 2 Replies Last reply Reply Quote 0
      • RascasR
        Rascas @PetroRie
        last edited by Rascas

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

        1 Reply Last reply Reply Quote 0
        • P
          PetroRie
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • D
            dover19 @PetroRie
            last edited by

            @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 indeed Wireless Controller, but it doesn't seem to work.

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

              @dover19 use kodi 17

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