Recalbox Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • recalbox.com
    • Gitlab repository
    • Documentation
    • Discord

    Custom Kodi button mapping

    GamePad/GPIO/USB encoder
    kodi button mapping
    2
    3
    1280
    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.
    • Robsdedude
      Robsdedude last edited by

      Hi, I'd like to adjust share/system/.kodi/userdata/recalbox.xml to my needs. This file defines the game pad button mapping to Kodi controls. I have 2 questions:

      1. Will it be overwritten by recalbox?
      2. How to find out the IDs of the controller buttons?
      Substring 1 Reply Last reply Reply Quote 0
      • Substring
        Substring @Robsdedude 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.

        Former dev - Please reply with @substring so that i am notified when you answer me
        Ex dev - Merci de me répondre en utilisant @substring pour que je sois notifé

        1 Reply Last reply Reply Quote 1
        • Robsdedude
          Robsdedude last edited by

          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.

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

          Want to support us ?

          71
          Online

          99.6k
          Users

          28.1k
          Topics

          187.1k
          Posts

          Copyright © 2021 recalbox.com