Difference between revisions of "Key codes"
(Created page with "List of key codes, generated from LWJGL's keyboard file. You can copy/paste this into a lua file. <syntaxhighlight lang="lua" line='line'> KEY_ESCAPE = 1 KEY_1...") |
(No difference)
|
Latest revision as of 01:46, 24 July 2019
List of key codes, generated from LWJGL's keyboard file. You can copy/paste this into a lua file.
1 KEY_ESCAPE = 1
2 KEY_1 = 2
3 KEY_2 = 3
4 KEY_3 = 4
5 KEY_4 = 5
6 KEY_5 = 6
7 KEY_6 = 7
8 KEY_7 = 8
9 KEY_8 = 9
10 KEY_9 = 10
11 KEY_0 = 11
12 KEY_MINUS = 12 -- - on main keyboard
13 KEY_EQUALS = 13
14 KEY_BACK = 14 -- backspace
15 KEY_TAB = 15
16 KEY_Q = 16
17 KEY_W = 17
18 KEY_E = 18
19 KEY_R = 19
20 KEY_T = 20
21 KEY_Y = 21
22 KEY_U = 22
23 KEY_I = 23
24 KEY_O = 24
25 KEY_P = 25
26 KEY_LBRACKET = 26
27 KEY_RBRACKET = 27
28 KEY_RETURN = 28 -- Enter on main keyboard
29 KEY_LCONTROL = 29
30 KEY_A = 30
31 KEY_S = 31
32 KEY_D = 32
33 KEY_F = 33
34 KEY_G = 34
35 KEY_H = 35
36 KEY_J = 36
37 KEY_K = 37
38 KEY_L = 38
39 KEY_SEMICOLON = 39
40 KEY_APOSTROPHE = 40
41 KEY_GRAVE = 41 -- accent grave
42 KEY_LSHIFT = 42
43 KEY_BACKSLASH = 43
44 KEY_Z = 44
45 KEY_X = 45
46 KEY_C = 46
47 KEY_V = 47
48 KEY_B = 48
49 KEY_N = 49
50 KEY_M = 50
51 KEY_COMMA = 51
52 KEY_PERIOD = 52 -- . on main keyboard
53 KEY_SLASH = 53 -- / on main keyboard
54 KEY_RSHIFT = 54
55 KEY_MULTIPLY = 55 -- * on numeric keypad
56 KEY_LMENU = 56 -- left Alt
57 KEY_SPACE = 57
58 KEY_CAPITAL = 58
59 KEY_F1 = 59
60 KEY_F2 = 60
61 KEY_F3 = 61
62 KEY_F4 = 62
63 KEY_F5 = 63
64 KEY_F6 = 64
65 KEY_F7 = 65
66 KEY_F8 = 66
67 KEY_F9 = 67
68 KEY_F10 = 68
69 KEY_NUMLOCK = 69
70 KEY_SCROLL = 70 -- Scroll Lock
71 KEY_NUMPAD7 = 71
72 KEY_NUMPAD8 = 72
73 KEY_NUMPAD9 = 73
74 KEY_SUBTRACT = 74 -- - on numeric keypad
75 KEY_NUMPAD4 = 75
76 KEY_NUMPAD5 = 76
77 KEY_NUMPAD6 = 77
78 KEY_ADD = 78 -- + on numeric keypad
79 KEY_NUMPAD1 = 79
80 KEY_NUMPAD2 = 80
81 KEY_NUMPAD3 = 81
82 KEY_NUMPAD0 = 82
83 KEY_DECIMAL = 83 -- . on numeric keypad
84 KEY_F11 = 87
85 KEY_F12 = 88
86 KEY_F13 = 100 -- (NEC PC98)
87 KEY_F14 = 101 -- (NEC PC98)
88 KEY_F15 = 102 -- (NEC PC98)
89 KEY_F16 = 103 -- Extended Function keys - (Mac)
90 KEY_F17 = 104
91 KEY_F18 = 105
92 KEY_KANA = 112 -- (Japanese keyboard)
93 KEY_F19 = 113 -- Extended Function keys - (Mac)
94 KEY_CONVERT = 121 -- (Japanese keyboard)
95 KEY_NOCONVERT = 123 -- (Japanese keyboard)
96 KEY_YEN = 125 -- (Japanese keyboard)
97 KEY_NUMPADEQUALS = 141 -- = on numeric keypad (NEC PC98)
98 KEY_CIRCUMFLEX = 144 -- (Japanese keyboard)
99 KEY_AT = 145 -- (NEC PC98)
100 KEY_COLON = 146 -- (NEC PC98)
101 KEY_UNDERLINE = 147 -- (NEC PC98)
102 KEY_KANJI = 148 -- (Japanese keyboard)
103 KEY_STOP = 149 -- (NEC PC98)
104 KEY_AX = 150 -- (Japan AX)
105 KEY_UNLABELED = 151 -- (J3100)
106 KEY_NUMPADENTER = 156 -- Enter on numeric keypad
107 KEY_RCONTROL = 157
108 KEY_SECTION = 167 -- Section symbol (Mac)
109 KEY_NUMPADCOMMA = 179 -- , on numeric keypad (NEC PC98)
110 KEY_DIVIDE = 181 -- / on numeric keypad
111 KEY_SYSRQ = 183
112 KEY_RMENU = 184 -- right Alt
113 KEY_FUNCTION = 196 -- Function (Mac)
114 KEY_PAUSE = 197 -- Pause
115 KEY_HOME = 199 -- Home on arrow keypad
116 KEY_UP = 200 -- UpArrow on arrow keypad
117 KEY_PRIOR = 201 -- PgUp on arrow keypad
118 KEY_LEFT = 203 -- LeftArrow on arrow keypad
119 KEY_RIGHT = 205 -- RightArrow on arrow keypad
120 KEY_END = 207 -- End on arrow keypad
121 KEY_DOWN = 208 -- DownArrow on arrow keypad
122 KEY_NEXT = 209 -- PgDn on arrow keypad
123 KEY_INSERT = 210 -- Insert on arrow keypad
124 KEY_DELETE = 211 -- Delete on arrow keypad
125 KEY_CLEAR = 218 -- Clear key (Mac)
126 KEY_LMETA = 219 -- Left Windows/Option key
127 KEY_RMETA = 220 -- Right Windows/Option key
128 KEY_APPS = 221 -- AppMenu key
129 KEY_POWER = 222
130 KEY_SLEEP = 223