Disable Retroarch joystick reset hotkey
-
I'm running RetroPie 4.1.10 on a Pi 3. I seem to have an issue when I load a save state (select+left shoulder) I start pressing the "fire" button while still holding the select and I reset my game. :)
I've been trying to disable the joystick reset hotkey in lr-mame2003. I manually edited
/opt/retropie/configs/mame-libretro/retroarch.cfg
and added the entries before the #include.input_reset_btn = "nul" input_reset_axis = "+2"
The new axis reset works just fine but the default reset button "0" is still active. I think you can have 3 buttons basically but I am unable to get the joystick button disabled.
<hotkey>
(keyboard)
<hotkey>_btn
(joystick)
<hotkey>_axis
(joystick)EDIT: When looking at the Retroarch reset hotkey bindings (Select+X) they do update properly with +2 (axis) (Key: Ctrl) but it's like the default joystick button isn't being disabled with the "nul" command.
-
i think your joypad autoconfig may override mame's specific retroarch.cfg
so if you look in
/opt/retropie/configs/all/retroarch-joypads/
for your joypad's cfg, and edit that with the same change, it should take :) -
Here's the full config file. Has anyone successfully disabled
input_reset_btn = "nul"
with the nul command? I've redefined several other keys but I just can't seem to get the default joystick reset button disabled. Both the default button and the new axis work as it prints "Reset." with the OSD in yellow text in the lower left corner.I also tried tweaking/upgrading the iPAC firmware with and without game controller support to see if that would make a difference but it didn't.
The game controller support is interesting in the fact you can use the defined iPAC shift key to send game controller inputs (joystick) as well as mouse inputs through the buttons, well basically any input devices input can be doubled up on the buttons and joystick when shifted. I suppose that ties into that weird anomaly where it was detected as a game controller before the firmware split with and without support.
The other oddity with the iPAC is I always noticed you had to use the Retroarch defined inputs in reverse. Basically if you have for example "Player 1 Start" as your hotkey and "Player 2 Start" as exit you can not press player 1 first (hotkey) and then player 2 (exit key) to exit, it doesn't work (post 2015 boards not sure on pre). You have to press them in reverse. You need to press Player 2 and then Player 1 to exit the emulator.
The caveat is if you disable the iPAC shift key then it does work correctly and you may press player 1 and then player 2 or vice versa but you loose the iPAC shifted functionality. It has something to do with the way Retroarch is receiving inputs from the shifted iPAC key press. I learned several things but still can't get that pesky reset button disabled. ;)
# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line input_remapping_directory = "/opt/retropie/configs/mame-libretro/" input_pause_toggle_btn = "7" input_reset_btn = "nul" input_reset_axis = "+2" input_save_state = "up" input_load_state = "down" video_shader_enable = "true" video_shader = "/opt/retropie/emulators/retroarch/shader/crt-pi.glslp" #include "/opt/retropie/configs/all/retroarch.cfg"
-
@dankcushions said in Disable Retroarch joystick reset hotkey:
i think your joypad autoconfig may override mame's specific retroarch.cfg
so if you look in
/opt/retropie/configs/all/retroarch-joypads/
for your joypad's cfg, and edit that with the same change, it should take :)Thanks Dank, I will try this tonight. I spent the evening banging my head on this one and still couldn't get it figured out.
EDIT: I did try matching up the all/retroarch.cfg in hopes that would work but it didn't so this is great. I really appreciate the tip on how to get this disabled.
-
@riverstorm said in Disable Retroarch joystick reset hotkey:
retroarch-joypads/
@dankcushions - Thanks worked perfect! When adding
input_reset_axis = "+2"
I was able to add it to either/opt/retropie/configs/mame-libretro/retroarch.cfg
or/opt/retropie/configs/all/retroarch-joypads/Xbox 360 Wireless Receiver.cfg
and it worked fine.When adding
'input_reset_btn = "nul"
to/opt/retropie/configs/mame-libretro/retroarch.cfg
it didn't change the default or disable it but when I modified/opt/retropie/configs/all/retroarch-joypads/Xbox 360 Wireless Receiver.cfg
directly it worked.When
input_reset_btn = "0"
was located in the joystick config andinput_reset_btn = "nul"
was in the emulator config button "0" was still active.It looks if the setting exists in the joystick config it has to modified there as it take precedence over the emulator config but it if doesn't exist in either it can be added to either and works fine.
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.