petrockblog
Keymaster
Post count: 1827

SNESDev (https://github.com/petrockblog/SNESDev-RPi) implements a virtual keyboard that executes the shutdown command when pressing the button of the RetroPie GPIO Adapter five times. Maybe you want to have a look at the sources of SNESDev.