I’m working on a console and having difficulty shutting down emulators using a button on the GPIO. I’ve been able to use a kill -TERM command that works well for most emulators. I’d probably do better simulating an escape key press. Would someone please help. What code is needed exactly to simulate that key press?
I’m currently using
‘os.system(‘kill -TERM %s’ %pid)’
With good success but it doesn’t work with mame4all.