Fixed some little errors with the drawing functions.
[luagame.git] / base / key_syms.lua
blob7c6a0b6b980211e56d2b37f90bff8be2778a76e5
1 --the SDL Key syms
2 --exact same ones used by SDL
3 --except number keys have an underscore before them
5 Keys = {}
7 Keys.UNKNOWN = 0
8 Keys.FIRST = 0
9 Keys.BACKSPACE = 8
10 Keys.TAB = 9
11 Keys.CLEAR = 12
12 Keys.RETURN = 13
13 Keys.PAUSE = 19
14 Keys.ESCAPE = 27
15 Keys.SPACE = 32
16 Keys.EXCLAIM = 33
17 Keys.QUOTEDBL = 34
18 Keys.HASH = 35
19 Keys.DOLLAR = 36
20 Keys.AMPERSAND = 38
21 Keys.QUOTE = 39
22 Keys.LEFTPAREN = 40
23 Keys.RIGHTPAREN = 41
24 Keys.ASTERISK = 42
25 Keys.PLUS = 43
26 Keys.COMMA = 44
27 Keys.MINUS = 45
28 Keys.PERIOD = 46
29 Keys.SLASH = 47
30 Keys._0 = 48
31 Keys._1 = 49
32 Keys._2 = 50
33 Keys._3 = 51
34 Keys._4 = 52
35 Keys._5 = 53
36 Keys._6 = 54
37 Keys._7 = 55
38 Keys._8 = 56
39 Keys._9 = 57
40 Keys.COLON = 58
41 Keys.SEMICOLON = 59
42 Keys.LESS = 60
43 Keys.EQUALS = 61
44 Keys.GREATER = 62
45 Keys.QUESTION = 63
46 Keys.AT = 64
48 --/* Skip uppercase letters */
50 Keys.LEFTBRACKET= 91
51 Keys.BACKSLASH = 92
52 Keys.RIGHTBRACKET= 93
53 Keys.CARET = 94
54 Keys.UNDERSCORE = 95
55 Keys.BACKQUOTE = 96
56 Keys.a = 97
57 Keys.b = 98
58 Keys.c = 99
59 Keys.d = 100
60 Keys.e = 101
61 Keys.f = 102
62 Keys.g = 103
63 Keys.h = 104
64 Keys.i = 105
65 Keys.j = 106
66 Keys.k = 107
67 Keys.l = 108
68 Keys.m = 109
69 Keys.n = 110
70 Keys.o = 111
71 Keys.p = 112
72 Keys.q = 113
73 Keys.r = 114
74 Keys.s = 115
75 Keys.t = 116
76 Keys.u = 117
77 Keys.v = 118
78 Keys.w = 119
79 Keys.x = 120
80 Keys.y = 121
81 Keys.z = 122
82 Keys.DELETE = 127
83 --/* End of ASCII mapped keysyms */
85 --/* International keyboard syms */
86 Keys.WORLD_0 = 160 --/* 0xA0 */
87 Keys.WORLD_1 = 161
88 Keys.WORLD_2 = 162
89 Keys.WORLD_3 = 163
90 Keys.WORLD_4 = 164
91 Keys.WORLD_5 = 165
92 Keys.WORLD_6 = 166
93 Keys.WORLD_7 = 167
94 Keys.WORLD_8 = 168
95 Keys.WORLD_9 = 169
96 Keys.WORLD_10 = 170
97 Keys.WORLD_11 = 171
98 Keys.WORLD_12 = 172
99 Keys.WORLD_13 = 173
100 Keys.WORLD_14 = 174
101 Keys.WORLD_15 = 175
102 Keys.WORLD_16 = 176
103 Keys.WORLD_17 = 177
104 Keys.WORLD_18 = 178
105 Keys.WORLD_19 = 179
106 Keys.WORLD_20 = 180
107 Keys.WORLD_21 = 181
108 Keys.WORLD_22 = 182
109 Keys.WORLD_23 = 183
110 Keys.WORLD_24 = 184
111 Keys.WORLD_25 = 185
112 Keys.WORLD_26 = 186
113 Keys.WORLD_27 = 187
114 Keys.WORLD_28 = 188
115 Keys.WORLD_29 = 189
116 Keys.WORLD_30 = 190
117 Keys.WORLD_31 = 191
118 Keys.WORLD_32 = 192
119 Keys.WORLD_33 = 193
120 Keys.WORLD_34 = 194
121 Keys.WORLD_35 = 195
122 Keys.WORLD_36 = 196
123 Keys.WORLD_37 = 197
124 Keys.WORLD_38 = 198
125 Keys.WORLD_39 = 199
126 Keys.WORLD_40 = 200
127 Keys.WORLD_41 = 201
128 Keys.WORLD_42 = 202
129 Keys.WORLD_43 = 203
130 Keys.WORLD_44 = 204
131 Keys.WORLD_45 = 205
132 Keys.WORLD_46 = 206
133 Keys.WORLD_47 = 207
134 Keys.WORLD_48 = 208
135 Keys.WORLD_49 = 209
136 Keys.WORLD_50 = 210
137 Keys.WORLD_51 = 211
138 Keys.WORLD_52 = 212
139 Keys.WORLD_53 = 213
140 Keys.WORLD_54 = 214
141 Keys.WORLD_55 = 215
142 Keys.WORLD_56 = 216
143 Keys.WORLD_57 = 217
144 Keys.WORLD_58 = 218
145 Keys.WORLD_59 = 219
146 Keys.WORLD_60 = 220
147 Keys.WORLD_61 = 221
148 Keys.WORLD_62 = 222
149 Keys.WORLD_63 = 223
150 Keys.WORLD_64 = 224
151 Keys.WORLD_65 = 225
152 Keys.WORLD_66 = 226
153 Keys.WORLD_67 = 227
154 Keys.WORLD_68 = 228
155 Keys.WORLD_69 = 229
156 Keys.WORLD_70 = 230
157 Keys.WORLD_71 = 231
158 Keys.WORLD_72 = 232
159 Keys.WORLD_73 = 233
160 Keys.WORLD_74 = 234
161 Keys.WORLD_75 = 235
162 Keys.WORLD_76 = 236
163 Keys.WORLD_77 = 237
164 Keys.WORLD_78 = 238
165 Keys.WORLD_79 = 239
166 Keys.WORLD_80 = 240
167 Keys.WORLD_81 = 241
168 Keys.WORLD_82 = 242
169 Keys.WORLD_83 = 243
170 Keys.WORLD_84 = 244
171 Keys.WORLD_85 = 245
172 Keys.WORLD_86 = 246
173 Keys.WORLD_87 = 247
174 Keys.WORLD_88 = 248
175 Keys.WORLD_89 = 249
176 Keys.WORLD_90 = 250
177 Keys.WORLD_91 = 251
178 Keys.WORLD_92 = 252
179 Keys.WORLD_93 = 253
180 Keys.WORLD_94 = 254
181 Keys.WORLD_95 = 255 --/* 0xFF */
183 --/* Numeric keypad */
184 Keys.KP0 = 256
185 Keys.KP1 = 257
186 Keys.KP2 = 258
187 Keys.KP3 = 259
188 Keys.KP4 = 260
189 Keys.KP5 = 261
190 Keys.KP6 = 262
191 Keys.KP7 = 263
192 Keys.KP8 = 264
193 Keys.KP9 = 265
194 Keys.KP_PERIOD = 266
195 Keys.KP_DIVIDE = 267
196 Keys.KP_MULTIPLY= 268
197 Keys.KP_MINUS = 269
198 Keys.KP_PLUS = 270
199 Keys.KP_ENTER = 271
200 Keys.KP_EQUALS = 272
202 --/* Arrows + Home/End pad */
203 Keys.UP = 273
204 Keys.DOWN = 274
205 Keys.RIGHT = 275
206 Keys.LEFT = 276
207 Keys.INSERT = 277
208 Keys.HOME = 278
209 Keys.END = 279
210 Keys.PAGEUP = 280
211 Keys.PAGEDOWN = 281
213 --/* Function keys */
214 Keys.F1 = 282
215 Keys.F2 = 283
216 Keys.F3 = 284
217 Keys.F4 = 285
218 Keys.F5 = 286
219 Keys.F6 = 287
220 Keys.F7 = 288
221 Keys.F8 = 289
222 Keys.F9 = 290
223 Keys.F10 = 291
224 Keys.F11 = 292
225 Keys.F12 = 293
226 Keys.F13 = 294
227 Keys.F14 = 295
228 Keys.F15 = 296
230 --/* Key state modifier keys */
231 Keys.NUMLOCK = 300
232 Keys.CAPSLOCK = 301
233 Keys.SCROLLOCK = 302
234 Keys.RSHIFT = 303
235 Keys.LSHIFT = 304
236 Keys.RCTRL = 305
237 Keys.LCTRL = 306
238 Keys.RALT = 307
239 Keys.LALT = 308
240 Keys.RMETA = 309
241 Keys.LMETA = 310
242 Keys.LSUPER = 311 --/* Left "Windows" key */
243 Keys.RSUPER = 312 --/* Right "Windows" key */
244 Keys.MODE = 313 --/* "Alt Gr" key */
245 Keys.COMPOSE = 314 --/* Multi-key compose key */
247 --/* Miscellaneous function keys */
248 Keys.HELP = 315
249 Keys.PRINT = 316
250 Keys.SYSREQ = 317
251 Keys.BREAK = 318
252 Keys.MENU = 319
253 Keys.POWER = 320 --/* Power Macintosh power key */
254 Keys.EURO = 321 --/* Some european keyboards */
255 Keys.UNDO = 322 --/* Atari keyboard has Undo */