PDA

View Full Version : Hyperspin Key Codes (settings config)



billpa
08-19-2008, 05:28 PM
I've seen a few threads recently asking about key codes for HS settings config file. HS uses Flash ActionScript Key Codes. Here is a table that helps out.

Click here for table. (http://people.uncw.edu/tompkinsj/112/FlashActionScript/keyCodes.htm)

Just locate the key you want to use in the middle (string) column and it's corresponding code in the right hand column (disregard left Ascii column). Go into settings config and change the code for whatever control you want to reassign.

For example:

HS, by default, uses the Enter key to launch emulators and games. If you open up settings config you will find it under

[Main Controls]
Start = 13

13 is the code for the Enter key. Let's say you want to change it to the more conventional 1 key (1P start in MAME). Just find the 1 key in the middle column of the table. As you can see, the code for the 1 key is 49. Go to settings config and make the following change

[Main Controls]
Start = 49

Now all start commands are mapped to the 1 key.

HTH,
billpa

Cakemeister
08-21-2008, 02:49 PM
This is helpful. Thanks given.

Vash
08-26-2008, 08:38 PM
I don't have any admin buttons on my control panel, so I've been using shift to take care of most of my utility functions (volume, enter, exit, etc.). However, with action script, the codes for a keycode with shift and without are identical. Is there any way to assign a key press to exit without forever banishing that button's use?

BadBoyBill
08-26-2008, 08:44 PM
You could do multiple keys if you want, up to 3 keys, comma delimated, like p1 start, p2start, and some other key all at the same time, like this

49,50,79

Vash
08-26-2008, 08:54 PM
You could do multiple keys if you want, up to 3 keys, comma delimated, like p1 start, p2start, and some other key all at the same time, like this

49,50,79

Excellent. Even better than just using shift. Thanks a ton.

Wob
08-26-2008, 09:08 PM
You could do multiple keys if you want, up to 3 keys, comma delimated, like p1 start, p2start, and some other key all at the same time, like this

49,50,79

Does this mean it will require all three keys pressed at once or does it mean any of the three keys will work?

Thanks,
Wob

beatfreakinbadger
09-07-2008, 11:28 AM
ta for that......... was just going to ask lol

Visitor Q
09-08-2008, 06:34 AM
What is the default for exiting a emulator and where is it located?

EVEGames
09-08-2008, 07:09 AM
I don't have any admin buttons on my control panel, so I've been using shift to take care of most of my utility functions (volume, enter, exit, etc.). However, with action script, the codes for a keycode with shift and without are identical. Is there any way to assign a key press to exit without forever banishing that button's use?

Vash,
Keep in mind, if you are using an IPac as your keyboard encoder, the "shift" button (probably Player 1 Start?) does not register a keypress until you either release the button (in which case it registers the number "1") or press a second button to register its shifted keycode. So you should not need to worry about it, just hit Player 1 Start and Player 2 Start (if you are using the default IPac key assignments) and you will send the keycode for "ESC". Set Hyperspin to exit with "ESC" and you should be fine. That multiple button jazz will just mess you up, especially if you are playing 2-player Street Fighter and using all the buttons on the control panel in a game.

If you are using a KeyWiz, I'm not sure if the above applies to the "Shazaam" function or whatever it's called.

-EVEGames

Visitor Q
09-08-2008, 07:18 AM
As some else stated, not everyone has admin buttons to assign an esc. keystroke.

urbecrisch
09-09-2008, 06:21 PM
HS Devs, is there any way to assign the Exit key to be held down for a number of seconds before it exits the game? I know a few other FE's do this and would be great for my CAB and anyone else who has a dedicated ESC button on their panel. Thanks.

billpa
09-13-2008, 05:25 PM
Dont think its possible currently but worth asking for in the HS Feature Requests forum if you really need it.

Banacek
09-18-2008, 04:27 PM
Quick question: will the normal # or /* */ work if we want to leave comments in the ini file?

glonq
12-11-2008, 09:27 PM
You could do multiple keys if you want, up to 3 keys, comma delimated, like p1 start, p2start, and some other key all at the same time, like this

49,50,79

For some reason, this doesn't work for me. Defining a single key works okay, but 2 or 3 doesn't.

BadBoyBill
12-12-2008, 08:36 AM
That would be ! @ K
49,50,79
Kinda weird combo of keys there

glonq
12-13-2008, 07:22 AM
That would be ! @ K
49,50,79
Kinda weird combo of keys there

Sorry for the confusion -- I'm not trying that exact combo. I'm trying *any* combo of three keys, and they're not working. I'm testing using ipac and using a real keyboard. Just to clear things up, does assigning multiple keys to a function means that you can press EITHER of those keys, or does it mean that you have to press ALL (simultaneously)? I'm assuming the former.

Another similar but probably unrelated issue is that I've recently noticed that if I launch mame from hyperspin (w/hyperlaunch), it won't recognize the Q key. Something is eating it before mame gets it. If I run mame but itself, Q works great.

Dazz
12-13-2008, 07:26 AM
For MAME there should be no reason to use HyperLaunch.

glonq
12-13-2008, 07:35 AM
For MAME there should be no reason to use HyperLaunch.
I'll nuke it, then. Is it the guy who's eating my Q's??? Is that configurable?

Thanks!

BadBoyBill
12-13-2008, 07:41 AM
By default in HyperLaunch Q & S are default to kill the script, it can be changed in the ahk file and recompiled to a new exe. Just edit it in wordpad or something, download autohotkey, install it, then right click the ahk file and click compile when your done making changes.

JeremyXgaming
01-06-2009, 11:27 AM
Sorry for the confusion -- I'm not trying that exact combo. I'm trying *any* combo of three keys, and they're not working. I'm testing using ipac and using a real keyboard. Just to clear things up, does assigning multiple keys to a function means that you can press EITHER of those keys, or does it mean that you have to press ALL (simultaneously)? I'm assuming the former.

I want to know the same thing, is the comma delimiter AND or OR?

Doesn't seem to do either for me, does not work.

kwyjibo40
12-15-2009, 08:10 PM
Sorry if this is a dumb question.....

How do I tell how my control panel is mapped? Is there a settings file somewhere that lists this? Say if I want to make the p1 button start a game, i would change my settings file to start a game with code 49. I guess I don't know my control panel equivalent to keyboard key "1". All my admin buttons work correctly when i'm in a game, but I edited those right in MAME by editing input general. When I edited it in MAME, it has the player one start button listed as Joy 1 Button 6.

Thanks in advance.

Umpa
03-03-2010, 05:47 AM
By default in HyperLaunch Q & S are default to kill the script, it can be changed in the ahk file and recompiled to a new exe. Just edit it in wordpad or something, download autohotkey, install it, then right click the ahk file and click compile when your done making changes.

I love using forum search! I was getting ready to post about an issue I was having when playing 2 player NFL Blitz in P64. Turns out 2nd player has 2 buttons mapped one as Q and one as S. So I will just change my config or change the ahk as you suggested. Thanks for this info. I have just about got everything working perfectly now on my cab. Thanks again!

NIVO
07-04-2010, 03:12 PM
hello fellas. A question here on mapping the "Alt" button. In particular the L. Alt button. Flash code list shows alt as 18. I have set that in the settings .ini to no avail. I simply cannot get it to function in the f.e. In mame it works just fine(its set as player 1 button 2; same as in the winipac config). So i am at a loss here and would like to know how to get this going. Thanks.

NIVO
07-06-2010, 07:31 PM
ok ill ask it another way. If i map another key other than alt, it will not interfere with mame once inside mame correct? In other words once inside mame i wont lose function of button 2, the change only occurs once the focus is on the f.e.?

BadBoyBill
07-06-2010, 09:02 PM
If you can set it in HyperHQ, then you should be able to use it in HS.

NIVO
07-07-2010, 12:09 PM
thanks bill. would you have an idea as to why "alt" wont map to genre(my button 2)? I see it was code 18. I use code 17 for favorites(my button 1). Could it be a bug of some sort? And the thing is you can't set it in hyperhq for some reason, you can press it all day trying to map it, and that column stays blank.

reko19
10-27-2010, 05:46 AM
was anybody able to assign multiple keys separated by a coma as was mentioned at the begin of the thread?

Dazz
10-27-2010, 06:44 AM
was anybody able to assign multiple keys separated by a coma as was mentioned at the begin of the thread?No, it is not possible.

reko19
10-27-2010, 07:13 AM
thanks, would be a good feature to have

looking at the flash key table, there is no lshift or rshift listed used for up / down, ini file shows Up= 150, down = 149 which I can't find in the flash key table. Is there RCTRL and LCTRL available?

TheBigBoss
01-31-2011, 06:21 AM
thanks, would be a good feature to have

looking at the flash key table, there is no lshift or rshift listed used for up / down, ini file shows Up= 150, down = 149 which I can't find in the flash key table. Is there RCTRL and LCTRL available?
This is my exact question and it went unanswered. No one knows? So then where did 150 and 149 come from if they're not on the chart?

BadBoyBill
01-31-2011, 08:40 AM
149 and 150 arent real codes, theye just made up to distinguish between left shift and right shift.

Bilbotorm
04-05-2011, 02:31 AM
Hi everyone,

I hope i am posting at the right place =) I would like to set some joypad combinaison in order to exit any emulator, like the ESC key.

