Mapping controllers with Joy2key
-
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. -
@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/
-
@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
-
-
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
-
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
-
@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 usexboxdrv
and remap a key combination toexit
(ESC). -
but if I map a button (Z button for example) as hotkey it can't be used for playing
-
@chuck_b you cam change the mapping for N64 games (MUPEN64 is not a RetroArch core anyway)
-
@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.
-
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
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.