• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
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.
  • E
    Endprodukt
    last edited by 29 Aug 2016, 17:41

    I have a dedicated exit button on my mini-cabinet but I'm struggling to get my emulators to exit on a single key (if even possible).
    No problem with mame but all the retroarch games.

    I've set "input_exit_emulator_btn = "escape"" - but it doesn't work (this is in the "all" retroarch.cfg). I've also set the hotkey to "nul" without success.

    Any ideas?

    T 1 Reply Last reply 22 Sept 2020, 20:51 Reply Quote 0
    • E
      Endprodukt
      last edited by 29 Aug 2016, 17:55

      Got it. I had to edit the specific emulator retroarch.cfg - I've set "input_enable_hotkey_btn = "nul" and input_exit_emulator = "escape"

      Works like a charm.

      E 1 Reply Last reply 30 Aug 2016, 05:55 Reply Quote 1
      • E
        edmaul69 @Endprodukt
        last edited by edmaul69 30 Aug 2016, 05:55

        @Endprodukt you nul'ed out the controller hotkey. if you want to still be able to use the controller hotkey button to be able to get into the rgui then remove the hotkey btn line you nul'ed out and add this:

        Input_enable_hotkey = "escape"
        
        1 Reply Last reply Reply Quote 1
        • T
          TheStrayMongrel
          last edited by 30 Aug 2016, 13:09

          Fantastic guys, that was something i was wondering about also. Had the escape key mapped fine in mame4all but not fba, snes, nes.

          input_enable_hotkey = "escape"
          input_exit_emulator = "escape"

          in the individual emulator configs worked a treat.

          Im keen to get a pause button going also, thought i might use the 2p coin button for that maybe. Do you know if there is a pause option in Retroarch, dont recall seeing an option in the retroarch gui?

          thxagain

          Raspberry Pi 2 B+

          F 1 Reply Last reply 30 Aug 2016, 20:10 Reply Quote 0
          • F
            Floob @TheStrayMongrel
            last edited by 30 Aug 2016, 20:10

            @TheStrayMongrel
            Yep

            # Toggle between paused and non-paused state
            # input_pause_toggle = p
            

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

            A 1 Reply Last reply 25 Jan 2017, 09:57 Reply Quote 1
            • T
              TheStrayMongrel
              last edited by 30 Aug 2016, 22:59

              Excellente, Thanks @Floob

              Raspberry Pi 2 B+

              E 1 Reply Last reply 30 Aug 2016, 23:08 Reply Quote 0
              • E
                edmaul69 @TheStrayMongrel
                last edited by 30 Aug 2016, 23:08

                @TheStrayMongrel only problem with that is if you have to have the hotkey to use pause toggle you will need to place the hotkey to something other than escape. Unless your arcade controls are a controller and not a "keyboard"

                T 1 Reply Last reply 30 Aug 2016, 23:24 Reply Quote 0
                • T
                  TheStrayMongrel @edmaul69
                  last edited by 30 Aug 2016, 23:24

                  @edmaul69 Oh yeah definitely, will likely put it to the default player 2 coin button, which is 6 on the keyboard from memory. I'm guessing I'll likely have to disable the existing add credits function it currently has. Would be great to have dual functions on the exit buttons where a press causes the game to pause, and hold it down for 3 or 4 seconds causes the game to exit... is that something that's doable?

                  Raspberry Pi 2 B+

                  D 1 Reply Last reply 17 Dec 2016, 19:00 Reply Quote 0
                  • topic:timeago-later,4 months
                  • D
                    dsstrainer @TheStrayMongrel
                    last edited by 17 Dec 2016, 19:00

                    @TheStrayMongrel You just need to set the hotkey to "nul" then your escape and pause keys will work without any hotkey needed

                    RetroPie v4.2 • RPi3 Model B • 5.1V 2.5A PSU • 8GB SanDisk class 10 microSD • 16GB External USB Thumb Drive
                    Roms, images and configs stored in USB and symlinked from normal microsd location
                    Xarcade Keyboard encoder + Zero Delay Joystick encoder

                    1 Reply Last reply Reply Quote 0
                    • B
                      BuZz administrators
                      last edited by 17 Dec 2016, 19:56

                      note that this can be done from retropie-setup -

                      Configuration / Tools -> RetroArch -> Configure keyboard hotkey behaviour for RetroArch

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                      D 1 Reply Last reply 21 Dec 2016, 20:04 Reply Quote 0
                      • D
                        dsstrainer @BuZz
                        last edited by 21 Dec 2016, 20:04

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

                        note that this can be done from retropie-setup -

                        Configuration / Tools -> RetroArch -> Configure keyboard hotkey behaviour for RetroArch

                        How does this translate to the retroarch.cfg file? Will this write "nul" in the field?

                        RetroPie v4.2 • RPi3 Model B • 5.1V 2.5A PSU • 8GB SanDisk class 10 microSD • 16GB External USB Thumb Drive
                        Roms, images and configs stored in USB and symlinked from normal microsd location
                        Xarcade Keyboard encoder + Zero Delay Joystick encoder

                        B 1 Reply Last reply 21 Dec 2016, 20:25 Reply Quote 0
                        • B
                          BuZz administrators @dsstrainer
                          last edited by 21 Dec 2016, 20:25

                          @dsstrainer if you choose Hotkeys enabled. (default) it will do

                          input_enable_hotkey = "nul"
                          input_exit_emulator = "escape"
                          input_menu_toggle = "f1"
                          

                          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                          D 1 Reply Last reply 21 Dec 2016, 20:30 Reply Quote 1
                          • D
                            dsstrainer @BuZz
                            last edited by 21 Dec 2016, 20:30

                            @BuZz Ah ok thanks for the info :)

                            RetroPie v4.2 • RPi3 Model B • 5.1V 2.5A PSU • 8GB SanDisk class 10 microSD • 16GB External USB Thumb Drive
                            Roms, images and configs stored in USB and symlinked from normal microsd location
                            Xarcade Keyboard encoder + Zero Delay Joystick encoder

                            1 Reply Last reply Reply Quote 0
                            • topic:timeago-later,about a month
                            • A
                              AndersHP
                              last edited by 23 Jan 2017, 10:03

                              Since we're talking of both pause and escape, I wanted to know if there's a possibility to add a "hold to escape" function to a button, instead of using one button as escape only.

                              I'm having a center button on my arcade, and wanted it to act as a pause key, with the hold to escape functionality. Can this be done?

                              My "Bubble Bobble" Themed Bartop Arcade
                              My Gameboy

                              M 1 Reply Last reply 23 Jan 2017, 14:47 Reply Quote 0
                              • M
                                mediamogul Global Moderator @AndersHP
                                last edited by mediamogul 23 Jan 2017, 14:47

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

                                I wanted to know if there's a possibility to add a "hold to escape" function to a button

                                This can be done with xboxdrv, provided that your arcade controls register as joystick input and not keyboard input.

                                From the xboxdrv manpage:

                                delay:TIME
                                A button has to be held down for TIME milliseconds before it will
                                emit an event, press events shorter then that will be ignored.

                                Example:

                                --ui-buttonmap start^delay:325=KEY_ESC
                                

                                In the example above, the 'start' button has been mapped to send the 'escape' key after being pressed for longer than 325 milliseconds.

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

                                H 1 Reply Last reply 21 Mar 2017, 00:55 Reply Quote 1
                                • A
                                  AndersHP @Floob
                                  last edited by 25 Jan 2017, 09:57

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

                                  My "Bubble Bobble" Themed Bartop Arcade
                                  My Gameboy

                                  F 1 Reply Last reply 25 Jan 2017, 19:59 Reply Quote 0
                                  • F
                                    Floob @AndersHP
                                    last edited by 25 Jan 2017, 19:59

                                    @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
                                    • topic:timeago-later,2 months
                                    • H
                                      hiulit @mediamogul
                                      last edited by 21 Mar 2017, 00:55

                                      @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
                                      M 1 Reply Last reply 21 Mar 2017, 01:00 Reply Quote 0
                                      • M
                                        mediamogul Global Moderator @hiulit
                                        last edited by 21 Mar 2017, 01:00

                                        @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

                                        H 1 Reply Last reply 21 Mar 2017, 01:06 Reply Quote 0
                                        • H
                                          hiulit @mediamogul
                                          last edited by 21 Mar 2017, 01:06

                                          @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
                                          M 1 Reply Last reply 21 Mar 2017, 01:42 Reply Quote 0
                                          5 out of 26
                                          • First post
                                            5/26
                                            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.

                                            This community forum collects and processes your personal information.
                                            consent.not_received