Hardware approach: You could attach a momentary push button to one of the GPIO pins, just as the RetroPie GPIO adapter does. You could then poll the state of the button, e.g., with SNESDev (https://github.com/petrockblog/SNESDev-RPi) and perform certain action, when certain events have happened. SNESDev has implemented a three state automaton with this functionality:
• press and hold: send “r” key (for rewind function of RetroArch)
• press and release three times: send “ESC”
• press and release five times: shutdown
The idea is to set a key that must be held to use hot keys (such as select) with “input_enable_hotkey_btn = 1” and then an exit key (such as start), which will now only work if the enable hot key button is held down, with “input_exit_emulator_btn = 2”.[/qoute]
Necessary and Functional
These cookies are placed to make it possible to analyze this website (with Google Analytics) and optimize for the purpose of a.o. the usability.
Cookie names: _ga, _gat, _gid
These cookies are placed to show advertisements (of Google AdSense) and to get these close to your interest.
Cookie names: id, IDE, FLC, DSID, SNID, NID
These cookies are required to show the cookie notification bar, remember your cookie acceptance choice and apply this choice.
Cookie names: privacy_embeds, wpca_consent, woocommerce_cart_hash, woocommerce_items_in_cart, wp_woocommerce_session_, wp-settings-1, wp-settings-time-1