How to configure Arcade Button connected to GPIO
-
Hi everyone,
I'm building my own arcade controller (Stick, 6 action buttons, 3 functional buttons) for retropie and i'm looking for some tutorial to configure controls connected to raspberry GPIO.
Can you help me to find out what I need?
Thanks for help. -
Hey, I'm using Adafruit's Retrogame and it's working flawlessly. And it's super simple to set up.
You can see more info in this tutorial https://learn.adafruit.com/retro-gaming-with-raspberry-pi/adding-controls-hardware?view=all
Hope it helps! ;)
-
@hiulit said in How to configure Arcade Button connected to GPIO:
Hey, I'm using Adafruit's Retrogame and it's working flawlessly. And it's super simple to set up.
You can see more info in this tutorial https://learn.adafruit.com/retro-gaming-with-raspberry-pi/adding-controls-hardware?view=all
Hope it helps! ;)
I'll try as soon as possible. In case of trouble I'll tell you for help.
Thanks!!! -
Hi @davidgrohl
I used mk_joystick_rpi from https://github.com/recalbox/mk_arcade_joystick_rpi , it is a bit fiddly to set up (as you need to install the raspberry pi headers package first) but you can get joystick + 8 buttons for 2 players using just GPIO pins which allows you to have the equivalent of 2 SNES controllers using arcade controls.
Si
-
@hiulit said in How to configure Arcade Button connected to GPIO:
Hey, I'm using Adafruit's Retrogame and it's working flawlessly. And it's super simple to set up.
You can see more info in this tutorial https://learn.adafruit.com/retro-gaming-with-raspberry-pi/adding-controls-hardware?view=allSame here, and it works well. Did have a few teething problems but the good folk here helped me out.
-
@hiulit The thing is if I add certain keys like 1p, 2p (keyboard numbers 1 and 2), those aren't presented as an option when I Configure Inputs. "Configure Inputs" is designed to setup a snes/xbox type control pad. ???
-
@hiulit said in How to configure Arcade Button connected to GPIO:
Hey, I'm using Adafruit's Retrogame and it's working flawlessly. And it's super simple to set up.
You can see more info in this tutorial https://learn.adafruit.com/retro-gaming-with-raspberry-pi/adding-controls-hardware?view=all
Hope it helps! ;)
I second that. I've used it and it works very well!
-
@kevreh If you want to try another idea, check out holgatem's GPIOneer. It is similar to Adafruit's retrogame with the following improvements:
Interactive config lets you setup your buttons/joystick switches by pressing them.
Once configured, you can change the configuration via web interface.
Using the web interface, you can update the map to keyboard keys or input full bash commands! (great for volume, shutdown, etc.)
Using the web interface, you can actually COMBINE buttons by listing more than one GPIO pin, effectively setting up your own hotkey combos.I really like GPIOneer. mholgatem is also very responsive and is working on a rewrite that will enable the software to behave like a keyboard controller or a gamepad--your choice.
-
@caver01 Hey thanks for that! I'm going to give it a try. I got Retrogame to work, even though the key names in the "Configure Input" sequence don't make sense. Maybe GPIOneer will be a little more logical.
-
@kevreh Just keep in mind, the two methods conflict with each other, so I think GPIOneer turns off RetroGame. You can't use both at the same time.
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.