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

    Control choice per emulator

    Scheduled Pinned Locked Moved Help and Support
    8 Posts 3 Posters 1.9k 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.
    • U
      unibiggle
      last edited by

      Hi everyone.

      I've just built my first bartop arcade with help from various posts and wiki links. It's a 2 player with zippy joysticks and 6 buttons. I've also configured a PS3 controller to it. All are working when playing 3 players but what I wanted to do was:-

      When playing PSX emulator can I make the PS3 game pad the default controller as the joysticks aren't as good for that? I can start the games with the controller but when they start the joysticks take precedence.

      Is there a way to do this?

      Thanks

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

        @unibiggle
        There isn't an flawless way to achieve it.

        You must edit the /opt/retropie/configs/psx/retroarch.cfg and put a line with input_player1_joypad_index = ps3_controller_index_number (replace with the index number, obviously). It isn't flawless due to the dynamic nature of bluetooth connections. There is no way to assure that your PS3 controller will get the same index everytime (for example, if you connect an extra USB controller).

        I'm working on a way to achieve what you want (other users requested it), but for a while this is the only thing I have to offer:
        https://github.com/meleu/RetroPie-joystick-selection

        • Useful topics
        • joystick-selection tool
        • rpie-art tool
        • achievements I made
        U 2 Replies Last reply Reply Quote 0
        • U
          unibiggle @meleu
          last edited by

          @meleu thanks I'll give it a try

          1 Reply Last reply Reply Quote 0
          • U
            unibiggle @meleu
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • U
              unibiggle
              last edited by

              Sorry for being a complete idiot but i don't know what to put here. Ive added the line but not sure what my index number is for the wired pad. it comes up port #2 when i start a game but not sure how i should write the file. Sorry if im being totally thick

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

                @unibiggle
                If you look at https://github.com/meleu/RetroPie-joystick-selection and follow the instructions to install it, a usefull tool will be installed too, and it can help you on your issue.

                Are you reasonably comfortable with command line? So, I suggest to install it, go to the shell prompt and then execute the following commands:

                cd /opt/retropie/supplementary/
                ./jslist
                

                This will show the available joysticks and their respective index. Get your PS3 controller index and use it the way I explained on the previous post.

                Be aware that after you do that (set the PS3 controller to be the player1 when playing psx games), if you start a psx game and your PS3 controller is off, you can get problems to exit RetroArch. So be sure to turn on your PS3 controller before start a psx game.

                Hope it helps! ;-)

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

                  Since the ps3 controller on bluetooth is always seen as the the last controller which the controllers in your case is numbered 0-2 all you have to put in the psx config is this:

                  input_player1_joypad_index = 2
                  

                  Note that there is a space on both sides of the equal sign.

                  1 Reply Last reply Reply Quote 1
                  • U
                    unibiggle
                    last edited by

                    Thanks guys

                    I'll try that later.

                    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.