Exit every Emulator with "escape" key
-
@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"
-
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
-
@TheStrayMongrel
Yep# Toggle between paused and non-paused state # input_pause_toggle = p
-
Excellente, Thanks @Floob
-
@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"
-
@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?
-
@TheStrayMongrel You just need to set the hotkey to "nul" then your escape and pause keys will work without any hotkey needed
-
note that this can be done from retropie-setup -
Configuration / Tools -> RetroArch -> Configure keyboard hotkey behaviour for RetroArch
-
@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?
-
@dsstrainer if you choose
Hotkeys enabled. (default)
it will doinput_enable_hotkey = "nul" input_exit_emulator = "escape" input_menu_toggle = "f1"
-
@BuZz Ah ok thanks for the info :)
-
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?
-
@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.
-
@Floob Could the pause button be made without the hotkey being pressed first? Like a dedicated Pause button?
-
@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.
-
@mediamogul Is there any way to achieve the same effect without using
xboxdrv
? -
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.
-
@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..
-
If you find it, post back. I'm always interested in simplifying where I can myself.
-
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?
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.