We have rebuild an old dead Arcade cabinet and fitted it with retropie, image: RetroPie SD-card Image for Raspberry Pi 2 Version 3.0 BETA 4
It uses two seperate “DragonRiseInc.GenericUSBJoystick” joystickcontroller.
As the arcade cabinet only has 3 buttons+start+coin on each side, there are plenty of button connections left on the controllers.
I would like to dedicate a button to exit the emulator and return to the retropie frontend.
I have managed to do so in AdvMame and Mame4All, but am having trouble in FBA.
The exitbutton is wired to js0-button 10 (verified by jstest /dev/input/js0)
my /opt/retropie/configs/fba/fba2x.cfg is as follows. As you can see, I tried to add QUIT to the joystick portion.
I had the same issue using “zero delay encoders”. The problem is that they aren’t “true” keyboard encoders, but are seen as generic “joysticks”. I used adafruit’s guide and used their retrogame tutorial and program to program a GPIO button (much like Matthew did) to key “ESC”.