I am using a X360 arcade stick; so ideally, an unusual combinaison like select+L1 would be enough to avoid any unexpected escape. Is it possible ? should i modify something on the AHK or the settings config is enough ?

Thanks for your advice.

MisterDaku
05-16-2011, 01:12 PM
Hi everyone,

I hope i am posting at the right place =) I would like to set some joypad combinaison in order to exit any emulator, like the ESC key.

I am using a X360 arcade stick; so ideally, an unusual combinaison like select+L1 would be enough to avoid any unexpected escape. Is it possible ? should i modify something on the AHK or the settings config is enough ?

Thanks for your advice.

This is a really good thought. I'd love to see it answered. I can easily see most of the buttons on my stick being used for something or other, depend on the game, and being able to, say, press the Start and Select buttons at the same time in order to exit a game would be really great.

Edit: Here's what I found on the mamedev site.

After hitting tab and going into the key configuration: To map so two keys have to be pressed at the same time, press both (or more) keys (or press them with a second of each other) after pressing enter.

That'll help with MAME, at least.

mjfisher
07-25-2011, 06:05 AM
149 and 150 arent real codes, theye just made up to distinguish between left shift and right shift.

Thanks for that info - is there a way to specify left and right ctrl though? I was hoping to use those for Skip Up, Skip Down...

justintime
10-09-2011, 07:36 PM
OK, so there is no way to enter a TAB key? I really needed this :(

ironface
02-25-2012, 11:11 AM
Just wanted to say thanks for this thread, its helped alot. :)