GPIO and USB controllers for 2 player
-
Hi. Need some help please. I've built a PI3 into a dreamcast arcade stick. The arcade stick and buttons are wired straight to GPIO and I also have a USB SNES style controller also plugged into the PI. I'm running the latest Retropie. The issue I have is that the PI sees the Arcade Stick and the USB Controller as Player 1 only (both work perfectly). Can someone please point me in the direction of how to set up Retropie so it sees the arcade stick plugged into GPIO as Player 1 and the USB controller as player 2. Thanks in advance.
-
@oxo Both as player1? It's a strange behavior. At least for RetroArch-based emulators (most of emulators on RetroPie) you can use this tool: https://github.com/meleu/retropie-joystick-selection
-
I had a similar problem using the RetroBuiltGames Guide
My problem was the the GPIO buttons were being recognized as KEYBOARD buttons. The keyboard is always player 1, and any controller I plugged in would ALSO be player 1.
My solution was to use the mk_arcade_joystick_rpi module,m which maps the GPIO pins as a new controller, rather than as keyboard inputs.
Let me know if that helps any!
-
@mercifulhacker Note that this solution also makes it easier to get the hotkeys working with GPIO inputs, since it's just another controller.
The only major limitation is that mk_arcade_joystick_rpi only allows for each GPIO controller to have 4-way joystick and 8 buttons (a,b,x,y,l,r,Start,select), so my last two GPIO buttons (R2, L2) aren't recognized by the software EVEN though they are plugged into the board.
Seems like a silly limitation, but the mk works so well for me otherwise that I don't complain.
-
Thanks very much for your help. You hit the nail on the head and I have the same problem. I'll try that module and report back. Much appreciated.
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.