2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
5 Desc: Polish PC105 Keymap
9 #include <devices/keymap.h>
11 STATIC
char keymapname
[] = "pc105_pl";
13 STATIC CONST UBYTE lokeymaptypes
[];
14 STATIC CONST IPTR lokeymap
[];
15 STATIC CONST UBYTE locapsable
[];
16 STATIC CONST UBYTE lorepeatable
[];
18 STATIC CONST UBYTE hikeymaptypes
[];
19 STATIC CONST IPTR hikeymap
[];
20 STATIC CONST UBYTE hicapsable
[];
21 STATIC CONST UBYTE hirepeatable
[];
23 CONST
struct KeyMapNode km
=
25 #if (AROS_FLAVOUR & AROS_FLAVOUR_BINCOMPAT)
27 NULL
, NULL
, 0, 0, keymapname
31 NULL
, NULL
, keymapname
, 0, 0
35 (UBYTE
*)lokeymaptypes
,
38 (UBYTE
*)lorepeatable
,
39 (UBYTE
*)hikeymaptypes
,
64 #define EUR 0xA4 /* ISO 8859-15: Euro = 164 = 0xA4) */
66 STATIC CONST UBYTE lokeymaptypes
[] =
134 STATIC CONST UBYTE hikeymaptypes
[] =
137 N
, /* 41 BACKSPACE */
143 ST
|S
, /* 47 INSERT ?? */
144 ST
|S
, /* 48 PAGE UP ?? */
145 ST
|S
, /* 49 PAGE DOWN ?? */
146 N
, /* 4A NUMERIC PAD - */
147 ST
|S
, /* 4B F11 ?? */
148 ST
|S
, /* 4C CURSORUP*/
149 ST
|S
, /* 4D CURSORDOWN */
150 ST
|S
, /* 4E CURSORRIGHT */
151 ST
|S
, /* 4F CURSORLEFT */
162 NOP
, /* 5A NUMLOCK */
168 NOP
, /* 60 LEFT SHIFT*/
169 NOP
, /* 61 RIGHT SHIFT */
170 NOP
, /* 62 CAPS LOCK */
171 NOP
, /* 63 CONTROL */
174 NOP
, /* 66 LCOMMAND */
175 NOP
, /* 67 RCOMMAND */
176 NOP
, /* 68 LEFT MOUSE BUTTON*/
177 NOP
, /* 69 RIGHT MOUSE BUTTON */
178 NOP
, /* 6A MIDDLE MOUSE BUTTON */
182 ST
|A
, /* 6E PAUSE/BREAK ??*/
183 ST
|S
, /* 6F F12 ?? */
184 ST
|C
, /* 70 HOME ?? */
185 ST
|C
, /* 71 END ?? */
215 #define STRING(x) (IPTR)x
216 #define DEAD(x) (IPTR)x
217 #define BYTES(b0, b1, b2, b3) \
218 (((UBYTE)b0)<<24) | (((UBYTE)b1)<<16) | (((UBYTE)b2)<<8) | (((UBYTE)b3)<<0)
220 STATIC CONST IPTR lokeymap
[] =
222 BYTES('¬', '`', '¬', '`'), /* 00 Left of 1 Key */
223 BYTES('!', '1', '!', '1'), /* 01 1 */
224 BYTES('²', '²', '"', '2'), /* 02 2 */
225 BYTES('³', '³', '£', '3'), /* 03 3 */
226 BYTES(EUR
, EUR
, '$', '4'), /* 04 4 */
227 BYTES('%', '5', '%', '5'), /* 05 5 */
228 BYTES('^', '6', '^', '6'), /* 06 6 */
229 BYTES('&', '7', '&', '7'), /* 07 7 */
230 BYTES('*', '8', '*', '8'), /* 08 8 */
231 BYTES('(', '9', '(', '9'), /* 09 9 */
232 BYTES(')', '0', ')', '0'), /* 0A 0 */
233 BYTES('_', '-', '_', '-'), /* 0B Right of 0 */
234 BYTES('+', '=', '+', '='), /* 0C 2nd right of 0 */
235 BYTES('|', '|', '|', '|'), /* 0D 3rd right of 0 */
236 BYTES(0, 0, 0, 0), /* 0E undefined */
237 BYTES('0', '0', '0', '0'), /* 0F NUM 0 */
238 BYTES('@', '@', 'Q', 'q'), /* 10 */
239 BYTES('W', 'w', 'W', 'w'), /* 11 */
240 BYTES(0xCA, 0xEA, 'E', 'e'), /* 12 */
241 BYTES('®', '®', 'R', 'r'), /* 13 */
242 BYTES('Ô', 'ô', 'T', 't'), /* 14 */
243 BYTES('Y', 'y', 'Y', 'y'), /* 15 */
244 BYTES('Ú', 'ú', 'U', 'u'), /* 16 */
245 BYTES('Í', 'í', 'I', 'i'), /* 17 */
246 BYTES('Ó', 'ó', 'O', 'o'), /* 18 */
247 BYTES('P', 'p', 'P', 'p'), /* 19 */
249 BYTES('{', '[', '{', '['), /* 1A */
250 BYTES('}', ']', '}', ']'), /* 1B */
251 BYTES(0, 0, 0, 0), /* 1C undefined */
252 BYTES('1', '1', '1', '1'), /* 1D NUM 1*/
253 BYTES('2', '2', '2', '2'), /* 1E NUM 2*/
254 BYTES('3', '3', '3', '3'), /* 1F NUM 3*/
256 BYTES(0xA1, 0xB1, 'A', 'a'), /* 20 */
257 BYTES(0xA6, 0xB6, 'S', 's'), /* 21 */
258 BYTES('D', 'd', 'D', 'd'), /* 22 */
259 BYTES('F', 'f', 'F', 'f'), /* 23 */
260 BYTES('G', 'g', 'G', 'g'), /* 24 */
261 BYTES('H', 'h', 'H', 'h'), /* 25 */
262 BYTES('J', 'j', 'J', 'j'), /* 26 */
263 BYTES('K', 'k', 'K', 'k'), /* 27 */
264 BYTES(0xA3, 0xB3, 'L', 'l'), /* 28 */
266 BYTES(':', ';', ':', ';'), /* 29 */
267 BYTES('@','\'', '@','\''), /* 2A */
268 BYTES('~', '#', '~', '#'), /* 2B */
269 BYTES(0, 0, 0, 0), /* 2C undefined */
270 BYTES('4', '4', '4', '4'), /* 2D NUM 4 */
271 BYTES('5', '5', '5', '5'), /* 2E NUM 5 */
272 BYTES('6', '6', '6', '6'), /* 2F NUM 6 */
273 BYTES('|','\\', '|','\\'), /* 30 */
274 BYTES(0xAF, 0xBF, 'Z', 'z'), /* 31 */
275 BYTES(0xAC, 0xBC, 'X', 'x'), /* 32 */
276 BYTES(0xC6, 0xE6, 'C', 'c'), /* 33 */
277 BYTES('V', 'v', 'V', 'v'), /* 34 */
278 BYTES('B', 'b', 'B', 'b'), /* 35 */
279 BYTES(0xd1, 0xF1, 'N', 'n'), /* 36 */
280 BYTES('µ', 'µ', 'M', 'm'), /* 37 */
282 BYTES('<', ',', '<', ','), /* 38 */
283 BYTES('>', '.', '>', '.'), /* 39 */
284 BYTES('?', '/', '?', '/'), /* 3A */
285 BYTES(0, 0, 0, 0), /* 3B */
286 BYTES('.', '.', '.', '.'), /* 3C NUM . */
287 BYTES('7', '7', '7', '7'), /* 3D NUM 7 */
288 BYTES('8', '8', '8', '8'), /* 3E NUM 8 */
289 BYTES('9', '9', '9', '9'), /* 3F NUM 9 */
292 #include "standard.h"
294 STATIC CONST IPTR hikeymap
[] =
296 BYTES(' ', ' ', ' ', ' '), /* 40 */
297 BYTES(8, 8, 8, 8), /* 41 BACKSPACE*/
298 STRING(tab_descr
), /* 42 TAB */
299 BYTES(13, 13, 13, 13), /* 43 ENTER */
300 BYTES(0, 0, 10, 13), /* 44 RETURN */
301 BYTES(0, 0, 0x9B, 27), /* 45 ESCAPE */
302 BYTES(127, 127, 127, 127), /* 46 DEL */
303 STRING(insert_descr
), /* 47 INSERT ?? */
304 STRING(pageup_descr
), /* 48 PAGEUP ?? */
305 STRING(pagedown_descr
), /* 49 PAGEDOWN ?? */
306 BYTES('-', '-', '-', '-'), /* 4A NUMPAD - */
307 STRING(f11_descr
), /* 4B F11 ?? */
308 STRING(up_descr
), /* 4C CURSOR UP*/
309 STRING(down_descr
), /* 4D CURSOR DOWN*/
310 STRING(right_descr
), /* 4E CURSOR RIGHT */
311 STRING(left_descr
), /* 4F CURSOR LEFT */
312 STRING(f1_descr
), /* 50 F1 */
313 STRING(f2_descr
), /* 51 */
314 STRING(f3_descr
), /* 52 */
315 STRING(f4_descr
), /* 53 */
316 STRING(f5_descr
), /* 54 */
317 STRING(f6_descr
), /* 55 */
318 STRING(f7_descr
), /* 56 */
319 STRING(f8_descr
), /* 57 */
320 STRING(f9_descr
), /* 58 */
321 STRING(f10_descr
), /* 59 */
322 BYTES(0, 0, 0, 0), /* 5A */
323 BYTES('/', '/', '/', '/'), /* 5B */
324 BYTES('*', '*', '*', '*'), /* 5C */
325 BYTES('-', '-', '-', '-'), /* 5D */
326 BYTES('+', '+', '+', '+'), /* 5E */
327 STRING(help_descr
), /* 5F HELP */
328 BYTES(0, 0, 0, 0), /* 60 */
329 BYTES(0, 0, 0, 0), /* 61 */
330 BYTES(0, 0, 0, 0), /* 62 */
331 BYTES(0, 0, 0, 0), /* 63 */
332 BYTES(0, 0, 0, 0), /* 64 */
333 BYTES(0, 0, 0, 0), /* 65 */
334 BYTES(0, 0, 0, 0), /* 66 */
335 BYTES(0, 0, 0, 0), /* 67 */
336 BYTES(0, 0, 0, 0), /* 68 */
337 BYTES(0, 0, 0, 0), /* 69 */
338 BYTES(0, 0, 0, 0), /* 6A */
339 BYTES(0, 0, 0, 0), /* 6B */
340 BYTES(0, 0, 0, 0), /* 6C */
341 BYTES(0, 0, 0, 0), /* 6D */
342 STRING(pausebreak_descr
), /* 6E PAUSE/BREAK ?? */
343 STRING(f12_descr
), /* 6F F12 ?? */
344 STRING(home_descr
), /* 70 HOME ?? */
345 STRING(end_descr
), /* 71 END ?? */
346 BYTES(0, 0, 0, 0), /* 72 */
347 BYTES(0, 0, 0, 0), /* 73 */
348 BYTES(0, 0, 0, 0), /* 74 */
349 BYTES(0, 0, 0, 0), /* 75 */
350 BYTES(0, 0, 0, 0), /* 76 */
351 BYTES(0, 0, 0, 0), /* 77 */
352 BYTES(0, 0, 0, 0), /* 78 */
353 BYTES(0, 0, 0, 0), /* 79 */
354 BYTES(0, 0, 0, 0), /* 7A */
355 BYTES(0, 0, 0, 0), /* 7B */
356 BYTES(0, 0, 0, 0), /* 7C */
357 BYTES(0, 0, 0, 0), /* 7D */
358 BYTES(0, 0, 0, 0), /* 7E */
359 BYTES(0, 0, 0, 0), /* 7F */
364 #define SETBITS(b0, b1, b2, b3, b4, b5, b6, b7) \
365 (b0<<0)|(b1<<1)|(b2<<2)|(b3<<3)|(b4<<4)|(b5<<5)|(b6<<6)|(b7<<7)
367 STATIC CONST UBYTE locapsable
[] =
369 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 00 - 07 */
370 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 08 - 0F */
372 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
373 SETBITS(1, 1, 0, 0, 0, 0, 0, 0), /* 18 - 1F */
375 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
376 SETBITS(1, 0, 0, 0, 0, 0, 0, 0), /* 28 - 2F */
378 SETBITS(0, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
379 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 38 - 3F */
382 STATIC CONST UBYTE hicapsable
[] =
384 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 40 - 47 */
385 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 48 - 4F */
387 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
388 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 58 - 5F */
390 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
391 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
393 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
394 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */
397 STATIC CONST UBYTE lorepeatable
[] =
399 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 00 - 07 */
400 SETBITS(1, 1, 1, 1, 1, 1, 0, 1), /* 08 - 0F */
402 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
403 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 18 - 1F */
405 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
406 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 28 - 2F */
408 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
409 SETBITS(1, 1, 1, 0, 1, 1, 1, 1) /* 38 - 3F */
412 STATIC CONST UBYTE hirepeatable
[] =
414 SETBITS(1, 1, 1, 0, 0, 0, 1, 0), /* 40 - 47 */
415 SETBITS(1, 1, 0, 0, 1, 1, 1, 1), /* 48 - 4F */
417 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
418 SETBITS(0, 0, 1, 1, 1, 1, 1, 0), /* 58 - 5F */
420 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
421 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
423 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
424 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */