A small program that waits and exits when a chosen joystick button is is pressed on any connected controller.
I wanted something simple to retrigger a script when a specific joystick button is pressed.
$ while true; do (echo HELLO); jwait; done
HELLO
HELLO
HELLO
...
Linux only for now.