Map "ESC" to Exit?
Moderator: ZSNES Mods
-
- New Member
- Posts: 5
- Joined: Sat Sep 23, 2006 1:42 pm
Map "ESC" to Exit?
Hey All, New Forum User here!
I've been using ZSNES for so many years that I lost count, so when I decided to build an arcade cabinet with multiple arcade and console emulators, naturally ZSNES was my first and only choice for representing SNES.
Unfortunately I've come to an issue I can't seem to find a workaround for, and that is simply mapping the escape key to exiting the emulator (such as with mame).
Obviously I have very little key representation on my button layout, and I need consistency between my emulator behaviors, so this is Very important to me! There doesn't seem to be a way to map it through the UI or cfg file.... is it contained within the dat file? If so, how would I edit it?
I've used and loved ZSNES for years... it would suck if I can't use it for my cab..
Any thoughts?
I've been using ZSNES for so many years that I lost count, so when I decided to build an arcade cabinet with multiple arcade and console emulators, naturally ZSNES was my first and only choice for representing SNES.
Unfortunately I've come to an issue I can't seem to find a workaround for, and that is simply mapping the escape key to exiting the emulator (such as with mame).
Obviously I have very little key representation on my button layout, and I need consistency between my emulator behaviors, so this is Very important to me! There doesn't seem to be a way to map it through the UI or cfg file.... is it contained within the dat file? If so, how would I edit it?
I've used and loved ZSNES for years... it would suck if I can't use it for my cab..
Any thoughts?
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
Grab one of the WIPs from http://zsnes.ipherswipsite.com (I don't know when it was added, but it was surely added before 2006).
Go to Misc->Misc Keys and configure the Exit button from there.
Although, I think this should work in ZSNES 1.42 as well (it's buried withing the same menu actually).
Go to Misc->Misc Keys and configure the Exit button from there.
Although, I think this should work in ZSNES 1.42 as well (it's buried withing the same menu actually).
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
-
- New Member
- Posts: 5
- Joined: Sat Sep 23, 2006 1:42 pm
Beautiful!
I used what I think is his last build (0904)
Although I wasn't able to set the key through the UI for the same reason (When it asks you to bind a key, you actually press ESC to clear), the cfg file was MUCH more thorough, and I was able to set it there easily!
Thanks for the help!
Now all I need is the same functionality from Kega Fusion, Neopop, and VirtuaNES! =P
I used what I think is his last build (0904)
Although I wasn't able to set the key through the UI for the same reason (When it asks you to bind a key, you actually press ESC to clear), the cfg file was MUCH more thorough, and I was able to set it there easily!
Thanks for the help!
Now all I need is the same functionality from Kega Fusion, Neopop, and VirtuaNES! =P
Is there a way to program the "ESC" key in the latest version of ZSNESw151 to exit the emulator when pressed?
As organicjerk mentioned in the past, when you go to change the key assigned to exiting the emulator (binding a key) it says to press ESC to clear, thus preventing you from actually assigning the key to "ESC".
Is there a way maybe, to reassign the key to clear to a key other than "ESC", and then allow you to assign the "ESC" key to exit the emulator?
I know an older version of zsnes was adapted to use the "ESC" to exit the emulator, but I'd like to be able to use the most current version of zsnes, if possible.
Thanks in advance for any help.
As organicjerk mentioned in the past, when you go to change the key assigned to exiting the emulator (binding a key) it says to press ESC to clear, thus preventing you from actually assigning the key to "ESC".
Is there a way maybe, to reassign the key to clear to a key other than "ESC", and then allow you to assign the "ESC" key to exit the emulator?
I know an older version of zsnes was adapted to use the "ESC" to exit the emulator, but I'd like to be able to use the most current version of zsnes, if possible.
Thanks in advance for any help.
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
Probably, but that's not ideal. ESC makes the most sense to cancel a key mapping.ratabase1 wrote:Is there a way to program the "ESC" key in the latest version of ZSNESw151 to exit the emulator when pressed?
As organicjerk mentioned in the past, when you go to change the key assigned to exiting the emulator (binding a key) it says to press ESC to clear, thus preventing you from actually assigning the key to "ESC".
Is there a way maybe, to reassign the key to clear to a key other than "ESC", and then allow you to assign the "ESC" key to exit the emulator?
I know an older version of zsnes was adapted to use the "ESC" to exit the emulator, but I'd like to be able to use the most current version of zsnes, if possible.
Thanks in advance for any help.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
Okay. Like Organicjerk, I'm trying to use this on arcade cabinet with multiple arcade and console emulators, and need to keep the key mappings all the same. Currently the "ESC" key is how you exit the other emulators and get back to my frontend menu. I just thought if there was a way to program another key other than "ESC" to clear a key, I'd be able to sync zsnes up with my other emulators on my cabinet, and use the "ESC" key for exiting.
-
- ZSNES Developer
- Posts: 3904
- Joined: Tue Jul 27, 2004 10:54 pm
- Location: Solar powered park bench
- Contact:
Why not just load up ZSNES with -m?
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
_____________
Insane Coding
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
I don't see how they are related. You can configure the ESC to a key via the cfg file by setting the key you are looking for to 1. That is how you work around this limitation. I don't see an issue really.ratabase1 wrote:Okay. Like Organicjerk, I'm trying to use this on arcade cabinet with multiple arcade and console emulators, and need to keep the key mappings all the same. Currently the "ESC" key is how you exit the other emulators and get back to my frontend menu. I just thought if there was a way to program another key other than "ESC" to clear a key, I'd be able to sync zsnes up with my other emulators on my cabinet, and use the "ESC" key for exiting.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
Okay, I'm trying to understand which setting you are talking about. Are you talking about in the zsnesw.cfg? If so, which setting exactly, are you referring to? Thanks in advance for your help.Deathlike2 wrote:I don't see how they are related. You can configure the ESC to a key via the cfg file by setting the key you are looking for to 1. That is how you work around this limitation. I don't see an issue really.ratabase1 wrote:Okay. Like Organicjerk, I'm trying to use this on arcade cabinet with multiple arcade and console emulators, and need to keep the key mappings all the same. Currently the "ESC" key is how you exit the other emulators and get back to my frontend menu. I just thought if there was a way to program another key other than "ESC" to clear a key, I'd be able to sync zsnes up with my other emulators on my cabinet, and use the "ESC" key for exiting.
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
If you want to map a specific toggle to the ESC key, all you have to do is edit zsnesw.cfg, look for the appropriate toggle and change the value to 1.ratabase1 wrote:Okay, I'm trying to understand which setting you are talking about. Are you talking about in the zsnesw.cfg? If so, which setting exactly, are you referring to? Thanks in advance for your help.
For instance, let's just say you want to edit the quick key to exit immediately to use ESC.
In other words:
Code: Select all
KeyQuickExit=1
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
Okay. THanks. That works for me. I appreciate the quick response. I understand that the ESC key is 1. Are the numeric equivalents for the keyboard keys used in the cfg file ASCII codes? or is there a table or something that shows the numeric equivalent for all of the keys?Deathlike2 wrote:If you want to map a specific toggle to the ESC key, all you have to do is edit zsnesw.cfg, look for the appropriate toggle and change the value to 1.ratabase1 wrote:Okay, I'm trying to understand which setting you are talking about. Are you talking about in the zsnesw.cfg? If so, which setting exactly, are you referring to? Thanks in advance for your help.
For instance, let's just say you want to edit the quick key to exit immediately to use ESC.
In other words:So now, when you are running ZSNES while in game, hitting ESC quits ZSNES. You can do that for other keys as well.Code: Select all
KeyQuickExit=1
-
- ZSNES Developer
- Posts: 6747
- Joined: Tue Dec 28, 2004 6:47 am
They are scancodes. You can check the scancode used for each key on your keyboard by checking the value for each associated key entered. For example, look at my KeyQuickExit example. Change that key within the GUI, and the value in the cfg file will change accordingly. That's how you know the scancode for the key you just pressed.
Continuing [url=http://slickproductions.org/forum/index.php?board=13.0]FF4[/url] Research...
the escape key is used to much in the interface, it would be better to just turn on the "control interface with gamepad" feature. this way you could close zsnes with your gamepad, problem solved.
[quote="byuu"]Seriously, what kind of asshole makes an old-school 2D emulator that requires a Core 2 to get full speed? [i]>:([/i] [/quote]
-
- New Member
- Posts: 5
- Joined: Sat Sep 23, 2006 1:42 pm
Well for an arcade cabinet, you don't need/want to see the UI at all. In fact the experience should be so transparent that any visual existence of each emulator's UI destroys the seamless arcade experience.Panzer88 wrote:the escape key is used to much in the interface, it would be better to just turn on the "control interface with gamepad" feature. this way you could close zsnes with your gamepad, problem solved.
Thus, using Esc (or whatever single key) to exit the emulator altogether (and return to YOUR UI with roms listed) is crucial.
In addition, most people nowadays use some sort of keyboard interface/hack to wire all of the arcade buttons for computer input, so depending on an external gamepad (which not all people make their cabinets support) in this application for exiting each emulator is not practical at all.