Adding a 'reset' command/button to all retroarch emu configs?
-
Hi, I'm loving my whole setup, and it's working great. I have a reset button I am using on my Intellivision games that I'd like to add to all other Retroarch emulators like A2600, 7800..NES.. etc.
The button is a simple python script I was given assigned to the letter 'r'... so how can I add that command to my retroarch configs so that I can reset the game, rather then exit and restart it.
here is a sample retroarch.cfg for my A2600... I use SNES controllers to play all except Colecovision and Intellivsion.
input_player1_joypad_index = 2
input_player1_b_btn = 1
input_player1_a_btn = 0
input_player1_y_btn = 3
input_player1_x_btn = 2
input_player1_l_btn = 4
input_player1_r_btn = 5
input_player1_start_btn = 7
input_player1_select_btn = 6
input_player2_joypad_index = 3
input_player2_b_btn = 1
input_player2_a_btn = 0
input_player2_y_btn = 3
input_player2_x_btn = 2
input_player2_l_btn = 4
input_player2_r_btn = 5
input_player2_start_btn = 7
input_player2_select_btn = 6Axis for RetroArch D-Pad.
Needs to be either '+' or '-' in the first character signaling either positive or negative direction of the axis, then the axis number.input_player1_up_axis = -1
input_player1_down_axis = +1
input_player1_left_axis = -0
input_player1_right_axis = +0
input_player2_up_axis = -1
input_player2_down_axis = +1
input_player2_left_axis = -0
input_player2_right_axis = +0#Hotkeys- Hotkeys enable you to press a combination of buttons to do such things as exit emulators, save states,and load states, as well as any other functionality in an emulator. (In the example below 8 is the select key and 9 is the start key so when I hold down select and press start it will exit the emulator.)
input_enable_hotkey_btn = 6
input_exit_emulator_btn = 7
input_save_state_btn = 5
input_load_state_btn = 4
input_menu_toggle_btn = 2
input_state_slot_increase_axis = +0
input_state_slot_decrease_axis = -0Thanks in advance...
JR
-
@jamrom2 According to the wiki, the default hotkeys to reset a Retroarch emulator is select+B. Looking through your Retroarch configs, there's no sight of any assignment for
input_reset_btn
.Incidentally, you can reset the Intellivision emulator by pressing F12 or you could create a keyboard hack file if you wish to reset with your controller.
-
unfortunately that doesn't seem to work. I need the input to recognize GPIO rather than the controller button.
Let me explain a little better...
I am using a Super Video Arcade machine as the case for my retropie set up. The goal of the project, like many have done, was to use the original on/off switch and reset button for all emulators.So to do that, I have 1 GPIO input setup for the keyboard letter 'r' which I used as reset in my jzintv keyboard hack. It works great. So the Intellivision emulator acts completely like a real Intellivision complete with reset and on/off switch. I still have the keypad programmed for exit and all that, but I use the 'reset' button just for the sake of nostalgia.
So I'd like to do the same with all other emulators using the 'reset' button as the input for each emulator... I just can't get it to work.
Thanks.
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.