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

    How can I control 2 players with one keyboard (RetroArch)?

    Scheduled Pinned Locked Moved Help and Support
    40 Posts 6 Posters 27.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.
    • TheStrayMongrelT
      TheStrayMongrel
      last edited by

      Okay so @rbaker, tried what you suggested and did a fresh install, configured the keyboard and then added 2 player controls through the retroarch.cfg... but nothing. I have actually always been running @Floob 's attract mode disk image so i guess I have to consider that a variable and the possibility that something broke (in regards to the config I'm trying to get running) when that was being created... very long shot i know with him being a guru and all.
      Just downloading the 4.0 image and will see how that goes with the same procedure.

      Raspberry Pi 2 B+

      rbakerR 1 Reply Last reply Reply Quote 0
      • rbakerR
        rbaker @TheStrayMongrel
        last edited by rbaker

        @TheStrayMongrel I would say that it the problem. I believe that attract mode was an experimental build. You should use the fully updated version. I reckon if you had revealed that at the start, you would be up and running now. You = Adafruit + Attract Mode Build. Me = Ipac + Version 3.8.1

        One final thought, have you checked that your config edits are actually being saved?

        1 Reply Last reply Reply Quote 0
        • TheStrayMongrelT
          TheStrayMongrel
          last edited by

          @rbaker Unfortunately not, just tried it on a brand spanking new 4.0 image. Install/allocate keys/retroarch.cfg config/setup wifi/transfer 2 games (using lr-fba-next)/reboot... 1 player works fine but nothing on 2... ahhh. Your suggestion really has broken it down to the most basic of fundamentals in regards to troubleshooting the issue... racking my brain to think of what else it might be.

          Raspberry Pi 2 B+

          rbakerR dankcushionsD 3 Replies Last reply Reply Quote 0
          • rbakerR
            rbaker @TheStrayMongrel
            last edited by

            @TheStrayMongrel I am out of ideas now. For me, you plug in a keyboard and it is detected. It allows you to configure player 1 only. You then edit the config to add the "extra" keys you desire for player 2. You save and then you must reboot for the changes to take effect. You then have the most basic form of two player controls. I cannot think what you must be doing that is different to me. Is your syntax correct etc?

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

              @TheStrayMongrel said in How can I control 2 players with one keyboard (RetroArch)?:

              @rbaker Unfortunately not, just tried it on a brand spanking new 4.0 image. Install/allocate keys/retroarch.cfg config/setup wifi/transfer 2 games (using lr-fba-next)/reboot... 1 player works fine but nothing on 2... ahhh. Your suggestion really has broken it down to the most basic of fundamentals in regards to troubleshooting the issue... racking my brain to think of what else it might be.

              what games? IMO you should test on a console 2 player games (snes etc) as there additional complications to consider in the arcade cores.

              also you should post your entire /all/retroarch.cfg and /snes/retroarch.cfg ideally.

              1 Reply Last reply Reply Quote 0
              • rbakerR
                rbaker @TheStrayMongrel
                last edited by

                @TheStrayMongrel Try this video from @Floob :

                You could remap using the retroarch gui, if you know your keys are working. Then you can go into retroarch.cfg and look at the changes it made for you and compare them against what you did.

                TheStrayMongrelT 1 Reply Last reply Reply Quote 0
                • TheStrayMongrelT
                  TheStrayMongrel @rbaker
                  last edited by

                  what games? IMO you should test on a console 2 player games (snes etc) as there additional complications to consider in the arcade cores.
                  also you should post your entire /all/retroarch.cfg and /snes/retroarch.cfg ideally.

                  Streetfighter 3 and Streetfighter 2 Alpha @dankcushions. That sounds like something worth trying, so will have a crack at it with a snes game tonight (at work now).

                  also you should post your entire /all/retroarch.cfg and /snes/retroarch.cfg ideally.

                  Will do, not sure how to post scroll down command line blocks (like rbaker has here) so will look into that, certainly too large to do screen grabs like i have been previously.

                  @rbaker said in How can I control 2 players with one keyboard (RetroArch)?:

                  Is your syntax correct etc?

                  As far as i know. It matched up with the one you posted earlier on this thread... and i have looked over it closely to see if there are any inconsistencies.

                  Will also check out the video, thanks.

                  I guess another thing i can to also is fire up mame4all and see if 2 player keyboard registers on that after configuring using the tab menu... at least then I'll know if the issue is confined to lr-... emulators.

                  Thanks again all. :)

                  Raspberry Pi 2 B+

                  rbakerR 1 Reply Last reply Reply Quote 0
                  • rbakerR
                    rbaker @TheStrayMongrel
                    last edited by rbaker

                    @TheStrayMongrel said in How can I control 2 players with one keyboard (RetroArch)?:

                    not sure how to post scroll down command line blocks

                    You use markdown: http://commonmark.org/help/

                    Code blocks are the last one on the list. You use ``` before and after.

                    TheStrayMongrelT 1 Reply Last reply Reply Quote 0
                    • TheStrayMongrelT
                      TheStrayMongrel @rbaker
                      last edited by

                      @rbaker said in How can I control 2 players with one keyboard (RetroArch)?:

                      @TheStrayMongrel said in How can I control 2 players with one keyboard (RetroArch)?:

                      not sure how to post scroll down command line blocks

                      You use markdown: http://commonmark.org/help/

                      Code blocks are the last one on the list. You use ``` before and after.

                      Great thanks @rbaker will check it out.

                      Reading futher into it think it might be time i considered 86ing my current setup and buying the Controlblock. Will have a nice powerswitch that way too.

                      Raspberry Pi 2 B+

                      1 Reply Last reply Reply Quote 0
                      • TheStrayMongrelT
                        TheStrayMongrel
                        last edited by

                        It works!!!!!! Dumb****ery on my part, syntax error and i neglected to put "num" prior to the numbers 2 and 6 in the player 2 config. Of course the most important commands of the lot as they add coins and launch games. Fired up the Adafruit utility and that works so the arcade controls are go and my test games SF3, Alpha and even tried DK Country on snes to make sure and its all good. So still plenty of configuring to do, getting buttons in the right spot but thanks so much guys, 2 player works. Brilliant work @rbaker @meleu @dankcushions and everyone else here really... you guys are definitely in my cool book. Damn it eats away at you when a problem gets the better of you... but oh so satisfying when the remedy is found.

                        Raspberry Pi 2 B+

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

                          Phew!
                          phew

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