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

    Stick and D pad control 2D games

    Scheduled Pinned Locked Moved Help and Support
    controllerxiaomiconfig
    4 Posts 2 Posters 1.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.
    • V
      vretro
      last edited by

      I am using a game pad which has a layout very similar to Xbox. When playing 2D games I am able to use the D pad to move as expected. When the left stick is moved, it is possible to move game sprites around, but only left and right. Should I be able to have player control using both D pad and stick?

      I have posted the stick and D pad sections of my controller config below:

      input_driver = "udev"

      input_up_btn = "h0up"
      input_down_btn = "h0down"
      input_left_btn = "h0left"
      input_right_btn = "h0right"

      input_l_x_plus_axis = "+0"
      input_l_x_minus_axis = "-0"
      input_l_y_plus_axis = "+1"
      input_l_y_minus_axis = "-1"

      edmaul69E 1 Reply Last reply Reply Quote 0
      • edmaul69E
        edmaul69 @vretro
        last edited by edmaul69

        @vretro open up your individual retroarch.cfg files in your individual folders in /opt/retropie/configs/ except in the folders "all", "psx", and "psp" and post this above the #include... line:

        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"
        
        V 1 Reply Last reply Reply Quote 0
        • V
          vretro @edmaul69
          last edited by

          Thanks @edmaul69 that worked perfectly!

          edmaul69E 1 Reply Last reply Reply Quote 0
          • edmaul69E
            edmaul69 @vretro
            last edited by

            @vretro your welcome.

            1 Reply Last reply Reply Quote 0
            • First post
              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.