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

    Use analogue as digital controls?

    Scheduled Pinned Locked Moved Help and Support
    analog
    8 Posts 4 Posters 5.1k 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.
    • N
      naddel81
      last edited by naddel81

      Hi @ all,

      I configured my playstation 2 gamepad for the emulators (SNES, Mega Drive) and it works just fine. But on some games I would like to try analog controls. Is it possible to set this up? I mean using the analog control stick as a replacement for the digital cross?
      I cannot configure both because retropie/ES then tells me it is already in use (left, right, up and down arrows e.g.). But I like to have both and not switch vice versa.

      I hope someone can understand what I mean.

      Best wishes!

      D 1 Reply Last reply Reply Quote 0
      • D
        dudleydes @naddel81
        last edited by

        @naddel81 In the RetroPie setup script, select Configuration / tools > configedit > Configure basic libretro emulator options. In this menu, you can configure additional options for Mega Drive and SNES, one of which is use analogue stick as d-pad.

        1 Reply Last reply Reply Quote 0
        • N
          naddel81
          last edited by

          thanks for your help. can I use both at the same time or do I have to choise between cross and stick?

          1 Reply Last reply Reply Quote 0
          • D
            Dochartaigh
            last edited by

            In "/opt/retropie/configs/all/retroarch.cfg", I add these lines to the bottom and it makes the left joystick act as a D-Pad (and vice versus). Can use either or, and switch at the drop of a hat. It seems to work in ALL the emulators I've tried (mostly NES, SNES, Genesis, PS1, and MAME):

            input_player1_analog_dpad_mode = "1"
            input_player2_analog_dpad_mode = "1"
            input_player3_analog_dpad_mode = "1"
            input_player4_analog_dpad_mode = "1"
            input_player5_analog_dpad_mode = "1"
            input_player6_analog_dpad_mode = "1"
            input_player7_analog_dpad_mode = "1"
            input_player8_analog_dpad_mode = "1"
            
            
            1 Reply Last reply Reply Quote 0
            • N
              naddel81
              last edited by

              will try that tomorrow! then I do not need to edit the retropie setup script in "Configure basic libretro emulator options", do I?

              D 1 Reply Last reply Reply Quote 0
              • D
                Dochartaigh @naddel81
                last edited by

                If that edits the same file or not I don't know. I always edit the config files myself so I can save the physical file on my computer and not have to redo it every time I do a fresh install.

                BuZzB 1 Reply Last reply Reply Quote 0
                • N
                  naddel81
                  last edited by

                  works fine, thank you both! I noticed my ps2 original gamepads have an analog button in the middle. if you press it then it switches between digital cross and analog stick. so I guess there is no way to use both because the pad isn't designed that way by hardware.
                  well, at least I can switch on the fly now.

                  1 Reply Last reply Reply Quote 0
                  • BuZzB
                    BuZz administrators @Dochartaigh
                    last edited by

                    @Dochartaigh via the configuration editor it can set them on a per core basis or in the global retroarch.cfg.

                    To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                    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.