• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.
  • C
    Chuck_B
    last edited by 5 Aug 2018, 21:30

    Hello!
    Can somebody tell me how to map joystick buttons to keyboard keys using joy2key on Retropie?
    I was looking for tutorials but I didn't find anything.

    D 1 Reply Last reply 6 Aug 2018, 08:48 Reply Quote 0
    • D
      dudleydes @Chuck_B
      last edited by 6 Aug 2018, 08:48

      @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 6 Aug 2018, 13:21 Reply Quote 0
      • C
        Chuck_B @dudleydes
        last edited by Chuck_B 8 Jun 2018, 14:21 6 Aug 2018, 13:21

        @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 6 Aug 2018, 14:38 Reply Quote 0
        • D
          dudleydes @Chuck_B
          last edited by 6 Aug 2018, 14:38

          @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 8 Jul 2018, 21:26 7 Aug 2018, 20:25

            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

            M 1 Reply Last reply 7 Aug 2018, 21:24 Reply Quote 0
            • B
              BiZzAr721
              last edited by 7 Aug 2018, 21:20

              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
              • M
                mitu Global Moderator @Chuck_B
                last edited by mitu 8 Jul 2018, 22:24 7 Aug 2018, 21:24

                @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 8 Aug 2018, 13:14

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

                  M B 2 Replies Last reply 8 Aug 2018, 13:42 Reply Quote 0
                  • M
                    mitu Global Moderator @Chuck_B
                    last edited by 8 Aug 2018, 13:42

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

                    1 Reply Last reply Reply Quote 0
                    • B
                      BiZzAr721 @Chuck_B
                      last edited by 8 Aug 2018, 15:20

                      @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 9 Aug 2018, 17:49

                        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
                        11 out of 11
                        • First post
                          11/11
                          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.

                          This community forum collects and processes your personal information.
                          consent.not_received