Mapping controller button to keyboard key for Retroarch ROM
-
Hello,
Is it be possible to map a controller button to a key on the keyboard for a specific ROM? I have managed to get my controllers working as a Kempston joystick in the ZX Spectrum lr-fuse emulator and would like to get the Z key on the keyboard working on any of the controller buttons. If I run up Retroarch using the hotkeys in lr-fuse I can go to options and change it there, it works but this appears to be for everything in lr-fuse.
The line that appears in /opt/retropie/configs/all/retroarch-core-options.cfg is
fuse_joypad_b="z"
If I add this to the specifc ROM rmp file (/opt/retropie/configs/zxpsectrum/fuse/aticatac.rmp) it does not work. I have also tried -
input_player1_b="z"
input_player1_b="122"
input_player1_btn_b="z"
input_player1_btn_b="122"(122=ascii for z)
Not sure if I am getting the syntax wrong or if it this is actually possible or not?
Thank in advance for any pointers. Appreciated.
Raspbery Pi 400
Official USB-C PSU
Retropie 4.71 pre-made + updated through menus
& Raspberry Pi OS (Legacy - Buster) from official website, Retropie manually installed from guide on this site
Sega Play Controller (USB) and Xbox 360 controller for Windows (wireless with dongle)
lr-fuse -
@astrok said in Mapping controller button to keyboard key for Retroarch ROM:
retroarch-core-options.cfg
but this appears to be for everything in lr-fuse.
Setting core options per ROM:
https://retropie.org.uk/docs/RetroArch-Core-Options/#setting-core-options-per-rom
-
@sleve_mcdichael Thank you, that was helpful. Finally getting my head around the quirks of Retroarch and managed to get it 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.