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

    Retropie PSX Emulator only 1 controller works

    Scheduled Pinned Locked Moved Help and Support
    34 Posts 5 Posters 15.2k 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.
    • edmaul69E
      edmaul69
      last edited by edmaul69

      I had this problem two days ago. In the /opt/retropie/configs/all/retroarch-core-options.cfg i changed this:

      pcsx_rearmed_pad2type = "analog"
      

      To:

      pcsx_rearmed_pad2type = "standard"
      

      And it worked. Also all players except pad1 are set on standard.

      1 Reply Last reply Reply Quote 0
      • dankcushionsD
        dankcushions Global Moderator
        last edited by dankcushions

        i think this is what the original hardware did if you turned on analog mode on in games that didn't support it. the controllers had a wee button you could press to turn it on/off so it worked with old games. i've added a note here:

        https://github.com/RetroPie/RetroPie-Setup/wiki/Playstation-1#analog-controller-type

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

          Hello, thanks for the help !
          I think that might be it.

          I tried wat @edmaul69 suggested. And it worked, except controller 2 was D-pad only. As soon as i change the type to analog the behavior comes back. Controller 1 will control both players.
          So now pad 1 is analog and pad 2 isn't but it works.
          I probbably tried it with games with no analog support (CTR and THPS 2) then.

          @meleu : the indexing was the first thing i though of to. This is an excerpt from my /opt/retropie/configs/psx/retroarch.cfg file :
          input_driver = "udev"
          input_joypad_driver = "udev"
          input_keyboard_layout = ""
          input_device_p1 = "1"
          input_player1_joypad_index = "0"
          input_libretro_device_p1 = "1"
          input_player1_analog_dpad_mode = "0"
          input_device_p2 = "1"
          input_player2_joypad_index = "1"
          input_libretro_device_p2 = "1"
          input_player2_analog_dpad_mode = "0"
          input_device_p3 = "0"
          input_player3_joypad_index = "2"
          input_libretro_device_p3 = "1"
          input_player3_analog_dpad_mode = "0"

          It keeps going like that 'till player 15. But the indexes increment. So those seem ok. what seems weird to me is for all the players the value of input_libretro_device_p[player number] = "1" / And the input_device_p[player number]= "0" is the same....
          Does anybody know what these 2 parameters mean?

          Anyway , thanks for the help already !

          dankcushionsD meleuM 2 Replies Last reply Reply Quote 0
          • dankcushionsD
            dankcushions Global Moderator @Disbeliever
            last edited by

            @Disbeliever
            here's what mine looks like:

            input_device_p1 = "0"
            input_player1_joypad_index = "0"
            input_libretro_device_p1 = "1"
            input_player1_analog_dpad_mode = "0"
            input_device_p2 = "0"
            input_player2_joypad_index = "1"
            input_libretro_device_p2 = "1"
            input_player2_analog_dpad_mode = "0"
            

            so all my input_device_p1/2/3/etc are set to 0 but yours are set to 1. i'm not sure what this setting does.. 0 might be automatic? maybe try it out with your setup?

            meleuM 1 Reply Last reply Reply Quote 0
            • meleuM
              meleu @dankcushions
              last edited by

              There is an explanation about the input_libretro_device_pX in retroarch.cfg skeleton:

              # Sets which libretro device is used for a user.
              # Devices are indentified with a number.
              # This is normally saved by the menu.
              # Device IDs are found in libretro.h.
              # These settings are overridden by explicit command-line arguments which refer to input devices.
              # None: 0
              # Joypad (RetroPad): 1
              # Mouse: 2
              # Keyboard: 3
              # Generic Lightgun: 4
              # Joypad w/ Analog (RetroPad + Analog sticks): 5
              # Multitap (SNES specific): 257
              # Super Scope (SNES specific): 260
              # Justifier (SNES specific): 516
              # Justifiers (SNES specific): 772
              
              • Useful topics
              • joystick-selection tool
              • rpie-art tool
              • achievements I made
              dankcushionsD 1 Reply Last reply Reply Quote 0
              • dankcushionsD
                dankcushions Global Moderator @meleu
                last edited by dankcushions

                @meleu we're not talking about input_libretro_device_pX , we're talking about input_device_pX

                EDIT, oh i suppose we're talking about both :) but input_libretro_device_pX =1 seems normal to me, at least

                meleuM 1 Reply Last reply Reply Quote 0
                • meleuM
                  meleu @Disbeliever
                  last edited by

                  @dankcushions
                  @Disbeliever said in Retropie PSX Emulator only 1 controller works:

                  Does anybody know what these 2 parameters mean?

                  I've just tried to help with one of them at least... :-)

                  • Useful topics
                  • joystick-selection tool
                  • rpie-art tool
                  • achievements I made
                  1 Reply Last reply Reply Quote 0
                  • D
                    Disbeliever
                    last edited by

                    @meleu : Thanks for the info on input_libretro_device_pX . I'm using PS3 controller (bluetooth paired), so they should be set to "5" probably?

                    @dankcushions : i'm sorry, i think i've changed that setting to 1 yesterday trying to fix it. Originally all input_device_px parameters where 0.
                    It would be nice if we could figure out what this actually does ... :)

                    Again, thanks to all of you for helping me !

                    1 Reply Last reply Reply Quote 1
                    • edmaul69E
                      edmaul69
                      last edited by edmaul69

                      so i have a bit of good news. if you overwrite the lr-pcsx-rearmed with the one form 3.7 retropie before they added multiplayer/multitap and remove all the new options for it in opt/retropie/configs/all/retroarch-core-options.cfg it works with 2 analogs. the files in the retroarch-core-options.cfg can be in multiple locations but these are the only ones you keep:

                      pcsx_rearmed_frameskip = "0"
                      pcsx_rearmed_region = "Auto"
                      pcsx_rearmed_pad1type = "analog"
                      pcsx_rearmed_pad2type = "analog"
                      pcsx_rearmed_drc = "enabled"
                      pcsx_rearmed_neon_interlace_enable = "disabled"
                      pcsx_rearmed_neon_enhancement_enable = "disabled"
                      pcsx_rearmed_neon_enhancement_no_main = "disabled"
                      pcsx_rearmed_duping_enable = "on"
                      pcsx_rearmed_spu_reverb = "on"
                      pcsx_rearmed_spu_interpolation = "simple"
                      pcsx_rearmed_pe2_fix = "disabled"
                      pcsx_rearmed_inuyasha_fix = "disabled"
                      
                      1 Reply Last reply Reply Quote 0
                      • edmaul69E
                        edmaul69
                        last edited by

                        Please read above. When i get done configuring the emulators in my pistation 1 i will get on my other pi and see if making all of the players controllers analog what it does. I dont know if you had it set up that way or not.

                        1 Reply Last reply Reply Quote 0
                        • meleuM
                          meleu @dankcushions
                          last edited by

                          @dankcushions @Disbeliever
                          I was googling about the diferences between input_device_pX and input_libretro_device_pX.

                          This thread on RetroArch github issue section made me think that both options are the same, but input_device_pX is a deprecated one. Let's see if that guy (Themaister) will confirm my supposition.

                          • Useful topics
                          • joystick-selection tool
                          • rpie-art tool
                          • achievements I made
                          1 Reply Last reply Reply Quote 0
                          • A
                            alexis-puska
                            last edited by

                            Hi,
                            This is a bug on the current version of pcsx-rearmed. if you have configured 2 analog controler, an old code is used and the first pad keystate is mapped on the second pad keystate... some code is in wainting state for merge, but i have add rumble for analog pad 1 and 2, and i fix this bug in the next version. If you want to play with 2 player configured the second on standart for the moment.

                            edmaul69E 1 Reply Last reply Reply Quote 1
                            • edmaul69E
                              edmaul69 @alexis-puska
                              last edited by

                              @alexis-puska is it possible to make a post in here or somewhere so we know to get it? I am using the second to last version because of the analog issue. I am really excited about rumble support.

                              1 Reply Last reply Reply Quote 0
                              • A
                                alexis-puska
                                last edited by

                                @edmaul69 said in Retropie PSX Emulator only 1 controller works:

                                @alexis-puska is it possible to make a post in here or somewhere so we know to get it? I am using the second to last version because of the analog issue. I am really excited about rumble support.

                                hi,
                                For me i make some script to define the compilation variable and compile the emulator.
                                The best way for you I think it's to edit the "lr-pcsx-rearmed.sh" script shell and reinstall the emulator.

                                you can edit the line 22 : gitPullOrClone "$md_build" https://github.com/libretro/pcsx_rearmed.git

                                you replace the url by : https://github.com/alexis-puska/pcsx_rearmed.git

                                it's my repository with the last change for gamepad. and launch emulation station, go in retropie plateform, launch the retropie setup script and reinstall the emulator.

                                1 Reply Last reply Reply Quote 1
                                • dankcushionsD
                                  dankcushions Global Moderator
                                  last edited by

                                  be careful though. if you change any retropie script you will not be able to update retropie-setup via the script unless you revert or delete that file.

                                  1 Reply Last reply Reply Quote 1
                                  • A
                                    alexis-puska
                                    last edited by

                                    Yes, after your reinstall, revert this files. Dankushion is right, if you not revert this files you cannot update pcsx_rearmed with the last version and last update made by the community.
                                    In some major update of retropie for mine part, i reinstall and recreate my sdcard.

                                    1 Reply Last reply Reply Quote 0
                                    • meleuM
                                      meleu
                                      last edited by meleu

                                      Hey guys. Let me complement the @alexis-puska tip:
                                      [EDIT: this is incomplete and unusable.]
                                      The best way for you is to copy the lr-pcsx-rearmed.sh script shell to another file, let's say lr-pcsx-rearmed-fixed.sh, and make the changes suggested by @alexis-puska . And then reinstall.

                                      It will let the original file untouched. ;-)

                                      • Useful topics
                                      • joystick-selection tool
                                      • rpie-art tool
                                      • achievements I made
                                      dankcushionsD 1 Reply Last reply Reply Quote 0
                                      • dankcushionsD
                                        dankcushions Global Moderator @meleu
                                        last edited by

                                        @meleu then how would you launch the fixed version? :) by editing the existing .sh you can launch it via retropie-setup.sh as normal.

                                        meleuM 1 Reply Last reply Reply Quote 0
                                        • meleuM
                                          meleu @dankcushions
                                          last edited by

                                          @dankcushions said in Retropie PSX Emulator only 1 controller works:

                                          @meleu then how would you launch the fixed version? :) by editing the existing .sh you can launch it via retropie-setup.sh as normal.

                                          Well, if the copied script is at RetroPie-Setup/scriptmodules/libretrocores/, as the original file, it will be launchable via retropie_setup too. BUT... I have to agree that my suggestion is incomplete, therefore unusable...

                                          The functions inside the copied script need to be renamed to match the file name... although this renaming process could be simple for a experienced sed or vim user, it's simpler to just follow your instructions (edit the URL and after the reinstall put back the libretro one).

                                          Sorry guys...

                                          • Useful topics
                                          • joystick-selection tool
                                          • rpie-art tool
                                          • achievements I made
                                          1 Reply Last reply Reply Quote 0
                                          • meleuM
                                            meleu
                                            last edited by meleu

                                            trying to repair my mistake... :-)

                                            A simple module to install the @alexis-puska fixed version: https://raw.githubusercontent.com/meleu/RetroPie-Setup/master/scriptmodules/libretrocores/lr-pcsx-rearmed-puska.sh

                                            [EDIT: the @alexis-puska Pull Request was merged! No need to use this anymore!!]

                                            Installation method

                                            wget -O ~/RetroPie-Setup/scriptmodules/libretrocores/lr-pcsx-rearmed-puska.sh \
                                            https://raw.githubusercontent.com/meleu/RetroPie-Setup/master/scriptmodules/libretrocores/lr-pcsx-rearmed-puska.sh
                                            

                                            Then, start retropie_setup.sh and go to Manage Packages -> exp -> lr-pcsx-rearmed-puska -> Install from source.

                                            Benefits of this method

                                            It installs the @alexis-puska version and let the original lr-pcsx-rearmed.sh untouched. It installs another emulator option for Playstation. Choose it in the runcommand menu.

                                            Hope it helps!

                                            • Useful topics
                                            • joystick-selection tool
                                            • rpie-art tool
                                            • achievements I made
                                            edmaul69E 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.