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

    Has anyone got a keyboard working for Player 2 in PiFBA?

    Scheduled Pinned Locked Moved Help and Support
    48 Posts 9 Posters 19.6k 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.
    • T
      thekits
      last edited by

      This is gold!

      I have a Rpi 1 B+ and only PiFba is usable for me for Neo-Geo. I use two arcade style sets of controls which are connected via USB interfaces to the ports of the Pi, plus a USB keyboard.

      I updated from source just like @meleu said, I used jstest to check the corresponding values of my controllers and edited fba2x.cfg to match my setup and voila! everything seems to work!!!...but....

      ...the UP/DOWN controlls of Player 1 don't work. Player 2 controls works excellent! Their settings in the fba2x.cfg file are quite identical. Any ideas?

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

        @thekits Please post your config. Mine is:

        A_1=306       # left ctrl
        B_1=32        # space
        X_1=308       # left alt
        Y_1=304       # left shift
        L_1=122       # z
        R_1=120       # x
        START_1=49    # 1
        SELECT_1=53   # 5
        LEFT_1=276    # left arrow
        RIGHT_1=275   # right arrow
        UP_1=273      # up arrow
        DOWN_1=274    # down arrow
        QUIT=27       # esc
        #player 2 keyboard controls, disabled by default
        A_2=97 #a (button1)
        B_2=113 #q (button3)
        X_2=115 #s (button2)
        Y_2=119 #w
        L_2=105 #i
        R_2=107 #k
        START_2=50 #2
        SELECT_2=54 #6
        LEFT_2=100 #d
        RIGHT_2=103 #g
        UP_2=114 #r
        DOWN_2=102 #f
        

        and the controls are fine.

        T 1 Reply Last reply Reply Quote 0
        • T
          thekits @rbaker
          last edited by

          @rbaker I will as soon as I get home!

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

            @thekits are you using keyboard or joystick for player1?

            BTW, once you get it working, maybe you like to know this pifba trick:
            https://retropie.org.uk/forum/topic/3563/pifba-trick-custom-button-configs-for-different-games

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

              @rbaker and @meleu thank you for your help. I figured it out!

              The default fba2x.cfg contains:

              JA_LR=0
              JA_UD=3
              

              As soon as I changed it to:

              JA_LR_1=0
              JA_UD_1=3
              

              ...everything worked excellent!!!

              @meleu maybe this trick of yours will come in handy.

              1 Reply Last reply Reply Quote 1
              • ?
                A Former User @meleu
                last edited by

                @meleu This is fantastic, I was looking for this exact thing. I'm actually unsure if my player 2 works of not using my Ipac2 on my bartop, but this link to reconfigure for a 4 button or 6 button setup is brilliant. Thank you for sharing that.

                meleuM 1 Reply Last reply Reply Quote 0
                • meleuM
                  meleu @A Former User
                  last edited by

                  @RickSanchez81 I'm glad to know it. :-)
                  I did these little improvements on pifba thinking on raspi1 and zero owners. But then @edmaul69 said that he is running lr-fba-next on his raspi zero... this made me say "farewell" to the pifba code.

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

                    @meleu i honestly dont know if i put lr-fba-next on it myself but it works for me so i use it.

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User @meleu
                      last edited by

                      @meleu I just spent last night reading through all of this, I'm not the best at configuring the Mame/FBA side of things, the Romsets still confuse the life out of me, so after some reading I've discovered the PiFBA isn't favoured any more, am I correct in saying that, I've gathered the lr-FBA Next is the way forward and I believe that it is now called lr-FBAlpha, am I still on track or have I misunderstood it again?

                      Sorry if I'm rambling.

                      I really just want to have a setup where I can play the Street Fighter II and Street Fighter III games, plus the newly discovered Marvel Vs Capcom and Marvel Vs Street Fighter, along with classics like the KOF Series.

                      The lr-FBAlpha uses Retroarch so that'd be fantastic but now I'm faced with working out the Romset issues again and ultimately working out how I get the correct neogeo.zip bios to go with them.

                      I just get confused with all the guides, when reading them it just appears that everybody has it worked out and I'm banging my head against a wall. I'd like to get it working though, I built a brilliant Bartop with my Rpi2 and an Ipac2.

                      meleuM 2 Replies Last reply Reply Quote 0
                      • meleuM
                        meleu @A Former User
                        last edited by

                        @RickSanchez81 if you want to use lr-fbalpha you'll need the "final burn alpha 2016 reference set".

                        I hope you know what to do with this information. :-)

                        • Useful topics
                        • joystick-selection tool
                        • rpie-art tool
                        • achievements I made
                        ? 1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User @meleu
                          last edited by

                          @meleu Suddenly it all works amazing. Thank you very much sir,

                          1 Reply Last reply Reply Quote 0
                          • meleuM
                            meleu @A Former User
                            last edited by

                            @RickSanchez81 said in Has anyone got a keyboard working for Player 2 in PiFBA?:

                            I built a brilliant Bartop with my Rpi2 and an Ipac2.

                            Share some pics of your build with us here: https://retropie.org.uk/forum/category/9/projects-and-themes

                            Cheers!

                            • Useful topics
                            • joystick-selection tool
                            • rpie-art tool
                            • achievements I made
                            ? 1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User @meleu
                              last edited by

                              @meleu Have done this now.

                              1 Reply Last reply Reply Quote 1
                              • B
                                boie
                                last edited by

                                Can anyone direct me to on how to get to the file to input 2 joysticks.

                                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.