• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

How to configure both analog stick and d-pad for retroarch arcade config?

Scheduled Pinned Locked Moved Help and Support
arcadearduinoretroarch.cfg
4 Posts 2 Posters 9.4k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B
    bollwerk
    last edited by bollwerk 18 Sept 2020, 17:23

    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!

    1 Reply Last reply Reply Quote 0
    • M
      mitu Global Moderator
      last edited by 19 Sept 2020, 04:44

      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 your retroarch.cfg - the input configuration there configures a keyboard, but you also have some axis bindings which configure an analog joystick and I think they shouldn't be there.

      1 Reply Last reply Reply Quote 1
      • B
        bollwerk
        last edited by 19 Sept 2020, 15:37

        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.

        M 1 Reply Last reply 19 Sept 2020, 15:57 Reply Quote 0
        • M
          mitu Global Moderator @bollwerk
          last edited by mitu 19 Sept 2020, 15:57

          @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/.

          1 Reply Last reply Reply Quote 1
          4 out of 4
          • First post
            4/4
            Last post

          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.

            This community forum collects and processes your personal information.
            consent.not_received