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

    How to setup a single button to Exit Game, using zero delay USB encoder

    Scheduled Pinned Locked Moved Help and Support
    encodersanwaexit gameexit buttonarcade buttons
    13 Posts 5 Posters 5.6k 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.
    • J
      jag64551
      last edited by

      Hello, apologies if there is an answer to this already, but I couldn't find one. I'm working on building my first cabinet, and before I make final plans for spots needed for buttons, I am wondering if:
      A) It's possible to setup a single button to exit game (similar to Start + Hot Key on a controller) and
      B) How to do it

      The goal would be to only have one button needed (labeled "Exit Game"), as this cabinet will be played by those not familiar with the Retropie interface. I'd prefer to not require a combo pressed to exit.

      Any input would be appreciated. Thanks!

      Pi Model or other hardware: Pi 4
      Power Supply used: USB-C Pi Compatible PS with on/off switch - 5.1V 3A
      RetroPie Version Used: 4.6
      Built From: downloaded directly from https://retropie.org.uk/download/

      1 Reply Last reply Reply Quote 0
      • IanDaemonI
        IanDaemon
        last edited by IanDaemon

        In the newer Retroarch there's an option to set "hold start for two seconds" as your "exit game" taking you to EmulationStation. No coding required.

        • 5 Favorite Arcade Games in MAME
        • Cocktail Cabinet Games
        • Check out the MAME RoW
        J ChupachupsC 2 Replies Last reply Reply Quote 0
        • J
          jag64551 @IanDaemon
          last edited by

          @IanDaemon Ok, I will have to check that out and see if it would be a good solution across the board. I am not using retroarch for a few of the games. Thanks for the input.

          1 Reply Last reply Reply Quote 0
          • SpokeXXS
            SpokeXX
            last edited by SpokeXX

            I don't mean to hijack this thread but this question is exactly what I'm looking to answer as well. So I'd rather keep the conversation in here than start another thread. My plan is almost similar, convert my Williams Stargate cabinet to run on a Retropie and use the original cabinet buttons to play. I'm not using a gamepad or any game controller, I'm only using a keyboard. I know how to configure the keyboard in Retropie and the game plays fine, but I don't know how to exit the game and get back into the RetroPie menu. I want to set this all up good now before I start hooking up the iPac controller. SO, in short, how do i set up my keyboard to exit the game and get back to the Retropie menu?
            Much appreciation.

            mituM 1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator @SpokeXX
              last edited by

              @spokexx said in How to setup a single button to Exit Game, using zero delay USB encoder:

              SO, in short, how do i set up my keyboard to exit the game and get back to the Retropie menu?

              By default, pressing Esc will quit RetroArch - isn't this working for you ?

              SpokeXXS 1 Reply Last reply Reply Quote 0
              • ChupachupsC
                Chupachups @IanDaemon
                last edited by Chupachups

                @iandaemon said in How to setup a single button to Exit Game, using zero delay USB encoder:

                In the newer Retroarch there's an option to set "hold start for two seconds" as your "exit game". No coding required.

                Please, where? I don't see it in retroarch menu with lr-mame2003 and 2003-plus :(

                EDIT: I have see it: settings>Input>Hotkey Binds>Menu Toggle Gamepad Combo (set to "Hold start (2 seconds)"), but with this, i can open retroarch menu, not exit

                IanDaemonI 2 Replies Last reply Reply Quote 0
                • IanDaemonI
                  IanDaemon @Chupachups
                  last edited by IanDaemon

                  What are we trying to do here? Are we trying to go back to the RA menu or ES menu? People in this thread are trying to do both.

                  @chupachups Then that isn't the right setting. I'll find it tonight after work. I know it works because I use it on my upright cabinet. Quitting the emulator from the RA menu is simple enough though. IIRC it's "B" to back out to the quick menu, "Up" on the joystick to go to the bottom of the list, and then "A" to select the option. Regardless, I'll take a look at how I have the "Hold start (2 seconds)" setup in RA to return me to the ES menu.

                  • 5 Favorite Arcade Games in MAME
                  • Cocktail Cabinet Games
                  • Check out the MAME RoW
                  J 1 Reply Last reply Reply Quote 0
                  • J
                    jag64551 @IanDaemon
                    last edited by

                    @iandaemon My initial question was to have a single button on the arcade cabinet I'm making that takes the user back to the ES game list, when hit (just like hitting the Start + Hot Button combo). This might be different than what others are looking for. Thanks.

                    ChupachupsC 1 Reply Last reply Reply Quote 0
                    • IanDaemonI
                      IanDaemon @Chupachups
                      last edited by

                      @chupachups said in How to setup a single button to Exit Game, using zero delay USB encoder:

                      EDIT: I have see it: settings>Input>Hotkey Binds>Menu Toggle Gamepad Combo (set to "Hold start (2 seconds)"), but with this, i can open retroarch menu, not exit

                      You are right; I just checked it on my cabinet. I guess I hit "B-Up-A" without thinking.

                      • 5 Favorite Arcade Games in MAME
                      • Cocktail Cabinet Games
                      • Check out the MAME RoW
                      1 Reply Last reply Reply Quote 0
                      • ChupachupsC
                        Chupachups @jag64551
                        last edited by Chupachups

                        "setup a single button to Exit Game", me too
                        but no option for this in retroarch menu

                        After i read this
                        https://retropie.org.uk/forum/topic/25538/how-to-set-pause-key-for-libretro-emulators
                        i think it's not possible ("When enabling the hotkey in RetroArch, you can't use a single key for the command, you need to use the hotkey"); only with a script

                        IanDaemonI 1 Reply Last reply Reply Quote 0
                        • IanDaemonI
                          IanDaemon @Chupachups
                          last edited by IanDaemon

                          @chupachups START + SELECT used to dump you back to the ES menu (with RGUI Retroarch). With XMB Retroarch, I actually like holding START to go to the RA menu better because SELECT is the "insert coin" button and when you're playing two players you can easily be hitting both at the same time. (e.g. 1P hits start and 2P inserts coin = oops, the game quit unexpectedly)

                          Once I'm in the Retroarch menu a quick "B-Up-A" will dump me back to EmulationStation anyway.

                          • 5 Favorite Arcade Games in MAME
                          • Cocktail Cabinet Games
                          • Check out the MAME RoW
                          IanDaemonI 1 Reply Last reply Reply Quote 0
                          • IanDaemonI
                            IanDaemon @IanDaemon
                            last edited by IanDaemon

                            After some fiddling around I've found that NO, the Esc key won't exit the emulator and Retroarch (xmb) by itself, but it WILL if pressed in conjunction with the Hotkey assigned.

                            • 5 Favorite Arcade Games in MAME
                            • Cocktail Cabinet Games
                            • Check out the MAME RoW
                            1 Reply Last reply Reply Quote 0
                            • SpokeXXS
                              SpokeXX @mitu
                              last edited by

                              @mitu OK I figured it out. Fist i got into Stargate on RetroPie and re-assigned the game controls to different keys using Tab. "Input, this game". F is fire, T is thrust, H is hyperspace, 1 is player1 start, 2 is player2 start, S is smart bomb, I is inviso, R is reverse, arrow up is UP, arrow down is DOWN. This makes my head easier to remember. Then I went back into EmStation, disconnected the USB gamepad and reconfigured the keyboard as main controller. I set key 1 as Start and key 2 as Select. I also set key T as B and key F as A. Down at the bottom of the configure menu I left hotkey blank and when asked, I selected Yes. I also went into RetroArch/Settings/Input/Hotkey Binds and made sure Press Quit Twice is set to OFF. So to exit the game now I press 1 and 2 together and it brings me back to EmStation. And when the Pi is in the cabinet (hooked up to iPac2), I can work through the EmStation using the Stargate control buttons and never need a keyboard or gamepad again.

                              1 Reply Last reply Reply Quote 1
                              • 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.