Homepage › Forums › RetroPie Project › Everything else related to the RetroPie Project › power indicator, shutdown button › Reply To: power indicator, shutdown button
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.