1 // Kbddvx_Dvorak_pkf.txt
3 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
6 Desc: Dvorak PC105 Keymap
10 #include <devices/keymap.h>
12 STATIC
char keymapname
[] = "pc105_dvx";
14 STATIC CONST UBYTE lokeymaptypes
[];
15 STATIC CONST IPTR lokeymap
[];
16 STATIC CONST UBYTE locapsable
[];
17 STATIC CONST UBYTE lorepeatable
[];
19 STATIC CONST UBYTE hikeymaptypes
[];
20 STATIC CONST IPTR hikeymap
[];
21 STATIC CONST UBYTE hicapsable
[];
22 STATIC CONST UBYTE hirepeatable
[];
24 CONST
struct KeyMapNode km
=
26 #if (AROS_FLAVOUR & AROS_FLAVOUR_BINCOMPAT)
28 NULL
, NULL
, 0, 0, keymapname
32 NULL
, NULL
, keymapname
, 0, 0
36 (UBYTE
*)lokeymaptypes
,
39 (UBYTE
*)lorepeatable
,
40 (UBYTE
*)hikeymaptypes
,
65 #define EUR 0xA4 /* ISO 8859-15: Euro = 164 = 0xA4) */
67 STATIC CONST UBYTE lokeymaptypes
[] =
136 STATIC CONST UBYTE hikeymaptypes
[] =
139 N
, /* 41 BACKSPACE */
145 ST
|S
, /* 47 INSERT ?? */
146 ST
|S
, /* 48 PAGE UP ?? */
147 ST
|S
, /* 49 PAGE DOWN ?? */
148 N
, /* 4A NUMERIC PAD - */
149 ST
|S
, /* 4B F11 ?? */
150 ST
|S
, /* 4C CURSORUP*/
151 ST
|S
, /* 4D CURSORDOWN */
152 ST
|S
, /* 4E CURSORRIGHT */
153 ST
|S
, /* 4F CURSORLEFT */
164 NOP
, /* 5A NUMLOCK */
170 NOP
, /* 60 LEFT SHIFT*/
171 NOP
, /* 61 RIGHT SHIFT */
172 NOP
, /* 62 CAPS LOCK */
173 NOP
, /* 63 CONTROL */
176 NOP
, /* 66 LCOMMAND */
177 NOP
, /* 67 RCOMMAND */
178 NOP
, /* 68 LEFT MOUSE BUTTON*/
179 NOP
, /* 69 RIGHT MOUSE BUTTON */
180 NOP
, /* 6A MIDDLE MOUSE BUTTON */
184 ST
|A
, /* 6E PAUSE/BREAK ??*/
185 ST
|S
, /* 6F F12 ?? */
186 ST
|C
, /* 70 HOME ?? */
187 ST
|C
, /* 71 END ?? */
218 #define STRING(x) (IPTR)x
219 #define DEAD(x) (IPTR)x
220 #define BYTES(b0, b1, b2, b3) \
221 (((UBYTE)b0)<<24) | (((UBYTE)b1)<<16) | (((UBYTE)b2)<<8) | (((UBYTE)b3)<<0)
223 STATIC CONST IPTR lokeymap
[] =
225 /*---- 1st QWERTY row - 0x00 to 0x0F */
226 BYTES('.' ,'.' ,0x7E,0x60),
227 BYTES(0xB9,0xA1,'!' ,'1' ),
228 BYTES(0xB2,0xB2,'@' ,'2' ),
229 BYTES(0xB3,0xB3,'#' ,'3' ),
230 BYTES(0xA3,0xA4,'$' ,'4' ),
231 BYTES(0x80,0x80,'%' ,'5' ),
232 BYTES(0xBC,0xBC,0x5E,'6' ),
233 BYTES(0xBD,0xBD,'&' ,'7' ),
234 BYTES(0xBE,0xBE,'*' ,'8' ),
235 BYTES('.' ,'.' ,'(' ,'9' ),
236 BYTES(0xA5,0xA5,')' ,'0' ),
237 BYTES(0xF7,0xD7,'{' ,'[' ),
238 BYTES(0xC4,0xE4,'}' ,']' ),
239 BYTES('.' ,'.' ,0x7E,0x60),
241 BYTES('0', '0', '0', '0'),
242 /*---- 2nd QWERTY row - 0x10 to 0x1F */
243 BYTES(0xC5,0xE5,0x22,0x27),
244 BYTES(0xC9,0xE9,'<' ,',' ),
245 BYTES(0xAE,0xAE,'>' ,'.' ),
246 BYTES(0xDE,0xFE,'P' ,'p' ),
247 BYTES(0xDC,0xFC,'Y' ,'y' ),
248 BYTES(0xDA,0xFA,'F' ,'f' ),
249 BYTES(0xCD,0xED,'G' ,'g' ),
250 BYTES(0xD3,0xF3,'C' ,'c' ),
251 BYTES(0xD6,0xF6,'R' ,'r' ),
252 BYTES(0xAB,0xAB,'L' ,'l' ),
253 BYTES(0xBB,0xBB,'?' ,0x2F),
254 BYTES(0xC1,0xE1,'+' ,'=' ),
256 BYTES('1', '1', '1', '1'),
257 BYTES('2', '2', '2', '2'),
258 BYTES('3', '3', '3', '3'),
259 /*---- 3rd QWERTY row - 0x20 to 0x2F */
260 BYTES(0xA7,0xDF,'A' ,'a' ),
261 BYTES(0xD0,0xF0,'O' ,'o' ),
262 BYTES(0xDE,0xFE,'E' ,'e' ),
263 BYTES(0x97,0x96,'U' ,'u' ),
264 BYTES(0x84,0x82,'I' ,'i' ),
265 BYTES(0x22,0x27,'D' ,'d' ),
266 BYTES(0x22,0x27,'H' ,'h' ),
267 BYTES(0xD8,0xF8,'T' ,'t' ),
268 BYTES(0xB0,0xB6,'N' ,'n' ),
269 BYTES(0xA8,0xB4,'S' ,'s' ),
270 BYTES(0xA6,0xAC,'_' ,'-' ),
271 BYTES(0x7C,0x5C,0x7C,0x5C),
273 BYTES('4', '4', '4', '4'),
274 BYTES('5', '5', '5', '5'),
275 BYTES('6', '6', '6', '6'),
276 /*---- 4th QWERTY row - 0x30 to 0x3F */
277 BYTES(0x7C,0x5C,0x7C,0x5C),
278 BYTES(0xC6,0xE6,':' ,';' ),
279 BYTES('.' ,'.' ,'Q' ,'q' ),
280 BYTES(0xA2,0xA9,'J' ,'j' ),
281 BYTES('.' ,'.' ,'K' ,'k' ),
282 BYTES(0x95,0xB7,'X' ,'x' ),
283 BYTES(0xD1,0xF1,'B' ,'b' ),
284 BYTES(0xB5,0xB5,'M' ,'m' ),
285 BYTES(0xC7,0xE7,'W' ,'w' ),
286 BYTES('.' ,'.' ,'V' ,'v' ),
287 BYTES(0xBF,0xBF,'Z' ,'z' ),
289 BYTES(',', '.', ',', '.'),
290 BYTES('7', '7', '7', '7'),
291 BYTES('8', '8', '8', '8'),
292 BYTES('9', '9', '9', '9'),
295 #include "standard.h"
297 STATIC CONST IPTR hikeymap
[] =
299 BYTES(' ', ' ', ' ', ' '), /* 40 */
300 BYTES(8, 8, 8, 8), /* 41 BACKSPACE*/
301 STRING(tab_descr
), /* 42 TAB */
302 BYTES(13, 13, 13, 13), /* 43 ENTER */
303 BYTES(0, 0, 10, 13), /* 44 RETURN */
304 BYTES(0, 0, 0x9B, 27), /* 45 ESCAPE */
305 BYTES(127, 127, 127, 127), /* 46 DEL */
306 STRING(insert_descr
), /* 47 INSERT ?? */
307 STRING(pageup_descr
), /* 48 PAGEUP ?? */
308 STRING(pagedown_descr
), /* 49 PAGEDOWN ?? */
309 BYTES('-', '-', '-', '-'), /* 4A NUMPAD - */
310 STRING(f11_descr
), /* 4B F11 ?? */
311 STRING(up_descr
), /* 4C CURSOR UP*/
312 STRING(down_descr
), /* 4D CURSOR DOWN*/
313 STRING(right_descr
), /* 4E CURSOR RIGHT */
314 STRING(left_descr
), /* 4F CURSOR LEFT */
315 STRING(f1_descr
), /* 50 F1 */
316 STRING(f2_descr
), /* 51 */
317 STRING(f3_descr
), /* 52 */
318 STRING(f4_descr
), /* 53 */
319 STRING(f5_descr
), /* 54 */
320 STRING(f6_descr
), /* 55 */
321 STRING(f7_descr
), /* 56 */
322 STRING(f8_descr
), /* 57 */
323 STRING(f9_descr
), /* 58 */
324 STRING(f10_descr
), /* 59 */
325 BYTES(0, 0, 0, 0), /* 5A */
326 BYTES('/', '/', '/', '/'), /* 5B */
327 BYTES('*', '*', '*', '*'), /* 5C */
328 BYTES('-', '-', '-', '-'), /* 5D */
329 BYTES('+', '+', '+', '+'), /* 5E */
330 STRING(help_descr
), /* 5F HELP */
331 BYTES(0, 0, 0, 0), /* 60 */
332 BYTES(0, 0, 0, 0), /* 61 */
333 BYTES(0, 0, 0, 0), /* 62 */
334 BYTES(0, 0, 0, 0), /* 63 */
335 BYTES(0, 0, 0, 0), /* 64 */
336 BYTES(0, 0, 0, 0), /* 65 */
337 BYTES(0, 0, 0, 0), /* 66 */
338 BYTES(0, 0, 0, 0), /* 67 */
339 BYTES(0, 0, 0, 0), /* 68 */
340 BYTES(0, 0, 0, 0), /* 69 */
341 BYTES(0, 0, 0, 0), /* 6A */
342 BYTES(0, 0, 0, 0), /* 6B */
343 BYTES(0, 0, 0, 0), /* 6C */
344 BYTES(0, 0, 0, 0), /* 6D */
345 STRING(pausebreak_descr
), /* 6E PAUSE/BREAK ?? */
346 STRING(f12_descr
), /* 6F F12 ?? */
347 STRING(home_descr
), /* 70 HOME ?? */
348 STRING(end_descr
), /* 71 END ?? */
349 BYTES(0, 0, 0, 0), /* 72 */
350 BYTES(0, 0, 0, 0), /* 73 */
351 BYTES(0, 0, 0, 0), /* 74 */
352 BYTES(0, 0, 0, 0), /* 75 */
353 BYTES(0, 0, 0, 0), /* 76 */
354 BYTES(0, 0, 0, 0), /* 77 */
355 BYTES(0, 0, 0, 0), /* 78 */
356 BYTES(0, 0, 0, 0), /* 79 */
357 BYTES(0, 0, 0, 0), /* 7A */
358 BYTES(0, 0, 0, 0), /* 7B */
359 BYTES(0, 0, 0, 0), /* 7C */
360 BYTES(0, 0, 0, 0), /* 7D */
361 BYTES(0, 0, 0, 0), /* 7E */
362 BYTES(0, 0, 0, 0), /* 7F */
367 #define SETBITS(b0, b1, b2, b3, b4, b5, b6, b7) \
368 (b0<<0)|(b1<<1)|(b2<<2)|(b3<<3)|(b4<<4)|(b5<<5)|(b6<<6)|(b7<<7)
370 STATIC CONST UBYTE locapsable
[] =
372 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 00 - 07 */
373 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 08 - 0F */
375 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
376 SETBITS(1, 1, 0, 0, 0, 0, 0, 0), /* 18 - 1F */
378 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
379 SETBITS(1, 0, 0, 0, 0, 0, 0, 0), /* 28 - 2F */
381 SETBITS(0, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
382 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 38 - 3F */
385 STATIC CONST UBYTE hicapsable
[] =
387 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 40 - 47 */
388 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 48 - 4F */
390 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
391 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 58 - 5F */
393 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
394 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
396 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
397 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */
400 STATIC CONST UBYTE lorepeatable
[] =
402 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 00 - 07 */
403 SETBITS(1, 1, 1, 1, 1, 1, 0, 1), /* 08 - 0F */
405 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
406 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 18 - 1F */
408 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
409 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 28 - 2F */
411 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
412 SETBITS(1, 1, 1, 0, 1, 1, 1, 1) /* 38 - 3F */
415 STATIC CONST UBYTE hirepeatable
[] =
417 SETBITS(1, 1, 1, 0, 0, 0, 1, 0), /* 40 - 47 */
418 SETBITS(1, 1, 0, 0, 1, 1, 1, 1), /* 48 - 4F */
420 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
421 SETBITS(0, 0, 1, 1, 1, 1, 1, 0), /* 58 - 5F */
423 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
424 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
426 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
427 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */