2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: Portuguese PC105 Keymap
11 DEFINE_KEYMAP("pc105_p")
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)
203 STATIC CONST UBYTE a_descr
[] =
214 'a', 'á' /*0xE1*/, 'à' /*0xE0*/, 'â' /*0xE2*/, 'ã' /*0xE3*/, 'ä' /*0xE4*/, 'å' /*0xE5*/,
216 'A', 'Á' /*0xC1*/, 'À' /*0xC0*/, 'Â' /*0xC2*/, 'Ã' /*0xC3*/, 'Ä' /*0xC4*/, 'Å' /*0xC5*/
219 STATIC CONST UBYTE e_descr
[] =
230 'e', 'é' /*0xE9*/, 'è' /*0xE8*/, 'ê' /*0xEA*/, 'e', 'ë' /*0xEB*/, 'e',
232 'E', 'É' /*0xC9*/, 'È' /*0xC8*/, 'Ê' /*0xCA*/, 'E', 'Ë' /*0xCB*/, 'E'
235 STATIC CONST UBYTE u_descr
[] =
246 'u', 'ú' /*0xFA*/, 'ù' /*0xF9*/, 'û' /*0xFB*/, 'u', 'ü' /*0xFC*/, 'u',
248 'U', 'Ú' /*0xDA*/, 'Ù' /*0xD9*/, 'Û' /*0xDB*/, 'U', 'Ü' /*0xDC*/, 'U'
251 STATIC CONST UBYTE i_descr
[] =
262 'i', 'í' /*0xED*/, 'ì' /*0xEC*/, 'î' /*0xEE*/, 'i', 'ï' /*0xEF*/, 'i',
264 'I', 'Í' /*0xCD*/, 'Ì' /*0xCC*/, 'Î' /*0xCE*/, 'I', 'Ï' /*0xCF*/, 'I'
267 STATIC CONST UBYTE o_descr
[] =
278 'o', 'ó' /*0xF3*/, 'ò' /*0xF2*/, 'ô' /*0xF4*/, 'õ' /*0xF5*/, 'ö' /*0xF6*/, 'o',
280 'O', 'Ó' /*0xD3*/, 'Ò' /*0xD2*/, 'Ô' /*0xD4*/, 'Õ' /*0xD5*/, 'Ö' /*0xD6*/, 'O'
283 STATIC CONST UBYTE space_descr
[] =
288 ' ', '´' /*0xB4*/, '`','^','~', '¨' /*0xA8*/, '°' /*0xB0*/
291 STATIC CONST UBYTE KEY1B_descr
[] =
299 STATIC CONST UBYTE KEY2B_descr
[] =
301 DPF_DEAD
, 4, /* 0, '~', */
302 DPF_DEAD
, 3, /* 0, '^', */
307 STATIC CONST IPTR lokeymap
[] =
309 BYTES('|','\\', '|','\\'), /* 00 Left of 1 Key */
310 BYTES('¹', '¹', '!', '1'), /* 01 1 */
311 BYTES('@', '@', '"', '2'), /* 02 2 */
312 BYTES('£', '£', '#', '3'), /* 03 3 */
313 BYTES('§', '§', '$', '4'), /* 04 4 */
314 BYTES('%', '5', '%', '5'), /* 05 5 */
315 BYTES('&', '6', '&', '6'), /* 06 6 */
316 BYTES('{', '{', '/', '7'), /* 07 7 */
317 BYTES('[', '[', '(', '8'), /* 08 8 */
318 BYTES(']', ']', ')', '9'), /* 09 9 */
319 BYTES('}', '}', '=', '0'), /* 0A 0 */
320 BYTES('?','\'', '?','\''), /* 0B Right of 0 */
321 BYTES('»', '«', '»', '«'), /* 0C 2nd right of 0 */
322 BYTES('|', '|', '|', '|'), /* 0D 3rd right of 0 */
323 BYTES(0, 0, 0, 0), /* 0E undefined */
324 BYTES('0', '0', '0', '0'), /* 0F NUM 0 */
326 BYTES('Q', 'q', 'Q', 'q'), /* 10 */
327 BYTES('W', 'w', 'W', 'w'), /* 11 */
328 DEAD(e_descr
), /* 12 */
329 BYTES('R', 'r', 'R', 'r'), /* 13 */
330 BYTES('T', 't', 'T', 't'), /* 14 */
331 BYTES('Y', 'y', 'Y', 'y'), /* 15 */
332 DEAD(u_descr
), /* 16 */
333 DEAD(i_descr
), /* 17 */
334 DEAD(o_descr
), /* 18 */
335 BYTES('Þ', 'þ', 'P', 'p'), /* 19 */
336 BYTES('*', '+', '*', '+'), /* 1A */
337 DEAD(KEY1B_descr
), /* 1B */
338 BYTES(0, 0, 0, 0), /* 1C undefined */
339 BYTES('1', '1', '1', '1'), /* 1D NUM 1*/
340 BYTES('2', '2', '2', '2'), /* 1E NUM 2*/
341 BYTES('3', '3', '3', '3'), /* 1F NUM 3*/
343 DEAD(a_descr
), /* 20 */
344 BYTES('S', 's', 'S', 's'), /* 21 */
345 BYTES('D', 'd', 'D', 'd'), /* 22 */
346 BYTES('F', 'f', 'F', 'f'), /* 23 */
347 BYTES('G', 'g', 'G', 'g'), /* 24 */
348 BYTES('H', 'h', 'H', 'h'), /* 25 */
349 BYTES('J', 'j', 'J', 'j'), /* 26 */
350 BYTES('K', 'k', 'K', 'k'), /* 27 */
351 BYTES('L', 'l', 'L', 'l'), /* 28 */
352 BYTES('Ç', 'ç', 'Ç', 'ç'), /* 29 */
354 BYTES('ª', 'º', 'ª', 'º'), /* 2A */
355 DEAD(KEY2B_descr
), /* 2B */
356 BYTES(0, 0, 0, 0), /* 2C undefined */
357 BYTES('4', '4', '4', '4'), /* 2D NUM 4 */
358 BYTES('5', '5', '5', '5'), /* 2E NUM 5 */
359 BYTES('6', '6', '6', '6'), /* 2F NUM 6 */
360 BYTES('¦', '|', '>', '<'), /* 30 */
361 BYTES('Z', 'z', 'Z', 'z'), /* 31 */
362 BYTES('X', 'x', 'X', 'x'), /* 32 */
363 BYTES('C', 'c', 'C', 'c'), /* 33 */
364 BYTES('V', 'v', 'V', 'v'), /* 34 */
365 BYTES('B', 'b', 'B', 'b'), /* 35 */
366 BYTES('¯', '', 'N', 'n'), /* 36 */
368 BYTES('M', 'm', 'M', 'm'), /* 37 */
369 BYTES(';', ',', ';', ','), /* 38 */
370 BYTES(':', '.', ':', '.'), /* 39 */
371 BYTES('_', '-', '_', '-'), /* 3A */
372 BYTES(0, 0, 0, 0), /* 3B */
373 BYTES('.', '.', '.', '.'), /* 3C NUM . */
374 BYTES('7', '7', '7', '7'), /* 3D NUM 7 */
375 BYTES('8', '8', '8', '8'), /* 3E NUM 8 */
376 BYTES('9', '9', '9', '9'), /* 3F NUM 9 */
379 #include "standard.h"
381 STATIC CONST IPTR hikeymap
[] =
383 DEAD(space_descr
), /* 40 SPACE */
384 BYTES(8, 8, 8, 8), /* 41 BACKSPACE*/
385 STRING(tab_descr
), /* 42 TAB */
386 BYTES(13, 13, 13, 13), /* 43 ENTER */
387 BYTES(0, 0, 10, 13), /* 44 RETURN */
388 BYTES(0, 0, 0x9B, 27), /* 45 ESCAPE */
389 BYTES(127, 127, 127, 127), /* 46 DEL */
390 STRING(insert_descr
), /* 47 INSERT ?? */
391 STRING(pageup_descr
), /* 48 PAGEUP ?? */
392 STRING(pagedown_descr
), /* 49 PAGEDOWN ?? */
393 BYTES('-', '-', '-', '-'), /* 4A NUMPAD - */
394 STRING(f11_descr
), /* 4B F11 ?? */
395 STRING(up_descr
), /* 4C CURSOR UP*/
396 STRING(down_descr
), /* 4D CURSOR DOWN*/
397 STRING(right_descr
), /* 4E CURSOR RIGHT */
398 STRING(left_descr
), /* 4F CURSOR LEFT */
399 STRING(f1_descr
), /* 50 F1 */
400 STRING(f2_descr
), /* 51 */
401 STRING(f3_descr
), /* 52 */
402 STRING(f4_descr
), /* 53 */
403 STRING(f5_descr
), /* 54 */
404 STRING(f6_descr
), /* 55 */
405 STRING(f7_descr
), /* 56 */
406 STRING(f8_descr
), /* 57 */
407 STRING(f9_descr
), /* 58 */
408 STRING(f10_descr
), /* 59 */
409 BYTES(0, 0, 0, 0), /* 5A */
410 BYTES('/', '/', '/', '/'), /* 5B */
411 BYTES('*', '*', '*', '*'), /* 5C */
412 BYTES('-', '-', '-', '-'), /* 5D */
413 BYTES('+', '+', '+', '+'), /* 5E */
414 STRING(help_descr
), /* 5F HELP */
415 BYTES(0, 0, 0, 0), /* 60 */
416 BYTES(0, 0, 0, 0), /* 61 */
417 BYTES(0, 0, 0, 0), /* 62 */
418 BYTES(0, 0, 0, 0), /* 63 */
419 BYTES(0, 0, 0, 0), /* 64 */
420 BYTES(0, 0, 0, 0), /* 65 */
421 BYTES(0, 0, 0, 0), /* 66 */
422 BYTES(0, 0, 0, 0), /* 67 */
423 BYTES(0, 0, 0, 0), /* 68 */
424 BYTES(0, 0, 0, 0), /* 69 */
425 BYTES(0, 0, 0, 0), /* 6A */
426 BYTES(0, 0, 0, 0), /* 6B */
427 BYTES(0, 0, 0, 0), /* 6C */
428 BYTES(0, 0, 0, 0), /* 6D */
429 STRING(pausebreak_descr
), /* 6E PAUSE/BREAK ?? */
430 STRING(f12_descr
), /* 6F F12 ?? */
431 STRING(home_descr
), /* 70 HOME ?? */
432 STRING(end_descr
), /* 71 END ?? */
433 BYTES(0, 0, 0, 0), /* 72 */
434 BYTES(0, 0, 0, 0), /* 73 */
435 BYTES(0, 0, 0, 0), /* 74 */
436 BYTES(0, 0, 0, 0), /* 75 */
437 BYTES(0, 0, 0, 0), /* 76 */
438 BYTES(0, 0, 0, 0), /* 77 */
439 BYTES(0, 0, 0, 0), /* 78 */
440 BYTES(0, 0, 0, 0), /* 79 */
441 BYTES(0, 0, 0, 0), /* 7A */
442 BYTES(0, 0, 0, 0), /* 7B */
443 BYTES(0, 0, 0, 0), /* 7C */
444 BYTES(0, 0, 0, 0), /* 7D */
445 BYTES(0, 0, 0, 0), /* 7E */
446 BYTES(0, 0, 0, 0), /* 7F */
451 #define SETBITS(b0, b1, b2, b3, b4, b5, b6, b7) \
452 (b0<<0)|(b1<<1)|(b2<<2)|(b3<<3)|(b4<<4)|(b5<<5)|(b6<<6)|(b7<<7)
454 STATIC CONST UBYTE locapsable
[] =
456 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 00 - 07 */
457 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 08 - 0F */
459 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
460 SETBITS(1, 1, 0, 0, 0, 0, 0, 0), /* 18 - 1F */
462 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
463 SETBITS(1, 1, 0, 0, 0, 0, 0, 0), /* 28 - 2F */
465 SETBITS(0, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
466 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 38 - 3F */
469 STATIC CONST UBYTE hicapsable
[] =
471 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 40 - 47 */
472 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 48 - 4F */
474 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
475 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 58 - 5F */
477 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
478 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
480 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
481 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */
484 STATIC CONST UBYTE lorepeatable
[] =
486 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 00 - 07 */
487 SETBITS(1, 1, 1, 1, 1, 1, 0, 1), /* 08 - 0F */
489 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
490 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 18 - 1F */
492 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
493 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 28 - 2F */
495 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
496 SETBITS(1, 1, 1, 0, 1, 1, 1, 1) /* 38 - 3F */
499 STATIC CONST UBYTE hirepeatable
[] =
501 SETBITS(1, 1, 1, 0, 0, 0, 1, 0), /* 40 - 47 */
502 SETBITS(1, 1, 0, 0, 1, 1, 1, 1), /* 48 - 4F */
504 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
505 SETBITS(0, 0, 1, 1, 1, 1, 1, 0), /* 58 - 5F */
507 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
508 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
510 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
511 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */