How to configure both analog stick and d-pad for retroarch arcade config?
-
I'm not sure what I did wrong, but somehow my retroarch.cfg is setup to use ONLY the left analog stick to move in arcade games. The d-pad doesn't seem to do anything. But in ES, the d-pad works fine. I thought maybe it was this line:
input_player1_analog_dpad_mode = "0"But changing between 1 and 0 doesn't seem to change anything.
Here are the relevant lines from my retroarch.cfg inside /opt/retropie/arcade:
input_player1_a = "x" input_player1_analog_dpad_mode = "0" input_player1_b = "z" input_player1_down = "down" input_player1_down_axis = "+1" input_player1_joypad_index = "0" input_player1_l = "q" input_player1_left = "left" input_player1_left_axis = "-0" input_player1_mouse_index = "0" input_player1_r = "w" input_player1_right = "right" input_player1_right_axis = "+0" input_player1_select = "rshift" input_player1_start = "enter" input_player1_up = "up" input_player1_up_axis = "-1" input_player1_x = "s" input_player1_y = "a"
(anything not listed is set to "nul")
The input device is an Arduino Leonardo. Here is the config file for that device:
input_device = "Arduino LLC Arduino Leonardo" input_driver = "udev" input_l_btn = "13" input_load_state_btn = "13" input_start_btn = "11" input_exit_emulator_btn = "11" input_down_btn = "1" input_l_x_plus_axis = "+0" input_r_btn = "12" input_save_state_btn = "12" input_right_btn = "3" input_state_slot_increase_btn = "3" input_select_btn = "10" input_left_btn = "2" input_state_slot_decrease_btn = "2" input_l2_btn = "9" input_l_y_minus_axis = "-1" input_up_btn = "0" input_a_btn = "4" input_b_btn = "5" input_reset_btn = "5" input_enable_hotkey_btn = "10" input_l_y_plus_axis = "+1" input_r2_btn = "6" input_x_btn = "7" input_menu_toggle_btn = "7" input_l_x_minus_axis = "-0" input_y_btn = "8" input_r_x_plus_axis = "+2" input_r_y_minus_axis = "-3" input_r_y_plus_axis = "+3" input_r_x_minus_axis = "-2"
Any idea how I can get both the d-pad and left analog stick to be used for moving in retroarch arcade games (e.g. lr-mame2003plus, lr-fbneo, etc)?
Thanks!
-
Normally, you can set
input_player1_analog_dpad_mode=1
(which means use left joystick for D-Pad). You can check the settings in RetroArch's RGUI, from the Controls menu.
You may have some stray configurations in yourretroarch.cfg
- the input configuration there configures a keyboard, but you also have someaxis
bindings which configure an analog joystick and I think they shouldn't be there. -
Thanks!
I assume the Arduino config (or any joypad input config) overrides the retroarch.cfg in some way?
When I start up a game, I get the popup message that the Arduino is connected as the input device, so I'm guessing that overrides the /arcade/retroarch.cfg for at least some values, otherwise a lot more wouldn't work.
I can't seem to find any explanation of how that works, but maybe I haven't looked hard enough. -
@bollwerk said in How to configure both analog stick and d-pad for retroarch arcade config?:
I assume the Arduino config (or any joypad input config) overrides the retroarch.cfg in some way?
Your configuration in
retroarch.cfg
- as it is right now - configures a keyboard.input_player1_r = "w"
When configuring a gamepad, the syntax is different:
input_player1_r_btn = "12"
RetroArch will load - indeed - the configuration from the
autoconfig
sub-folder if it finds one. The gamepad's auto-configuration file was generated by EmulationStation when you configured the gamepad in the Input Configuration step.I find it easier to open up the RetroArch's menu (via
Hotkey + X
) and use the Controls menu to change things, test them and then save it with a Core input configuration remap.For more details, see https://retropie.org.uk/docs/RetroArch-Configuration/.
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.