GPIO to arcade controls
-
Okay so didnt manage to get my arcade controls working through FBA, player 1 no problems but not player 2... so thought I'd pose a different question.
Can i ask what people out there are using to convert button presses to keyboard strokes? I'm using the Adafruit utility as per this: https://learn.adafruit.com/retro-gaming-with-raspberry-pi/buttons
Or is no one (very few people) using GPIO and only the usb breakouts all la IPac?
My dual 6 button arcade control is working great in mame4all but just not happening in Final Burn Alpha. I guess if i distill it down my problem is coming from the fact i dont seem to be able to get player one and player two working on a single keyboard.
Any tips or tricks would be greatly appreciated.
Thanks
-
@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.
-
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.
-
@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.
-
@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).
-
@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.
-
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.
-
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.
-
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 :)
-
@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.
-
@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!)
-
@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.
-
@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 -
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
-
@TheStrayMongrel
I am connecting my arcade buttons directly to the GPIO with this: https://github.com/recalbox/mk_arcade_joystick_rpi -
Thanks @bizxaero good to know, will have a look.
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.