RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Exit every Emulator with "escape" key

    Scheduled Pinned Locked Moved Help and Support
    exit gameretroarch.cfgretropieretroarch
    26 Posts 14 Posters 34.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • FloobF
      Floob @AndersHP
      last edited by

      @AndersHP said in Exit every Emulator with "escape" key:

      @Floob Could the pause button be made without the hotkey being pressed first? Like a dedicated Pause button?

      Yes, but you either have "enable hotkeys" on or not, so on your setup will either perform the shortcut action in conjunction with a hotkey, or will perform the action presses on its own. You cant mix and match.
      With my arcade setup I use dedicated hotkeys, and on my portable Pi setup I use the enable hotkey function as I rarely use the keyboard.

      ?t=2138

      Please read the Docs before asking a new question.
      RetroPie Help Guides: https://goo.gl/3gcNsT

      1 Reply Last reply Reply Quote 0
      • hiulitH
        hiulit @mediamogul
        last edited by

        @mediamogul Is there any way to achieve the same effect without using xboxdrv?

        My little contributions to the RetroPie project:

        • Shell-Script-Boilerplate
        • Fun-Facts-Splashscreens
        • Limit-Last-Played-Games
        mediamogulM 1 Reply Last reply Reply Quote 0
        • mediamogulM
          mediamogul Global Moderator @hiulit
          last edited by

          @hiulit

          I think to get this level of universal control, you'd have to use an external mapping solution of some kind. If xboxdrv isn't an option for you, you might want to look at Linux Joystick Mapper.

          RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

          hiulitH 1 Reply Last reply Reply Quote 0
          • hiulitH
            hiulit @mediamogul
            last edited by

            @mediamogul Thanks for your quick reply! It's not that xboxdrv is not an option for me, it's just that I wanted to know if there was the possibility to do this easier :) I think I read once someone mentioning that it could be done but I can't seem to find it..

            My little contributions to the RetroPie project:

            • Shell-Script-Boilerplate
            • Fun-Facts-Splashscreens
            • Limit-Last-Played-Games
            mediamogulM 1 Reply Last reply Reply Quote 0
            • mediamogulM
              mediamogul Global Moderator @hiulit
              last edited by

              @hiulit

              If you find it, post back. I'm always interested in simplifying where I can myself.

              RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

              1 Reply Last reply Reply Quote 0
              • CybermenC
                Cybermen
                last edited by

                Hello, I know the topic is a bit older. But which GPIO pins should the exit button be connected to make it work? Do you have to do anything else if you want to have an exit button?

                1 Reply Last reply Reply Quote 0
                • BenMcLeanB
                  BenMcLean
                  last edited by BenMcLean

                  I've been reading over this thread and it seems like some people giving answers didn't see the threat title. It isn't asking how to enable hotkeys in RetroArch. It's asking how to exit every emulator with the escape key, whether it happens to be a RetroArch core or not.

                  Personally, I've been relying on SSH to reboot if any non-RetroArch emulator gets stuck, because someone must have been on drugs or something to decide PPSSPP did not need a keyboard shortcut to exit the program. Cause, y'know, exiting the program is totally not something people would ever want to do.

                  isrnickI 1 Reply Last reply Reply Quote 0
                  • isrnickI
                    isrnick @BenMcLean
                    last edited by

                    @benmclean Here, @m3chstaa posted a method to exit with a button from PPSSPP:

                    @m3chstaa said in Passing argument/parameter to emulator:

                    @zerojay Man, you are a hero! It works!

                    For anyone else who may be searching this, I have found how to exit from PPSSPP straight back to retropie using a quit button. Make sure you have all your settings correct within PPSSPP. Once you are happy with your settings then configure the "pause menu" in Controls to the button that you want to use to exit the emulator. If the mouse pointer is also an issue to you then you will find that by ticking the "Fullscreen" option that this disappears.

                    Ok so now find your configs folder, go into "psp" folder and find emulators.cfg. Edit this using your chosen method and find the line

                    ppsspp = "/opt/retropie/emulators/ppsspp/PPSSPPSDL %ROM%"

                    Change it to:

                    ppsspp = "/opt/retropie/emulators/ppsspp/PPSSPPSDL %ROM% --escape-exit"

                    Save it and now your "pause" button will exit the PSP game straight back to your frontend.

                    Obviously you can no longer get into your settings unless you reverse this procedure and remove the "--escape-exit" parameter.

                    1 Reply Last reply Reply Quote 0
                    • M
                      MISTERHOLLYW00D
                      last edited by

                      This is great. I really want this in my build. Anyway someone can’t write up or video a tutorial.

                      I would like to install enable Xboxdrv and then make start as escape all emulators but only activated when done with a hold press.

                      Do I just put that script anywhere in retroarch.cfg file? Does it need # or anything?

                      1 Reply Last reply Reply Quote 0
                      • T
                        tradcli @Endprodukt
                        last edited by

                        @Endprodukt

                        Here is a simple solution. Salvage an old usb keyboard, take the little controller board. Follow the traces from the esc key ( there will be only 2 of the 23 or so connections) and solder the button to those points. Basically, now you have a one key, usb keyboard. Just the esc function. It works perfect for me using an old dell keyboard. You can get fancy and make a spacebar or any other charactor the same way and the one board on mine will end up 4 buttons, 1, 2 , space and esc.~~

                        • ![strikethrough text](image url)~~
                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.