How to programm game interruption with GPIO pins (SNES Retropie mod)
-
-
Hey!
Please have a look into this thread:
https://retropie.org.uk/forum/topic/7126/want-to-use-usb-controllers-and-gpio-buttons-for-hotkeys
I had the same question and came up with retrogame by adafruit.
-
-
@zulorumx said in How to programm game interruption with GPIO pins (SNES Retropie mod):
Hey everybody,
I found a better solution for me which is additional free and easy to make.You only have to make a little python script which starts at boot and reboot.
This script only have to detect the button and then it have to kill all emulators like this:import os /you have to import this to execute console commands via python
os.system("killall retroarch")
os.system("killall dosbox")
os.system("killall atari800") /for the lr-Stella emulator(kills also the ATARI5200)
os.system("killall uae4arm")
os.system("killall scummvm")IF ANYBODY WANT I CAN ADD HERE A DOWNLOAD LINK WITH MY SCRIPT WHICH SUPPORTS ALSO THE RESET BUTTON FROM THE SNES
DOWNLOAD: ~
This is one of the most inefficient ways to kill emulators. You might want to reconsider as gpio buttons are prone to false positive clicks. You might get random Emukills due to this.
-
@Hex @zulorumX
Take a look around here In last posting @meleu and me did resolve some problems with shutdown and escape emulators by GPIO signal.
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.