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

    Generic USB Arcade Controls with SNES + PSX?

    Scheduled Pinned Locked Moved Help and Support
    arcade controls
    18 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.
    • C
      csetera @mitu
      last edited by

      @mitu What I'm seeing is that the buttons on the Dragonrise are properly recognized, but the joystick is not. Is it possible to use a digital joystick with SNES and PSX emulators or will that not work? I could switch to the Logitech device for those emulators per your suggestion, but would prefer to be able to use the arcade joystick if possible.

      1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator
        last edited by

        Have you tried setting the Analog to Digital Type for the P1 controls ?

        341a1afc-bfb7-450a-b25a-b80868cb57e3-image.png

        C 1 Reply Last reply Reply Quote 0
        • C
          csetera @mitu
          last edited by

          @mitu Does that work for Digital -> Analog? I saw that option, but it looked like it was the reverse of what I needed.

          mituM 1 Reply Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @csetera
            last edited by

            @csetera No, it's actually exactly what you're trying to do - map an Analog controller to the RetroPad's D-Pad.

            C 1 Reply Last reply Reply Quote 0
            • C
              csetera @mitu
              last edited by

              @mitu Is there a configuration key/value that I can set in

              ./configs/snes/retroarch.cfg
              
              

              to set that value properly? Does setting the value in RGUI set it at the emulator level or the game level?

              mituM 1 Reply Last reply Reply Quote 0
              • mituM
                mitu Global Moderator @csetera
                last edited by

                @csetera As said before - you can change the settings from the RGUI, then save a core or game remap from the RGUI. This will save the .rmp configuration file to the configuration folder of the system you're configuring.
                The configuration option is named input_player1_analog_dpad_mode (for P1), if you wish to add it to the retroarch.cfg, you can add a line with

                input_player1_analog_dpad_mode=1
                
                C 1 Reply Last reply Reply Quote 0
                • C
                  csetera @mitu
                  last edited by

                  @mitu said in Generic USB Arcade Controls with SNES + PSX?:

                  input_player1_analog_dpad_mode

                  I must be doing something wrong, but not sure what it would be. I updated the retroarch.cfg:

                  pi@retropie:~ $ cat /opt/retropie/configs/snes/retroarch.cfg
                  # Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
                  
                  input_player1_analog_dpad_mode=1
                  input_remapping_directory = "/opt/retropie/configs/snes/"
                  
                  #include "/opt/retropie/configs/all/retroarch.cfg"
                  

                  Unfortunately, the joystick still didn't want to work. I see that config being read in the runcommand.log (pasted here: https://pastebin.com/B1Fj3kM5)

                  Thanks again for helping me out with this. I'm sure I'm missing something stupid.
                  Craig

                  mituM 1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator @csetera
                    last edited by

                    It depends on how you mapped your joystick. Can you post your controller .cfgfile, from \\retropie\configs\all\retroarch-joypads ?

                    Do you have any game/core overrides present ? Have you tried changing the option from the RGUI ?

                    1 Reply Last reply Reply Quote 0
                    • C
                      csetera
                      last edited by

                      Success!

                      I'm not sure what I was doing wrong the first time I tried, but I was just able to get this working via RGUI for a PSX game. Do changes in one game via RGUI apply to all games for that core or does it need to be done for every game individually? Where do the values set in RGUI get stored?

                      I just began the disassembly of my bartop build (long story), so I won't be able to do much with this until I get it put back together again. I really appreciate all of your help!

                      Craig

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @csetera
                        last edited by

                        @csetera said in Generic USB Arcade Controls with SNES + PSX?:

                        Do changes in one game via RGUI apply to all games for that core or does it need to be done for every game individually?

                        Changes in the RGUI don't save by default, you'll need to save them somehow. In your case, as I said before, save a Core/Game remap and the configuration will be applied accordingly.

                        Where do the values set in RGUI get stored?

                        Remaps are saved in /opt/retropie/configs/<system>/<core name>.

                        C 1 Reply Last reply Reply Quote 0
                        • C
                          csetera @mitu
                          last edited by

                          @mitu Thanks again for all of your help. After doing the single game remap, I took a look at the generated remap file. In there I found:

                          input_player1_analog_dpad_mode = "1"
                          

                          On a whim, I tried that in the retroarch.cfg files for SNES and PSX and it worked. It appears that the value needed to be quoted and that you were otherwise correct. I'm glad to be able to set that at the core level and have it apply.

                          Thanks again,
                          Craig

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