Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / keymaps / pc105_e.c
blob272f05465ba8dbd0021d43f6ea56cc27d645e645
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Spanish PC105 Keymap
6 Lang: Spanish
7 */
9 #include "common.h"
11 DEFINE_KEYMAP("pc105_e")
13 #undef N
14 #undef S
15 #undef A
16 #undef C
17 #undef D
18 #undef V
19 #undef ST
20 #undef NOP
22 #define N KC_NOQUAL
23 #define S KCF_SHIFT
24 #define A KCF_ALT
25 #define C KCF_CONTROL
26 #define D KCF_DEAD
27 #define V KC_VANILLA
28 #define ST KCF_STRING
29 #define NOP KCF_NOP
31 #define EUR 0xA4 /* ISO 8859-15: Euro = 164 = 0xA4) */
33 STATIC CONST UBYTE lokeymaptypes[] =
35 S|A, /* 00 left of 1 */
36 S|A, /* 01 1 */
37 V, /* 02 2 */
38 V, /* 03 3 */
39 S|A, /* 04 4 */
40 S|A, /* 05 */
41 S|A, /* 06 */
42 S|A, /* 07 */
43 S|A, /* 08 */
44 S|A, /* 09 */
45 S|A, /* 0A */
46 S|A, /* 0B Right of 0 */
47 S|A, /* 0C 2nd right of 0 */
48 N, /* 0D 3rd right of 0 */
49 N, /* 0E undef */
50 S|A, /* 0F NUM 0 */
52 V, /* 10 q */
53 V, /* 11 w */
54 D|V, /* 12 e */
55 V, /* 13 r */
56 V, /* 14 t */
57 V, /* 15 y */
58 D|V, /* 16 u */
59 D|V, /* 17 i */
60 D|V, /* 18 o */
61 V, /* 19 p */
63 D|S|A, /* 1A + * */
64 S|A, /* 1B ´ ` */
65 N, /* 1C undefined */
66 N, /* 1D NUM 1 */
67 N, /* 1E NUM 2 */
68 N, /* 1F NUM 3 */
70 D|V, /* 20 a */
71 V, /* 21 s */
72 V, /* 22 d */
73 V, /* 23 f */
74 V, /* 24 g */
75 V, /* 25 h */
76 V, /* 26 j */
77 V, /* 27 k */
78 V, /* 28 l */
79 S|A, /* 29 ç */
81 D|S|A, /* 2A º ª */
82 S|A, /* 2B ~ ^ */
83 N, /* 2C undefined */
84 N, /* 2D NUM 4 */
85 N, /* 2E NUM 5 */
86 N, /* 2F NUM 6 */
87 S|A, /* 30 < > */
88 V, /* 31 z */
89 V, /* 32 x */
90 V, /* 33 c */
91 V, /* 34 v */
92 V, /* 35 b */
93 V, /* 36 n */
95 V, /* 37 m */
96 S|A, /* 38 , ; */
97 S|A, /* 39 . : */
98 S, /* 3A - _ */
99 N, /* 3B undefined */
100 N, /* 3C NUM . */
101 N, /* 3D NUM 7 */
102 N, /* 3E NUM 8 */
103 N, /* 3F NUM 9 */
106 STATIC CONST UBYTE hikeymaptypes[] =
108 D|S, /* 40 SPACE */
109 N, /* 41 BACKSPACE */
110 ST|S, /* 42 TAB */
111 N, /* 43 ENTER */
112 C, /* 44 RETURN */
113 A, /* 45 ESCAPE */
114 N, /* 46 DEL */
115 ST|S, /* 47 INSERT ?? */
116 ST|S, /* 48 PAGE UP ?? */
117 ST|S, /* 49 PAGE DOWN ?? */
118 N, /* 4A NUMERIC PAD - */
119 ST|S, /* 4B F11 ?? */
120 ST|S, /* 4C CURSORUP*/
121 ST|S, /* 4D CURSORDOWN */
122 ST|S, /* 4E CURSORRIGHT */
123 ST|S, /* 4F CURSORLEFT */
124 ST|S, /* 50 F1 */
125 ST|S, /* 51 F2 */
126 ST|S, /* 52 F3 */
127 ST|S, /* 53 F4 */
128 ST|S, /* 54 F5 */
129 ST|S, /* 55 F6 */
130 ST|S, /* 56 F7 */
131 ST|S, /* 57 F8 */
132 ST|S, /* 58 F9 */
133 ST|S, /* 59 F10 */
134 NOP, /* 5A NUMLOCK */
135 N, /* 5B NUMPAD ) */
136 N, /* 5C NUMPAD / */
137 N, /* 5D NUMPAD * */
138 N, /* 5E NUMPAD + */
139 ST, /* 5F HELP */
140 NOP, /* 60 LEFT SHIFT*/
141 NOP, /* 61 RIGHT SHIFT */
142 NOP, /* 62 CAPS LOCK */
143 NOP, /* 63 CONTROL */
144 NOP, /* 64 LALT */
145 NOP, /* 65 RALT */
146 NOP, /* 66 LCOMMAND */
147 NOP, /* 67 RCOMMAND */
148 NOP, /* 68 LEFT MOUSE BUTTON*/
149 NOP, /* 69 RIGHT MOUSE BUTTON */
150 NOP, /* 6A MIDDLE MOUSE BUTTON */
151 NOP, /* 6B */
152 NOP, /* 6C */
153 NOP, /* 6D */
154 ST|A, /* 6E PAUSE/BREAK ??*/
155 ST|S, /* 6F F12 ?? */
156 ST|C, /* 70 HOME ?? */
157 ST|C, /* 71 END ?? */
158 NOP, /* 72 */
159 NOP, /* 73 */
160 NOP, /* 74 */
161 NOP, /* 75 */
162 NOP, /* 76 */
163 NOP, /* 77 */
164 NOP, /* 78 */
165 NOP, /* 79 */
166 NOP, /* 7A */
167 NOP, /* 7B */
168 NOP, /* 7C */
169 NOP, /* 7D */
170 NOP, /* 7E */
171 NOP /* 7F */
174 #undef N
175 #undef S
176 #undef A
177 #undef C
178 #undef D
179 #undef V
180 #undef ST
181 #undef NOP
183 #undef STRING
184 #undef DEAD
185 #undef BYTES
187 #define STRING(x) (IPTR)x
188 #define DEAD(x) (IPTR)x
189 #define BYTES(b0, b1, b2, b3) \
190 (((UBYTE)b0)<<24) | (((UBYTE)b1)<<16) | (((UBYTE)b2)<<8) | (((UBYTE)b3)<<0)
192 STATIC CONST UBYTE a_descr[] =
194 DPF_MOD, 0x10,
195 DPF_MOD, 0x17,
196 0, 'æ', /* 0xE6 */
197 0, 'Æ', /* 0xC6 */
198 0, 0x01,
199 0, 0x01,
200 0, 0x81,
201 0, 0x81,
203 'a', 'á' /*0xE1*/, 'à' /*0xE0*/, 'â' /*0xE2*/, 'ã' /*0xE3*/, 'ä' /*0xE4*/, 'å' /*0xE5*/,
205 'A', 'Á' /*0xC1*/, 'À' /*0xC0*/, 'Â' /*0xC2*/, 'Ã' /*0xC3*/, 'Ä' /*0xC4*/, 'Å' /*0xC5*/
208 STATIC CONST UBYTE e_descr[] =
210 DPF_MOD, 0x10,
211 DPF_MOD, 0x17,
212 0, EUR,
213 0, '¢',
214 0, 0x05,
215 0, 0x05,
216 0, 0x85,
217 0, 0x85,
219 'e', 'é' /*0xE9*/, 'è' /*0xE8*/, 'ê' /*0xEA*/, 'e', 'ë' /*0xEB*/, 'e',
221 'E', 'É' /*0xC9*/, 'È' /*0xC8*/, 'Ê' /*0xCA*/, 'E', 'Ë' /*0xCB*/, 'E'
224 STATIC CONST UBYTE u_descr[] =
226 DPF_MOD, 0x10,
227 DPF_MOD, 0x17,
228 0, 'µ', /* 0xB5 */
229 0, 'µ', /* 0xB5 */
230 0, 0x15,
231 0, 0x15,
232 0, 0x95,
233 0, 0x95,
235 'u', 'ú' /*0xFA*/, 'ù' /*0xF9*/, 'û' /*0xFB*/, 'u', 'ü' /*0xFC*/, 'u',
237 'U', 'Ú' /*0xDA*/, 'Ù' /*0xD9*/, 'Û' /*0xDB*/, 'U', 'Ü' /*0xDC*/, 'U'
240 STATIC CONST UBYTE i_descr[] =
242 DPF_MOD, 0x10,
243 DPF_MOD, 0x17,
244 0, '¡', /* 0xA1 */
245 0, '¦', /* 0xA6 */
246 0, 0x09,
247 0, 0x09,
248 0, 0x89,
249 0, 0x89,
251 'i', 'í' /*0xED*/, 'ì' /*0xEC*/, 'î' /*0xEE*/, 'i', 'ï' /*0xEF*/, 'i',
253 'I', 'Í' /*0xCD*/, 'Ì' /*0xCC*/, 'Î' /*0xCE*/, 'I', 'Ï' /*0xCF*/, 'I'
256 STATIC CONST UBYTE o_descr[] =
258 DPF_MOD, 0x10,
259 DPF_MOD, 0x17,
260 0, 'ø', /* 0xF8 */
261 0, 'Ø', /* 0xD8 */
262 0, 0x0F,
263 0, 0x0F,
264 0, 0x8F,
265 0, 0x8F,
267 'o', 'ó' /*0xF3*/, 'ò' /*0xF2*/, 'ô' /*0xF4*/, 'õ' /*0xF5*/, 'ö' /*0xF6*/, 'o',
269 'O', 'Ó' /*0xD3*/, 'Ò' /*0xD2*/, 'Ô' /*0xD4*/, 'Õ' /*0xD5*/, 'Ö' /*0xD6*/, 'O'
272 STATIC CONST UBYTE space_descr[] =
274 DPF_MOD, 0x4,
275 0, 0XA0,
277 ' ', '´' /*0xB4*/, '`','^','~', '¨' /*0xA8*/, '°' /*0xB0*/
280 STATIC CONST UBYTE KEY1A_descr[] =
282 DPF_DEAD, 2,
283 DPF_DEAD, 3,
284 0, '[',
285 0, '['
288 STATIC CONST UBYTE KEY2A_descr[] =
290 DPF_DEAD, 1,
291 DPF_DEAD, 5,
292 0, '{',
293 0, '{'
296 STATIC CONST IPTR lokeymap[] =
298 BYTES('\\','\\', 'ª','º'), /* 00 Left of 1 Key */
299 BYTES('¡', '|', '!', '1'), /* 01 1 */
300 BYTES(0, '@', '"', '2'), /* 02 2 */
301 BYTES('£', '#', '·', '3'), /* 03 3 */
302 BYTES('$', '~', '$', '4'), /* 04 4 */
303 BYTES(0, 0, '%', '5'), /* 05 5 */
304 BYTES(0, '¬', '&', '6'), /* 06 6 */
305 BYTES(0, '{', '/', '7'), /* 07 7 */
306 BYTES(0, '[', '(', '8'), /* 08 8 */
307 BYTES('±', ']', ')', '9'), /* 09 9 */
308 BYTES('°', '}', '=', '0'), /* 0A 0 */
309 BYTES('¿','\\', '?','\''), /* 0B Right of 0 */
310 BYTES('~', '~', '¿', '¡'), /* 0C 2nd right of 0 */
311 BYTES('|', '|', '|', '|'), /* 0D 3rd right of 0 */
312 BYTES(0, 0, 0, 0), /* 0E undefined */
313 BYTES('0', '0', '0', '0'), /* 0F NUM 0 */
315 BYTES(0, '@', 'Q', 'q'), /* 10 */
316 BYTES(0, 0, 'W', 'w'), /* 11 */
317 DEAD(e_descr), /* 12 */
318 BYTES('®', '¶', 'R', 'r'), /* 13 */
319 BYTES(0, 0, 'T', 't'), /* 14 */
320 BYTES('¥', 0, 'Y', 'y'), /* 15 */
321 DEAD(u_descr), /* 16 */
322 DEAD(i_descr), /* 17 */
323 DEAD(o_descr), /* 18 */
324 BYTES('Þ', 'þ', 'P', 'p'), /* 19 */
325 DEAD(KEY1A_descr), /* 1A */
326 BYTES(0, ']', '*', '+'), /* 1B */
327 BYTES(0, 0, 0, 0), /* 1C undefined */
328 BYTES('1', '1', '1', '1'), /* 1D NUM 1*/
329 BYTES('2', '2', '2', '2'), /* 1E NUM 2*/
330 BYTES('3', '3', '3', '3'), /* 1F NUM 3*/
332 DEAD(a_descr), /* 20 */
333 BYTES('§', 'ß', 'S', 's'), /* 21 */
334 BYTES('Ð', 'ð', 'D', 'd'), /* 22 */
335 BYTES('ª', 0, 'F', 'f'), /* 23 */
336 BYTES(0, 0, 'G', 'g'), /* 24 */
337 BYTES(0, 0, 'H', 'h'), /* 25 */
338 BYTES('J', 'j', 'J', 'j'), /* 26 */
339 BYTES('&', 0, 'K', 'k'), /* 27 */
340 BYTES(0, 0, 'L', 'l'), /* 28 */
341 BYTES('"', '~', 'Ñ', 'ñ'), /* 29 */
343 DEAD(KEY2A_descr), /* 2A */
344 BYTES(0, '}', 'Ç', 'ç'), /* 2B */
345 BYTES(0, 0, 0, 0), /* 2C undefined */
346 BYTES('4', '4', '4', '4'), /* 2D NUM 4 */
347 BYTES('5', '5', '5', '5'), /* 2E NUM 5 */
348 BYTES('6', '6', '6', '6'), /* 2F NUM 6 */
349 BYTES(0, '|', '>', '<'), /* 30 */
350 BYTES('<', '«', 'Z', 'z'), /* 31 */
351 BYTES('>', '»', 'X', 'x'), /* 32 */
352 BYTES('©', '¢', 'C', 'c'), /* 33 */
353 BYTES('`', 0, 'V', 'v'), /* 34 */
354 BYTES('\'', 0, 'B', 'b'), /* 35 */
355 BYTES('¯', '­', 'N', 'n'), /* 36 */
357 BYTES('º', 'µ', 'M', 'm'), /* 37 */
358 BYTES('×', 0, ';', ','), /* 38 */
359 BYTES('÷', '·', ':', '.'), /* 39 */
360 BYTES(0, 0, '_', '-'), /* 3A */
361 BYTES(0, 0, 0, 0), /* 3B */
362 BYTES('.', '.', '.', '.'), /* 3C NUM . */
363 BYTES('7', '7', '7', '7'), /* 3D NUM 7 */
364 BYTES('8', '8', '8', '8'), /* 3E NUM 8 */
365 BYTES('9', '9', '9', '9'), /* 3F NUM 9 */
368 #include "standard.h"
370 STATIC CONST IPTR hikeymap[] =
372 DEAD(space_descr), /* 40 SPACE */
373 BYTES(8, 8, 8, 8), /* 41 BACKSPACE*/
374 STRING(tab_descr), /* 42 TAB */
375 BYTES(13, 13, 13, 13), /* 43 ENTER */
376 BYTES(0, 0, 10, 13), /* 44 RETURN */
377 BYTES(0, 0, 0x9B, 27), /* 45 ESCAPE */
378 BYTES(127, 127, 127, 127), /* 46 DEL */
379 STRING(insert_descr), /* 47 INSERT ?? */
380 STRING(pageup_descr), /* 48 PAGEUP ?? */
381 STRING(pagedown_descr), /* 49 PAGEDOWN ?? */
382 BYTES('-', '-', '-', '-'), /* 4A NUMPAD - */
383 STRING(f11_descr), /* 4B F11 ?? */
384 STRING(up_descr), /* 4C CURSOR UP*/
385 STRING(down_descr), /* 4D CURSOR DOWN*/
386 STRING(right_descr), /* 4E CURSOR RIGHT */
387 STRING(left_descr), /* 4F CURSOR LEFT */
388 STRING(f1_descr), /* 50 F1 */
389 STRING(f2_descr), /* 51 */
390 STRING(f3_descr), /* 52 */
391 STRING(f4_descr), /* 53 */
392 STRING(f5_descr), /* 54 */
393 STRING(f6_descr), /* 55 */
394 STRING(f7_descr), /* 56 */
395 STRING(f8_descr), /* 57 */
396 STRING(f9_descr), /* 58 */
397 STRING(f10_descr), /* 59 */
398 BYTES(0, 0, 0, 0), /* 5A */
399 BYTES('/', '/', '/', '/'), /* 5B */
400 BYTES('*', '*', '*', '*'), /* 5C */
401 BYTES('-', '-', '-', '-'), /* 5D */
402 BYTES('+', '+', '+', '+'), /* 5E */
403 STRING(help_descr), /* 5F HELP */
404 BYTES(0, 0, 0, 0), /* 60 */
405 BYTES(0, 0, 0, 0), /* 61 */
406 BYTES(0, 0, 0, 0), /* 62 */
407 BYTES(0, 0, 0, 0), /* 63 */
408 BYTES(0, 0, 0, 0), /* 64 */
409 BYTES(0, 0, 0, 0), /* 65 */
410 BYTES(0, 0, 0, 0), /* 66 */
411 BYTES(0, 0, 0, 0), /* 67 */
412 BYTES(0, 0, 0, 0), /* 68 */
413 BYTES(0, 0, 0, 0), /* 69 */
414 BYTES(0, 0, 0, 0), /* 6A */
415 BYTES(0, 0, 0, 0), /* 6B */
416 BYTES(0, 0, 0, 0), /* 6C */
417 BYTES(0, 0, 0, 0), /* 6D */
418 STRING(pausebreak_descr), /* 6E PAUSE/BREAK ?? */
419 STRING(f12_descr), /* 6F F12 ?? */
420 STRING(home_descr), /* 70 HOME ?? */
421 STRING(end_descr), /* 71 END ?? */
422 BYTES(0, 0, 0, 0), /* 72 */
423 BYTES(0, 0, 0, 0), /* 73 */
424 BYTES(0, 0, 0, 0), /* 74 */
425 BYTES(0, 0, 0, 0), /* 75 */
426 BYTES(0, 0, 0, 0), /* 76 */
427 BYTES(0, 0, 0, 0), /* 77 */
428 BYTES(0, 0, 0, 0), /* 78 */
429 BYTES(0, 0, 0, 0), /* 79 */
430 BYTES(0, 0, 0, 0), /* 7A */
431 BYTES(0, 0, 0, 0), /* 7B */
432 BYTES(0, 0, 0, 0), /* 7C */
433 BYTES(0, 0, 0, 0), /* 7D */
434 BYTES(0, 0, 0, 0), /* 7E */
435 BYTES(0, 0, 0, 0), /* 7F */
438 #undef SETBITS
440 #define SETBITS(b0, b1, b2, b3, b4, b5, b6, b7) \
441 (b0<<0)|(b1<<1)|(b2<<2)|(b3<<3)|(b4<<4)|(b5<<5)|(b6<<6)|(b7<<7)
443 STATIC CONST UBYTE locapsable[] =
445 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 00 - 07 */
446 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 08 - 0F */
448 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
449 SETBITS(1, 1, 0, 0, 0, 0, 0, 0), /* 18 - 1F */
451 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
452 SETBITS(1, 1, 0, 1, 0, 0, 0, 0), /* 28 - 2F */
454 SETBITS(0, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
455 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 38 - 3F */
458 STATIC CONST UBYTE hicapsable[] =
460 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 40 - 47 */
461 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 48 - 4F */
463 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
464 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 58 - 5F */
466 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
467 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
469 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
470 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */
473 STATIC CONST UBYTE lorepeatable[] =
475 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 00 - 07 */
476 SETBITS(1, 1, 1, 1, 1, 1, 0, 1), /* 08 - 0F */
478 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
479 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 18 - 1F */
481 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
482 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 28 - 2F */
484 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
485 SETBITS(1, 1, 1, 0, 1, 1, 1, 1) /* 38 - 3F */
488 STATIC CONST UBYTE hirepeatable[] =
490 SETBITS(1, 1, 1, 0, 0, 0, 1, 0), /* 40 - 47 */
491 SETBITS(1, 1, 0, 0, 1, 1, 1, 1), /* 48 - 4F */
493 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
494 SETBITS(0, 0, 1, 1, 1, 1, 1, 0), /* 58 - 5F */
496 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
497 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
499 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
500 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */