KEY Enumerations

From Garry's Mod
Jump to: navigation, search

Enumerations used by:

It's also part of the BUTTON_CODE_ Enums.

Warning! Decimal values are for reference only! The actual value may be different between two Garry's Mod versions.
Name Decimal Description
KEY_FIRST 0
KEY_NONE 0
KEY_0 1 Normal number 0 key
KEY_1 2 Normal number 1 key
KEY_2 3 Normal number 2 key
KEY_3 4 Normal number 3 key
KEY_4 5 Normal number 4 key
KEY_5 6 Normal number 5 key
KEY_6 7 Normal number 6 key
KEY_7 8 Normal number 7 key
KEY_8 9 Normal number 8 key
KEY_9 10 Normal number 9 key
KEY_A 11
KEY_B 12
KEY_C 13
KEY_D 14
KEY_E 15
KEY_F 16
KEY_G 17
KEY_H 18
KEY_I 19
KEY_J 20
KEY_K 21
KEY_L 22
KEY_M 23
KEY_N 24
KEY_O 25
KEY_P 26
KEY_Q 27
KEY_R 28
KEY_S 29
KEY_T 30
KEY_U 31
KEY_V 32
KEY_W 33
KEY_X 34
KEY_Y 35
KEY_Z 36
KEY_PAD_0 37 Keypad number 0 key
KEY_PAD_1 38 Keypad number 1 key
KEY_PAD_2 39 Keypad number 2 key
KEY_PAD_3 40 Keypad number 3 key
KEY_PAD_4 41 Keypad number 4 key
KEY_PAD_5 42 Keypad number 5 key
KEY_PAD_6 43 Keypad number 6 key
KEY_PAD_7 44 Keypad number 7 key
KEY_PAD_8 45 Keypad number 8 key
KEY_PAD_9 46 Keypad number 9 key
KEY_PAD_DIVIDE 47 Keypad division/slash key (/)
KEY_PAD_MULTIPLY 48 Keypad asterisk key (*)
KEY_PAD_MINUS 49 Keypad minus key
KEY_PAD_PLUS 50 Keypad plus key
KEY_PAD_ENTER 51 Keypad enter key
KEY_PAD_DECIMAL 52 Keypad dot key (.)
KEY_LBRACKET 53
KEY_RBRACKET 54
KEY_SEMICOLON 55
KEY_APOSTROPHE 56
KEY_BACKQUOTE 57
KEY_COMMA 58
KEY_PERIOD 59
KEY_SLASH 60
KEY_BACKSLASH 61
KEY_MINUS 62
KEY_EQUAL 63
KEY_ENTER 64
KEY_SPACE 65
KEY_BACKSPACE 66
KEY_TAB 67
KEY_CAPSLOCK 68
KEY_NUMLOCK 69
KEY_ESCAPE 70
KEY_SCROLLLOCK 71
KEY_INSERT 72
KEY_DELETE 73
KEY_HOME 74
KEY_END 75
KEY_PAGEUP 76
KEY_PAGEDOWN 77
KEY_BREAK 78
KEY_LSHIFT 79 The left Shift key, has been seen to be triggered by Right Shift in PANEL:OnKeyCodePressed
KEY_RSHIFT 80
KEY_LALT 81
KEY_RALT 82
KEY_LCONTROL 83
KEY_RCONTROL 84
KEY_LWIN 85 The left Windows key or the Command key on Mac OSX
KEY_RWIN 86 The right Windows key or the Command key on Mac OSX
KEY_APP 87
KEY_UP 88
KEY_LEFT 89
KEY_DOWN 90
KEY_RIGHT 91
KEY_F1 92
KEY_F2 93
KEY_F3 94
KEY_F4 95
KEY_F5 96
KEY_F6 97
KEY_F7 98
KEY_F8 99
KEY_F9 100
KEY_F10 101
KEY_F11 102
KEY_F12 103
KEY_CAPSLOCKTOGGLE 104
KEY_NUMLOCKTOGGLE 105
KEY_LAST 106
KEY_SCROLLLOCKTOGGLE 106
KEY_COUNT 107
KEY_XBUTTON_A 114
KEY_XBUTTON_B 115
KEY_XBUTTON_X 116
KEY_XBUTTON_Y 117
KEY_XBUTTON_LEFT_SHOULDER 118
KEY_XBUTTON_RIGHT_SHOULDER 119
KEY_XBUTTON_BACK 120
KEY_XBUTTON_START 121
KEY_XBUTTON_STICK1 122
KEY_XBUTTON_STICK2 123
KEY_XBUTTON_UP 146
KEY_XBUTTON_RIGHT 147
KEY_XBUTTON_DOWN 148
KEY_XBUTTON_LEFT 149
KEY_XSTICK1_RIGHT 150
KEY_XSTICK1_LEFT 151
KEY_XSTICK1_DOWN 152
KEY_XSTICK1_UP 153
KEY_XBUTTON_LTRIGGER 154
KEY_XBUTTON_RTRIGGER 155
KEY_XSTICK2_RIGHT 156
KEY_XSTICK2_LEFT 157
KEY_XSTICK2_DOWN 158
KEY_XSTICK2_UP 159
Personal tools
Navigation