The NEW Build Your Own Arcade Controls
Main => Software Forum => Topic started by: Trebeck on November 24, 2010, 04:58:19 pm
-
Hey all,
I finally got Makaron working on my machine after pulling my hair out but I have 1 last problem. I want to map my controls to a more MAME setup. I've noticed that you need to list the number of each key for example, the INSERT key is #145. Or something like this.
Can anyone steer me to a keyboard map or at least share your .ini?
Thanks!
Beck
???
-
bah, can't find a chart. I knew it took me forever to find the right one, so I had one printed out....now I can't find that one :banghead:
(ignore the fact that the keys are capitalized in the notes on my ini file)
[Keyboard]
# F1
KEY_0x70 = FB_TEST
# F2
KEY_0x71 = FB_SERVICE
# 1
KEY_0x31 = P1_START
# 3
KEY_0x33 = COIN1
# 8
KEY_0x26 = P1_UP
# 2
KEY_0x28 = P1_DOWN
# 4
KEY_0x25 = P1_LEFT
# 6
KEY_0x27 = P1_RIGHT
# V
KEY_0x56 = P1_BUTTON1
# B
KEY_0x42 = P1_BUTTON2
# N
KEY_0x4E = P1_BUTTON3
# M
KEY_0x4D = P1_BUTTON4
# z
KEY_0x5A = P1_BUTTON5
# x
KEY_0x58 = P1_BUTTON6
# 2
KEY_0x32 = P2_START
# 4
KEY_0x34 = COIN2
# R
KEY_0x52 = P2_UP
# F
KEY_0x46 = P2_DOWN
# D
KEY_0x44 = P2_LEFT
# G
KEY_0x47 = P2_RIGHT
# A
KEY_0x41 = P2_BUTTON1
# S
KEY_0x53 = P2_BUTTON2
# Q
KEY_0x51 = P2_BUTTON3
# W
KEY_0x57 = P2_BUTTON4
# E
KEY_0x45 = P2_BUTTON5
# [
KEY_0x5B = P2_BUTTON6
EDIT: OK, I think this one is right, but I have the P1 directions labeled wrong in my ini file. The numbers correspond to the arrow keys, not the keypad numbers.
You are using the Hex codes.
http://www.indigorose.com/webhelp/vp20/Program_Reference/Misc/Virtual_Key_Codes.htm (http://www.indigorose.com/webhelp/vp20/Program_Reference/Misc/Virtual_Key_Codes.htm)
-
Might as well cut out the middle man in case the link dies:
0x8 Backspace
0x9 Tab
0xD Enter
0x10 Shift (both)
0x11 Ctrl (both)
0x13 Pause
0x14 Caps Lock
0x1B Esc
0x20 Spacebar
0x21 Page Up
0x22 Page Down
0x23 End
0x24 Home
0x25 (left arrow)
0x26 (up arrow)
0x27 (right arrow)
0x28 (down arrow)
0x2D Insert
0x2E Delete
0x30 0
0x31 1
0x32 2
0x33 3
0x34 4
0x35 5
0x36 6
0x37 7
0x38 8
0x39 9
0x41 A or a
0x42 B or b
0x43 C or c
0x44 D or d
0x45 E or e
0x46 F or f
0x47 G or g
0x48 H or h
0x49 I or i
0x4A J or j
0x4B K or k
0x4C L or l
0x4D M or m
0x4E N or n
0x4F O or o
0x50 P or p
0x51 Q or q
0x52 R or r
0x53 S or s
0x54 T or t
0x55 U or u
0x56 V or v
0x57 W or w
0x58 X or x
0x59 Y or y
0x5A Z or z
0x5B (left Windows key)
0x5C (right Windows key)
0x5D(application key - located between the right Windows and Ctrl keys on most keyboards)
0x60 0 (numpad with Num Lock on)
0x61 1 (numpad with Num Lock on)
0x62 2 (numpad with Num Lock on)
0x63 3 (numpad with Num Lock on)
0x64 4 (numpad with Num Lock on)
0x65 5 (numpad with Num Lock on)
0x66 6 (numpad with Num Lock on)
0x67 7 (numpad with Num Lock on)
0x68 8 (numpad with Num Lock on)
0x69 9 (numpad with Num Lock on)
0x6A * (numpad)
0x6B + (numpad)
0x6D - (numpad)
0x6E . (numpad)
0x6F / (numpad)
0x70 F1
0x71 F2
0x72 F3
0x73 F4
0x74 F5
0x75 F6
0x76 F7
0x77 F8
0x78 F9
0x7A F11
0x7B F12
0x90 Num Lock
0x91 Scroll Lock
0xBA ;
0xBB =
0xBC ,
0xBD -
0xBE .
0xBF /
0xC0 `
0xDB [
0xDC \
0xDD ]
0xDE '
Oh, and please correct the spelling of Makaron in the subject line in case someone searches for this information. :)
-
Hey Badmouth, you are in fact the man.
Thanks a bunch!