I am trying so setup a script that will execute an [ESC] when a button is pushed (wired to the GPIO). I have tried writing a bash script using xdotool to no avail and have now switched gears to a python script using uinput. Here is my script:
Then restart the emulator, load a ROM, and push my little black button. You’re not gonna believe this but, the damn thing doesn’t work. If I hit the [ESC] on my keyboard, I get back to the menu without fail. I know the input logic is working because I can see the returned output lines in the terminal window, and the logic that drives rebooting if the button is pushed for more that 6 secs works well. Any help here would be appreciated.
first, thanks for answering so quickly.
I was aiming for a solution that was not using snesdev, like juicebox here above.
but with a lot of my research results pointing to snesdev, it was my fallback option if plan A was not working.
I’ll try your version, thanks for sharing.
Which gpio pin do I have to connect my switch to? I just need the reset button.