Custom Kodi button mapping
Hi, I'd like to adjust
share/system/.kodi/userdata/recalbox.xmlto my needs. This file defines the game pad button mapping to Kodi controls. I have 2 questions:
- Will it be overwritten by recalbox?
- How to find out the IDs of the controller buttons?
Substring last edited by Substring
@robsdedude Hey !
May I suggest you have a look at https://gitlab.com/recalbox/recalbox-configgen/blob/master/configgen/generators/kodi/kodiConfig.py ?
The input and controller classes here have 3 possible informations regarding any "input" :
- the input type (button/axis/hat)
- the SDL id
- the event id
1 controller class is intanciated for each controller passed as argument to emulatorlauncher.py, each 'input' is an input instance, all listed in the inputs dicttionnary.
I've just opened a pull request because I think my modification could be of interest for others as well.
I still have to test it, though.