Special key names

From SRB2 Wiki
Jump to: navigation, search

A list of special key name strings used by the console commands bind, setcontrol, and setcontrol2. These are generally reserved for keys that do not correspond to any printable character (letters, numbers, punctuation), with exception to the backquote/tilde key (which has its own special key name).

Miscellaneous

Key name(s) Description
KEY0 No key set – this appears as "--" in the Control Configuration menus

Keyboard

Key name(s) Description
Main
SPACE Space bar
CAPS LOCK Caps Lock
ENTER Enter
TAB Tab
ESCAPE Escape (Esc)
BACKSPACE Backspace
NUMLOCK Num Lock
SCROLLLOCK Scroll Lock
LEFTWIN Left Windows key
RIGHTWIN Right Windows key
MENU Menu key
LSHIFT
SHIFT
Left Shift
RSHIFT Right Shift
LCTRL
CTRL
Left Ctrl
RCTRL Right Ctrl
LALT
ALT
Left Alt
RALT Right Alt
Numpad keys
KEYPAD / Numpad backslash key
KEYPAD 0KEYPAD 9 Numpad digits 0–9
KEYPAD + Numpad plus key
KEYPAD - Numpad minus key
KEYPAD . Numpad decimal point key
Extended keys
UP ARROW Up Arrow
LEFT ARROW Left Arrow
RIGHT ARROW Right Arrow
DOWN ARROW Down Arrow
PGUP Page Up
PGDOWN Page Down
HOME Home
END End
INS Insert
DEL Delete
Other
F1F12 F1–F12 keys
TILDE Backquote (`) / Tilde (~) key
PAUSE/BREAK Pause/Break

Mouse

Key name(s) Description
Mouse 1
MOUSE1 Left Mouse button
MOUSE2 Right Mouse button
MOUSE3 Middle Mouse button
Wheel 1 UP Mouse Wheel up
Wheel 1 Down Mouse Wheel down
DBLMOUSE1 Left Mouse button (double click)
DBLMOUSE2 Right Mouse button (double click)
DBLMOUSE3 Middle Mouse button (double click)
Mouse 2
SEC_MOUSE1 Left Mouse button
SEC_MOUSE2 Right Mouse button
SEC_MOUSE3 Middle Mouse button
Wheel 2 UP Mouse Wheel up
Wheel 2 Down Mouse Wheel down
DBLSEC_MOUSE1 Left Mouse button (double click)
DBLSEC_MOUSE2 Right Mouse button (double click)
DBLSEC_MOUSE3 Middle Mouse button (double click)

Joystick

Key name(s) Description
Joystick 1
JOY1JOY32 Joystick buttons #1–#32
HATUP Hat 1 Up
HATDOWN Hat 1 Down
HATLEFT Hat 1 Left
HATRIGHT Hat 1 Right
HATUP2 Hat 2 Up
HATDOWN2 Hat 2 Down
HATLEFT2 Hat 2 Left
HATRIGHT2 Hat 2 Right
HATUP3 Hat 3 Up
HATDOWN3 Hat 3 Down
HATLEFT3 Hat 3 Left
HATRIGHT3 Hat 3 Right
HATUP4 Hat 4 Up
HATDOWN4 Hat 4 Down
HATLEFT4 Hat 4 Left
HATRIGHT4 Hat 4 Right
DBLJOY1DBLJOY32 Joystick buttons #1–#32 (double click)
DBLHATUP Hat 1 Up (double click)
DBLHATDOWN Hat 1 Down (double click)
DBLHATLEFT Hat 1 Left (double click)
DBLHATRIGHT Hat 1 Right (double click)
DBLHATUP2 Hat 2 Up (double click)
DBLHATDOWN2 Hat 2 Down (double click)
DBLHATLEFT2 Hat 2 Left (double click)
DBLHATRIGHT2 Hat 2 Right (double click)
DBLHATUP3 Hat 3 Up (double click)
DBLHATDOWN3 Hat 3 Down (double click)
DBLHATLEFT3 Hat 3 Left (double click)
DBLHATRIGHT3 Hat 3 Right (double click)
DBLHATUP4 Hat 4 Up (double click)
DBLHATDOWN4 Hat 4 Down (double click)
DBLHATLEFT4 Hat 4 Left (double click)
DBLHATRIGHT4 Hat 4 Right (double click)
Joystick 2
SEC_JOY1SEC_JOY32 Joystick buttons #1–#32
SEC_HATUP Hat 1 Up
SEC_HATDOWN Hat 1 Down
SEC_HATLEFT Hat 1 Left
SEC_HATRIGHT Hat 1 Right
SEC_HATUP2 Hat 2 Up
SEC_HATDOWN2 Hat 2 Down
SEC_HATLEFT2 Hat 2 Left
SEC_HATRIGHT2 Hat 2 Right
SEC_HATUP3 Hat 3 Up
SEC_HATDOWN3 Hat 3 Down
SEC_HATLEFT3 Hat 3 Left
SEC_HATRIGHT3 Hat 3 Right
SEC_HATUP4 Hat 4 Up
SEC_HATDOWN4 Hat 4 Down
SEC_HATLEFT4 Hat 4 Left
SEC_HATRIGHT4 Hat 4 Right
DBLSEC_JOY1DBLSEC_JOY32 Joystick buttons #1–#32 (double click)
DBLSEC_HATUP Hat 1 Up (double click)
DBLSEC_HATDOWN Hat 1 Down (double click)
DBLSEC_HATLEFT Hat 1 Left (double click)
DBLSEC_HATRIGHT Hat 1 Right (double click)
DBLSEC_HATUP2 Hat 2 Up (double click)
DBLSEC_HATDOWN2 Hat 2 Down (double click)
DBLSEC_HATLEFT2 Hat 2 Left (double click)
DBLSEC_HATRIGHT2 Hat 2 Right (double click)
DBLSEC_HATUP3 Hat 3 Up (double click)
DBLSEC_HATDOWN3 Hat 3 Down (double click)
DBLSEC_HATLEFT3 Hat 3 Left (double click)
DBLSEC_HATRIGHT3 Hat 3 Right (double click)
DBLSEC_HATUP4 Hat 4 Up (double click)
DBLSEC_HATDOWN4 Hat 4 Down (double click)
DBLSEC_HATLEFT4 Hat 4 Left (double click)
DBLSEC_HATRIGHT4 Hat 4 Right (double click)

See also