How to get out of the game?

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of corax corax 4 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1136
    Profile photo of corax
    corax
    Participant

    Hi,

    I have to say a very big thanks for this nice script!

    And I got a question:
    How can i get out of a game, back to emulationstation? Without a keyboard!

    Regards corax

    #1149
    Profile photo of petrockblog
    petrockblog
    Keymaster

    I am thinking about two ways right now:

    Software approach: You can configure RetroArch such that it uses a combination of a hotkey together with a certain button of the game pad the exit the emulator. There is an entry in the wiki about that at https://github.com/retropie/RetroPie-Setup/wiki/Does-anybody-know-if-there%27s-a-way-to-edit-the-retroarch.cfg-to-give-me-the-ability-to-exit-an-emulator-by-using-the-controller%3F. I have not tried that on my own yet, but I would be curious to know if it works as intended!

    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

    I hope that helps!?

    #1150
    Profile photo of corax
    corax
    Participant

    This helps a lot!

    This one works really fine 🙂

    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]

Viewing 3 posts - 1 through 3 (of 3 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar