Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / commodities / parse.h
blob32468d14e40e9425431e3ba3401c8ff7cadb3260
1 #ifndef COMMODITIES_PARSE_H
2 #define COMMODITIES_PARSE_H
4 /*
5 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
6 $Id$
8 Desc:
9 Lang: English
12 /****************************************************************************/
14 typedef struct paType
16 STRPTR name;
17 UWORD value;
18 } pix_S;
21 pix_S pix_Class[]=
23 {"DISKINSERTED",
24 IECLASS_DISKINSERTED},
26 {"DISKREMOVED",
27 IECLASS_DISKREMOVED},
29 {"EVENT",
30 IECLASS_EVENT},
32 {"NEWPREFS",
33 IECLASS_NEWPREFS},
35 {"POINTERPOS",
36 IECLASS_POINTERPOS},
38 {"RAWKEY",
39 IECLASS_RAWKEY},
41 {"RAWMOUSE",
42 IECLASS_RAWMOUSE},
44 {"TIMER",
45 IECLASS_TIMER},
47 {NULL,
51 pix_S pix_IEvent[]=
53 {"CAPSLOCK",
54 IEQUALIFIER_CAPSLOCK},
56 {"CAPS_LOCK",
57 IEQUALIFIER_CAPSLOCK},
59 {"CONTROL",
60 IEQUALIFIER_CONTROL},
62 {"CTRL",
63 IEQUALIFIER_CONTROL},
65 {"LALT",
66 IEQUALIFIER_LALT},
68 {"LAMIGA",
69 IEQUALIFIER_LCOMMAND},
71 {"LBUTTON",
72 IEQUALIFIER_LEFTBUTTON},
74 {"LCOMMAND",
75 IEQUALIFIER_LCOMMAND},
77 {"LEFTBUTTON",
78 IEQUALIFIER_LEFTBUTTON},
80 {"LEFT_ALT",
81 IEQUALIFIER_LALT},
83 {"LEFT_AMIGA",
84 IEQUALIFIER_LCOMMAND},
86 {"LEFT_BUTTON",
87 IEQUALIFIER_LEFTBUTTON},
89 {"LEFT_COMMAND",
90 IEQUALIFIER_LCOMMAND},
92 {"LEFT_SHIFT",
93 IEQUALIFIER_LSHIFT},
95 {"LSHIFT",
96 IEQUALIFIER_LSHIFT},
98 {"MBUTTON",
99 IEQUALIFIER_MIDBUTTON},
101 {"MIDBUTTON",
102 IEQUALIFIER_MIDBUTTON},
104 {"MIDDLEBUTTON",
105 IEQUALIFIER_MIDBUTTON},
107 {"MIDDLE_BUTTON",
108 IEQUALIFIER_MIDBUTTON},
110 {"NUMERICPAD",
111 IEQUALIFIER_NUMERICPAD},
113 {"NUMERIC_PAD",
114 IEQUALIFIER_NUMERICPAD},
116 {"NUMPAD",
117 IEQUALIFIER_NUMERICPAD},
119 {"NUM_PAD",
120 IEQUALIFIER_NUMERICPAD},
122 {"RALT",
123 IEQUALIFIER_RALT},
125 {"RAMIGA",
126 IEQUALIFIER_RCOMMAND},
128 {"RBUTTON",
129 IEQUALIFIER_RBUTTON},
131 {"RCOMMAND",
132 IEQUALIFIER_RCOMMAND},
134 {"RELATIVEMOUSE",
135 IEQUALIFIER_RELATIVEMOUSE},
137 {"REPEAT",
138 IEQUALIFIER_REPEAT},
140 {"RIGHTBUTTON",
141 IEQUALIFIER_RBUTTON},
143 {"RIGHT_ALT",
144 IEQUALIFIER_RALT},
146 {"RIGHT_AMIGA",
147 IEQUALIFIER_RCOMMAND},
149 {"RIGHT_BUTTON",
150 IEQUALIFIER_RBUTTON},
152 {"RIGHT_COMMAND",
153 IEQUALIFIER_RCOMMAND},
155 {"RIGHT_SHIFT",
156 IEQUALIFIER_RSHIFT},
158 {"RSHIFT",
159 IEQUALIFIER_RSHIFT},
161 {NULL,
165 pix_S pix_Synonyms[]=
167 {"ALT",
168 IXSYM_ALT},
170 {"CAPS",
171 IXSYM_CAPS},
173 {"SHIFT",
174 IXSYM_SHIFT},
176 {NULL,
180 pix_S pix_Upstroke[]=
182 {"UPSTROKE",
183 0x1},
185 {NULL,
190 pix_S pix_Highmap[]=
192 {"BACKSPACE",
193 0x41},
195 {"BREAK",
196 0x6e},
198 {"COMMA",
199 0x38},
201 {"CURSOR_DOWN",
202 0x4d},
204 {"CURSOR_LEFT",
205 0x4f},
207 {"CURSOR_RIGHT",
208 0x4e},
210 {"CURSOR_UP",
211 0x4c},
213 {"DEL",
214 0x46},
216 {"DELETE",
217 0x46},
219 {"DOWN",
220 0x4d},
222 {"END",
223 0x71},
225 {"ENTER",
226 0x43},
228 {"ESC",
229 0x45},
231 {"ESCAPE",
232 0x45},
234 /* The keys F10 to F12 must appear before F1 to F9
235 in this table or the parsing will fail */
236 {"F10",
237 0x59},
239 {"F11",
240 0x4b},
242 {"F12",
243 0x6f},
245 {"F1",
246 0x50},
248 {"F2",
249 0x51},
251 {"F3",
252 0x52},
254 {"F4",
255 0x53},
257 {"F5",
258 0x54},
260 {"F6",
261 0x55},
263 {"F7",
264 0x56},
266 {"F8",
267 0x57},
269 {"F9",
270 0x58},
272 {"HELP",
273 0x5f},
275 {"HOME",
276 0x70},
278 {"INSERT",
279 0x47},
281 {"LEFT",
282 0x4f},
284 {"NUMLOCK",
285 0x6d},
287 {"PAGE_DOWN",
288 0x49},
290 {"PAGE_UP",
291 0x48},
293 {"PAUSE",
294 0x6e},
296 {"PRTSCR",
297 0x6c},
299 {"RETURN",
300 0x44},
302 {"RIGHT",
303 0x4e},
305 {"SCRLOCK",
306 0x6b},
308 {"SPACE",
309 0x40},
311 {"SPACEBAR",
312 0x40},
314 {"TAB",
315 0x42},
317 {"UP",
318 0x4C},
320 /* {NULL,
324 pix_S pix_Extra[]=
327 {"MOUSE_LEFTPRESS",
328 0x68},
330 {"MOUSE_MIDDLEPRESS",
331 0x6a},
333 {"MOUSE_RIGHTPRESS",
334 0x69},
336 {"(",
337 0x5a},
339 {")",
340 0x5b},
342 {"*",
343 0x5d},
345 {"+",
346 0x5e},
348 {"-",
349 0x4a},
351 {".",
352 0x3c},
354 {"/",
355 0x5c},
357 {"0",
358 0x0f},
360 {"1",
361 0x1d},
363 {"2",
364 0x1e},
366 {"3",
367 0x1f},
369 {"4",
370 0x2d},
372 {"5",
373 0x2e},
375 {"6",
376 0x2f},
378 {"7",
379 0x3d},
381 {"8",
382 0x3e},
384 {"9",
385 0x3f},
387 {NULL,
391 #endif /* COMMODITIES_PARSE_H */