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

    Button mapping

    Scheduled Pinned Locked Moved Help and Support
    4 Posts 2 Posters 1.6k 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.
    • Drakaen391D
      Drakaen391
      last edited by

      What can I use to figure out my controllers button map?

      I have a generic PS3 controller (afterglow)

      I tried to map hot keys the same as my PS3 controller, however it's not the same button mapping...

      Thanks in advance

      RPi B & RPi 3B OC (Now Raspberry pi 4b 8gb)
      Retropie (Latest Stable)
      PiBox with Wind Tunnel Cooling System

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

        There's a file generated after the configure input emulationstation dialog. The joypad config files are located in /opt/retropie/configs/all/retroarch-joypads, if you were to compare two configs that you wanted to be the same. Since you're looking for hotkey changes, just make sure that for example, input_save_state_btn is set to the same value as input_r_btn assuming you want the default hotkey locations.

        Wiki Page showing the default hotkey locations

        For a quick reference and assuming all button values are the same between controllers, you can run diff CONTROLLERNAME1.cfg CONTROLLERNAME2.cfg to give you a quick listing of the lines that are different between each file.

        1 Reply Last reply Reply Quote 0
        • Drakaen391D
          Drakaen391
          last edited by

          I am wanting to use the PS button for the hotkey, but it doesn't match the brand name PS3 controller

          RPi B & RPi 3B OC (Now Raspberry pi 4b 8gb)
          Retropie (Latest Stable)
          PiBox with Wind Tunnel Cooling System

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

            You can use jstest /dev/input/js0 or js1, js2 etc... to determine the value of the middle button. Then you can type it into your retroarch-joypads config file.

            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.