Nvidia Shield TV Controller Mapping on Kodi 17

Hi there,

I’m stumbling around in the dark trying to find a solution to my problem that I believe should be fairly straight forward. I’ve installed Kodi, sorted out all my profiles etc and I’m just trying to map a couple of buttons on my controller for some usefulness. The controller itself works great and was immediately recognised as a Nvidia Shield controller by Kodi. I did the initial controller setup which went fine. Once all was good there I went about trying to map a couple of the buttons to do specific tasks, the first of which was to toggle the watched tick on various videos.

Having Googled my head off I found some information regarding joystick.xml and how it should be put inside the keymaps folder within the profile being used. I did this and edited it to suit my needs but nothing happens, I also tried swapping buttons around to see what was going on but the map seems to be getting completely ignored. To that end I though perhaps it was down to being inside my profile so I put it into every “keymaps” folder that I could find to no avail.

I found the Nvidia map inside .kodi/userdata/addon_data/peripheral.joystick/big/long/chain/of/stuff/Nvidia Game controller etc. I then checked which button was mapped to the right thumb click (analogue button) and noted that it was button 10. From there I created a joystick.xml with the following:

Code:
<keymap>
  <global>
    <joystick name="Nvidia Game Controller etc">
      <button id="10">ToggleWatched</button>
    </joystick>
  </global>
</keymap>

As above, I eventually stuck it in every keymaps folder I could find but it made no difference, button 10 was effectively “back” regardless of what I tried.

Am I missing something really daft here? I got the Nvidia Game Controller name from the Kodi.log, I can’t remember exactly what it was as I’m running from memory.

Any help would be gratefully appreciated, I’ve gone through all the FAQs I could find but they aren’t very straight forward.