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

    GPIO to arcade controls

    Scheduled Pinned Locked Moved Help and Support
    16 Posts 6 Posters 5.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.
    • rbakerR
      rbaker @TheStrayMongrel
      last edited by rbaker

      @TheStrayMongrel I have given up trying to get player 2 controls working on PiFBA. It seems that quite a few people have the same issue:
      https://sourceforge.net/p/pifba/tickets/6/

      A solution is to replace the binary:
      https://github.com/RetroPie/pifba/issues/1 and http://blog.petrockblock.com/forums/topic/player-2-keyboard-controls-on-pifba-dont-work/

      I don't know how to do it. Update from source didn't work for me. I am using lr-fba but it's performance is slightly less.

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

        Thanks for the input @rbaker I'm actually using lr-fba too. Performance is okay for the games im trying to use but still no dice with player 2. Found out that the configs for PiFBA have nothing to do with lr-fba. You can access a gui (hit select and x at the same time i think it was) and allocate keys. Unfortunately you can only allocate gamepad keys and not keyboard. :(

        Replacing the binary sounds like its worth a crack but this link is no longer active unfortunately https://github.com/ian57/Raspicade-configuration-files/blob/master/pifba/fba2x

        Thanks all the same, I'll search around, see if i cant find that binary some place.

        Raspberry Pi 2 B+

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

          @TheStrayMongrel I found this. If I wanted to try it, any ideas what I should do? Maybe replace the fba2x binary? Is it a copy and replace or does something need compiling? There is also a change to a line of code(!) to be made in this solution which enables two players from a keyboard which is what I want. No idea how to do what it says though. Then there is this. It specifically talks about that patch in my previous link. I tried it but it didn't work. The hunt goes on. Maybe I didn't do it correctly.

          1 Reply Last reply Reply Quote 0
          • GreenHawk84G
            GreenHawk84
            last edited by

            @rbaker , quick question, what do you use PiFBA for vs. lr-FBAnext? Didn't want to start a new topic and I can't PM you (unless I overlooked something).

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

              @GreenHawk84 It's fast. Really fast compared to lr-fba-next in my experience, even on a Pi2. It is noticable, for example Taito Power Soccer is super smooth on it.

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

                https://github.com/retropie/retropie-setup/wiki/FinalBurn-Alpha

                I just use LR-FBA for everything and have no slowdown issues on RPi3. When needed I use LR-FBA-NEXT for specific games.

                Note the compatibility on each of the emulators. PiFBA only emulates 684 games, LR-FBA emulates 3369 games, and LR-FBA-NEXT emulates 4150 games. PiFBA might be faster, but you might not be able to find the game you want in a romset for it.

                Aaaaand that's the other hurdle. Right romset for the right emulator. In my opinion there is no silver bullet. You just have to test every game you want and tinker with it.

                1 Reply Last reply Reply Quote 0
                • GreenHawk84G
                  GreenHawk84
                  last edited by

                  Yeah, didn't mean to derail the OP. Sometimes I have side questions. So far I use lr-FBAnext for everything Neo Geo (Metal Slug, KoF, etc) and SFIII 3rd Strike. Seems like this thread suggest controls are a pain for non-LR cores.

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

                    Hey @rbaker, yeah youre asking the wrong person mate (sorry). I'm guessing replace the binary but i have no experience with this as I'm using lr-FBAnext. Had a thought last night in lieu of your post though and thought that I'd try firing up the games i'm having trouble with getting control of (specifically Street Fighter 3 and 2 Alpha) in piFBA, given that binary seems to relatively easily editable. Unfortunately they dont work in it so due to the fact two players off one keyboard is not going to happen my next step is to try FBA on PiPlay (sacrilege on here i know) but quite a lot of attention has been paid to controls with the GPioneer system on there.

                    In an ideal world the gui in FBA would register button presses rather than just scrolling through the joypad buttons. I live in hope :)

                    Raspberry Pi 2 B+

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

                      @TheStrayMongrel Thanks, Piplay forums are full of the issue and celebrations when it was fixed. I looked there but couldn't work out what to do.

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

                        @TheStrayMongrel said in GPIO to arcade controls:

                        Okay so didnt manage to get my arcade controls working through FBA, player 1 no problems but not player 2...

                        Hey man! I've googled around this night and learned about this PiFBA "player2 with keyboard" problem. My Pull Request was merged and I think you'll get it working after a "reinstall from source". :-)

                        (I love the libretro emulators, but I also love to see how smoothly some CPS2 can run on my raspi1 with PiFBA!)

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

                          @meleu I'm excited. Are you saying that an update from source will work now? I did this about 3 weeks ago and it made no difference! This is the only problem I have encountered in all my time using Retropie.

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

                            @rbaker said in GPIO to arcade controls:

                            @meleu I'm excited. Are you saying that an update from source will work now?

                            Yeah man! I'm saying it!

                            I've made the Pull Request today (july 15) near noon (oh... thinking in Brazilian time) and BuZz merged it really fast.
                            https://github.com/RetroPie/pifba/pull/5

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

                              Just bumping this question...

                              Can i ask what people out there are using to convert button presses via the GPIO to keyboard strokes? Or is no one (very few people) using GPIO and only the usb breakouts all la IPac?

                              Thanks

                              Raspberry Pi 2 B+

                              B 1 Reply Last reply Reply Quote 0
                              • B
                                bizxaero @TheStrayMongrel
                                last edited by

                                @TheStrayMongrel
                                I am connecting my arcade buttons directly to the GPIO with this: https://github.com/recalbox/mk_arcade_joystick_rpi

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

                                  Thanks @bizxaero good to know, will have a look.

                                  Raspberry Pi 2 B+

                                  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.