2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: Spanish PC105 Keymap
11 DEFINE_KEYMAP("pc105_e")
31 #define EUR 0xA4 /* ISO 8859-15: Euro = 164 = 0xA4) */
33 STATIC CONST UBYTE lokeymaptypes
[] =
35 S
|A
, /* 00 left of 1 */
46 S
|A
, /* 0B Right of 0 */
47 S
|A
, /* 0C 2nd right of 0 */
48 N
, /* 0D 3rd right of 0 */
106 STATIC CONST UBYTE hikeymaptypes
[] =
109 N
, /* 41 BACKSPACE */
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 */
134 NOP
, /* 5A NUMLOCK */
140 NOP
, /* 60 LEFT SHIFT*/
141 NOP
, /* 61 RIGHT SHIFT */
142 NOP
, /* 62 CAPS LOCK */
143 NOP
, /* 63 CONTROL */
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 */
154 ST
|A
, /* 6E PAUSE/BREAK ??*/
155 ST
|S
, /* 6F F12 ?? */
156 ST
|C
, /* 70 HOME ?? */
157 ST
|C
, /* 71 END ?? */
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
[] =
203 'a', 'á' /*0xE1*/, 'à' /*0xE0*/, 'â' /*0xE2*/, 'ã' /*0xE3*/, 'ä' /*0xE4*/, 'å' /*0xE5*/,
205 'A', 'Á' /*0xC1*/, 'À' /*0xC0*/, 'Â' /*0xC2*/, 'Ã' /*0xC3*/, 'Ä' /*0xC4*/, 'Å' /*0xC5*/
208 STATIC CONST UBYTE e_descr
[] =
219 'e', 'é' /*0xE9*/, 'è' /*0xE8*/, 'ê' /*0xEA*/, 'e', 'ë' /*0xEB*/, 'e',
221 'E', 'É' /*0xC9*/, 'È' /*0xC8*/, 'Ê' /*0xCA*/, 'E', 'Ë' /*0xCB*/, 'E'
224 STATIC CONST UBYTE u_descr
[] =
235 'u', 'ú' /*0xFA*/, 'ù' /*0xF9*/, 'û' /*0xFB*/, 'u', 'ü' /*0xFC*/, 'u',
237 'U', 'Ú' /*0xDA*/, 'Ù' /*0xD9*/, 'Û' /*0xDB*/, 'U', 'Ü' /*0xDC*/, 'U'
240 STATIC CONST UBYTE i_descr
[] =
251 'i', 'í' /*0xED*/, 'ì' /*0xEC*/, 'î' /*0xEE*/, 'i', 'ï' /*0xEF*/, 'i',
253 'I', 'Í' /*0xCD*/, 'Ì' /*0xCC*/, 'Î' /*0xCE*/, 'I', 'Ï' /*0xCF*/, 'I'
256 STATIC CONST UBYTE o_descr
[] =
267 'o', 'ó' /*0xF3*/, 'ò' /*0xF2*/, 'ô' /*0xF4*/, 'õ' /*0xF5*/, 'ö' /*0xF6*/, 'o',
269 'O', 'Ó' /*0xD3*/, 'Ò' /*0xD2*/, 'Ô' /*0xD4*/, 'Õ' /*0xD5*/, 'Ö' /*0xD6*/, 'O'
272 STATIC CONST UBYTE space_descr
[] =
277 ' ', '´' /*0xB4*/, '`','^','~', '¨' /*0xA8*/, '°' /*0xB0*/
280 STATIC CONST UBYTE KEY1A_descr
[] =
288 STATIC CONST UBYTE KEY2A_descr
[] =
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 */
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 */