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

    Mapping controllers with Joy2key

    Scheduled Pinned Locked Moved Help and Support
    contollersjoy2keyinput
    11 Posts 4 Posters 4.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.
    • D
      dudleydes @Chuck_B
      last edited by

      @chuck_b It would be useful if you can give a reason why you wish to map joystick buttons to keyboard keys as well as which joy2key program you are referring to.

      There is the custom RetroPie script, joy2key.py, which lets gamepads to be used in the on-screen menus such as Runcommand. This script only works in apps that run in the terminal.

      There is also JoyToKey that enables gamepads to emulate keyboard input in apps such as emulators. I've never much joy getting this to run in RetroPie. The preferred option is to use xboxdrv, which can be installed from the setup script. You can find an extensive tutorial on xboxdrv at: https://retropie.org.uk/docs/Universal-Controller-Calibration-&-Mapping-Using-xboxdrv/

      C 1 Reply Last reply Reply Quote 0
      • C
        Chuck_B @dudleydes
        last edited by Chuck_B

        @dudleydes the purpose is to map a combination of controller's buttons to the combo CTRL key, which I configured as retroarch hotkey. I need that for controllers with too few buttons

        D 1 Reply Last reply Reply Quote 0
        • D
          dudleydes @Chuck_B
          last edited by

          @chuck_b It's still uncertain to me what your aim is. Could you provide complete details of your setup giving the info listed here, in particular the controllers you have connected to yout pi?

          1 Reply Last reply Reply Quote 0
          • C
            Chuck_B
            last edited by Chuck_B

            I have a Raspberr pi 3, i have a logitech controller and an 8bitdo controller.

            Since I'm willing to buy an 8bitdo N64 controller which doesn't have a select button, if I want to exit from the emulator, I need to map a combo of buttons to a key of the keyboard to exit from retroarch

            mituM 1 Reply Last reply Reply Quote 0
            • BiZzAr721B
              BiZzAr721
              last edited by

              Maybe I'm misunderstanding, but couldn't you just map, for example, the bottom Z button as the hotkey? I have my hot keys set to the PS3 button & Xbox button, not select

              1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @Chuck_B
                last edited by mitu

                @chuck_b I don't think joy2key is meant to be running alongside an emulator, it will 'swallow' the keys/buttons since it's meant to capture all input. You should either map the hotkey to a different button (as @BiZzAr721 suggested) or maybe use xboxdrvand remap a key combination to exit(ESC).

                1 Reply Last reply Reply Quote 0
                • C
                  Chuck_B
                  last edited by

                  but if I map a button (Z button for example) as hotkey it can't be used for playing

                  mituM BiZzAr721B 2 Replies Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @Chuck_B
                    last edited by

                    @chuck_b you cam change the mapping for N64 games (MUPEN64 is not a RetroArch core anyway)

                    1 Reply Last reply Reply Quote 0
                    • BiZzAr721B
                      BiZzAr721 @Chuck_B
                      last edited by

                      @chuck_b said in Mapping controllers with Joy2key:

                      but if I map a button (Z button for example) as hotkey it can't be used for playing

                      I'm pretty sure hotkey can still be mapped, but maybe Z is not a good idea. You want a button that you won't be pressing simultaneously with other buttons so you don't open emu menu or exit while playing. Maybe yellow down button as hot key uphold be a better choice.

                      1 Reply Last reply Reply Quote 0
                      • C
                        Chuck_B
                        last edited by

                        maybe there is a more pratical solution.

                        is possible to set a combo of joystick buttons for opening the RGUI?

                        I was trying putting this:
                        input_menu_toggle = "L2+R2+L1+R1"

                        but apparently is not working

                        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.