1 // Kbdru_Russian_pkf.txt
3 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
6 Desc: Russian PC105 Keymap
10 #include <devices/keymap.h>
12 STATIC
char keymapname
[] = "pc105_rus";
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
[] =
135 STATIC CONST UBYTE hikeymaptypes
[] =
138 N
, /* 41 BACKSPACE */
144 ST
|S
, /* 47 INSERT ?? */
145 ST
|S
, /* 48 PAGE UP ?? */
146 ST
|S
, /* 49 PAGE DOWN ?? */
147 N
, /* 4A NUMERIC PAD - */
148 ST
|S
, /* 4B F11 ?? */
149 ST
|S
, /* 4C CURSORUP*/
150 ST
|S
, /* 4D CURSORDOWN */
151 ST
|S
, /* 4E CURSORRIGHT */
152 ST
|S
, /* 4F CURSORLEFT */
163 NOP
, /* 5A NUMLOCK */
169 NOP
, /* 60 LEFT SHIFT*/
170 NOP
, /* 61 RIGHT SHIFT */
171 NOP
, /* 62 CAPS LOCK */
172 NOP
, /* 63 CONTROL */
175 NOP
, /* 66 LCOMMAND */
176 NOP
, /* 67 RCOMMAND */
177 NOP
, /* 68 LEFT MOUSE BUTTON*/
178 NOP
, /* 69 RIGHT MOUSE BUTTON */
179 NOP
, /* 6A MIDDLE MOUSE BUTTON */
183 ST
|A
, /* 6E PAUSE/BREAK ??*/
184 ST
|S
, /* 6F F12 ?? */
185 ST
|C
, /* 70 HOME ?? */
186 ST
|C
, /* 71 END ?? */
216 #define STRING(x) (IPTR)x
217 #define DEAD(x) (IPTR)x
218 #define BYTES(b0, b1, b2, b3) \
219 (((UBYTE)b0)<<24) | (((UBYTE)b1)<<16) | (((UBYTE)b2)<<8) | (((UBYTE)b3)<<0)
221 STATIC CONST IPTR lokeymap
[] =
223 /*---- 1st QWERTY row - 0x00 to 0x0F */
224 BYTES(0xA6,0x7E,0xA8,0xB8),
225 BYTES(0xB9,0xB1,'!' ,'1' ),
226 BYTES(0xB2,'@' ,0x22,'2' ),
227 BYTES(0xB3,0xA1,0xB9,'3' ),
228 BYTES(0xBC,'$' ,';' ,'4' ),
229 BYTES(0xBD,0xBF,'%' ,'5' ),
230 BYTES(0xBE,0x5E,':' ,'6' ),
231 BYTES(0x83,'&' ,'?' ,'7' ),
232 BYTES(0xAB,0x8B,'*' ,'8' ),
233 BYTES(0xBB,0x9B,'(' ,'9' ),
234 BYTES(0x84,0x82,')' ,'0' ),
235 BYTES(0x93,0x91,'_' ,'-' ),
236 BYTES(0x94,0x92,'+' ,'=' ),
237 BYTES(0xA6,0x7E,0xA8,0xB8),
239 BYTES('0', '0', '0', '0'),
240 /*---- 2nd QWERTY row - 0x10 to 0x1F */
241 BYTES('Q' ,'q' ,0xC9,0xE9),
242 BYTES('W' ,'w' ,0xD6,0xF6),
243 BYTES('E' ,'e' ,0xD3,0xF3),
244 BYTES('R' ,'r' ,0xCA,0xEA),
245 BYTES('T' ,'t' ,0xC5,0xE5),
246 BYTES('Y' ,'y' ,0xCD,0xED),
247 BYTES('U' ,'u' ,0xC3,0xE3),
248 BYTES('I' ,'i' ,0xD8,0xF8),
249 BYTES('O' ,'o' ,0xD9,0xF9),
250 BYTES('P' ,'p' ,0xC7,0xE7),
251 BYTES('{' ,'[' ,0xD5,0xF5),
252 BYTES('}' ,']' ,0xDA,0xFA),
254 BYTES('1', '1', '1', '1'),
255 BYTES('2', '2', '2', '2'),
256 BYTES('3', '3', '3', '3'),
257 /*---- 3rd QWERTY row - 0x20 to 0x2F */
258 BYTES('A' ,'a' ,0xD4,0xF4),
259 BYTES('S' ,'s' ,0xDB,0xFB),
260 BYTES('D' ,'d' ,0xC2,0xE2),
261 BYTES('F' ,'f' ,0xC0,0xE0),
262 BYTES('G' ,'g' ,0xCF,0xEF),
263 BYTES('H' ,'h' ,0xD0,0xF0),
264 BYTES('J' ,'j' ,0xCE,0xEE),
265 BYTES('K' ,'k' ,0xCB,0xEB),
266 BYTES('L' ,'l' ,0xC4,0xE4),
267 BYTES(':' ,';' ,0xC6,0xE6),
268 BYTES(0x22,0x27,0xDD,0xFD),
269 BYTES(0x7C,0x5C,0x2F,0x5C),
271 BYTES('4', '4', '4', '4'),
272 BYTES('5', '5', '5', '5'),
273 BYTES('6', '6', '6', '6'),
274 /*---- 4th QWERTY row - 0x30 to 0x3F */
275 BYTES('>' ,'<' ,0x7C,0x5C),
276 BYTES('Z' ,'z' ,0xDF,0xFF),
277 BYTES('X' ,'x' ,0xD7,0xF7),
278 BYTES('C' ,'c' ,0xD1,0xF1),
279 BYTES('V' ,'v' ,0xCC,0xEC),
280 BYTES('B' ,'b' ,0xC8,0xE8),
281 BYTES('N' ,'n' ,0xD2,0xF2),
282 BYTES('M' ,'m' ,0xDC,0xFC),
283 BYTES('<' ,',' ,0xC1,0xE1),
284 BYTES('>' ,'.' ,0xDE,0xFE),
285 BYTES('?' ,0x2F,',' ,'.' ),
287 BYTES(',', '.', ',', '.'),
288 BYTES('7', '7', '7', '7'),
289 BYTES('8', '8', '8', '8'),
290 BYTES('9', '9', '9', '9'),
293 #include "standard.h"
295 STATIC CONST IPTR hikeymap
[] =
297 BYTES(' ', ' ', ' ', ' '), /* 40 */
298 BYTES(8, 8, 8, 8), /* 41 BACKSPACE*/
299 STRING(tab_descr
), /* 42 TAB */
300 BYTES(13, 13, 13, 13), /* 43 ENTER */
301 BYTES(0, 0, 10, 13), /* 44 RETURN */
302 BYTES(0, 0, 0x9B, 27), /* 45 ESCAPE */
303 BYTES(127, 127, 127, 127), /* 46 DEL */
304 STRING(insert_descr
), /* 47 INSERT ?? */
305 STRING(pageup_descr
), /* 48 PAGEUP ?? */
306 STRING(pagedown_descr
), /* 49 PAGEDOWN ?? */
307 BYTES('-', '-', '-', '-'), /* 4A NUMPAD - */
308 STRING(f11_descr
), /* 4B F11 ?? */
309 STRING(up_descr
), /* 4C CURSOR UP*/
310 STRING(down_descr
), /* 4D CURSOR DOWN*/
311 STRING(right_descr
), /* 4E CURSOR RIGHT */
312 STRING(left_descr
), /* 4F CURSOR LEFT */
313 STRING(f1_descr
), /* 50 F1 */
314 STRING(f2_descr
), /* 51 */
315 STRING(f3_descr
), /* 52 */
316 STRING(f4_descr
), /* 53 */
317 STRING(f5_descr
), /* 54 */
318 STRING(f6_descr
), /* 55 */
319 STRING(f7_descr
), /* 56 */
320 STRING(f8_descr
), /* 57 */
321 STRING(f9_descr
), /* 58 */
322 STRING(f10_descr
), /* 59 */
323 BYTES(0, 0, 0, 0), /* 5A */
324 BYTES('/', '/', '/', '/'), /* 5B */
325 BYTES('*', '*', '*', '*'), /* 5C */
326 BYTES('-', '-', '-', '-'), /* 5D */
327 BYTES('+', '+', '+', '+'), /* 5E */
328 STRING(help_descr
), /* 5F HELP */
329 BYTES(0, 0, 0, 0), /* 60 */
330 BYTES(0, 0, 0, 0), /* 61 */
331 BYTES(0, 0, 0, 0), /* 62 */
332 BYTES(0, 0, 0, 0), /* 63 */
333 BYTES(0, 0, 0, 0), /* 64 */
334 BYTES(0, 0, 0, 0), /* 65 */
335 BYTES(0, 0, 0, 0), /* 66 */
336 BYTES(0, 0, 0, 0), /* 67 */
337 BYTES(0, 0, 0, 0), /* 68 */
338 BYTES(0, 0, 0, 0), /* 69 */
339 BYTES(0, 0, 0, 0), /* 6A */
340 BYTES(0, 0, 0, 0), /* 6B */
341 BYTES(0, 0, 0, 0), /* 6C */
342 BYTES(0, 0, 0, 0), /* 6D */
343 STRING(pausebreak_descr
), /* 6E PAUSE/BREAK ?? */
344 STRING(f12_descr
), /* 6F F12 ?? */
345 STRING(home_descr
), /* 70 HOME ?? */
346 STRING(end_descr
), /* 71 END ?? */
347 BYTES(0, 0, 0, 0), /* 72 */
348 BYTES(0, 0, 0, 0), /* 73 */
349 BYTES(0, 0, 0, 0), /* 74 */
350 BYTES(0, 0, 0, 0), /* 75 */
351 BYTES(0, 0, 0, 0), /* 76 */
352 BYTES(0, 0, 0, 0), /* 77 */
353 BYTES(0, 0, 0, 0), /* 78 */
354 BYTES(0, 0, 0, 0), /* 79 */
355 BYTES(0, 0, 0, 0), /* 7A */
356 BYTES(0, 0, 0, 0), /* 7B */
357 BYTES(0, 0, 0, 0), /* 7C */
358 BYTES(0, 0, 0, 0), /* 7D */
359 BYTES(0, 0, 0, 0), /* 7E */
360 BYTES(0, 0, 0, 0), /* 7F */
365 #define SETBITS(b0, b1, b2, b3, b4, b5, b6, b7) \
366 (b0<<0)|(b1<<1)|(b2<<2)|(b3<<3)|(b4<<4)|(b5<<5)|(b6<<6)|(b7<<7)
368 STATIC CONST UBYTE locapsable
[] =
370 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 00 - 07 */
371 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 08 - 0F */
373 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
374 SETBITS(1, 1, 1, 0, 0, 0, 0, 0), /* 18 - 1F */
376 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
377 SETBITS(1, 1, 1, 0, 0, 0, 0, 0), /* 28 - 2F */
379 SETBITS(0, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
380 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 38 - 3F */
383 STATIC CONST UBYTE hicapsable
[] =
385 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 40 - 47 */
386 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 48 - 4F */
388 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
389 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 58 - 5F */
391 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
392 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
394 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
395 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */
398 STATIC CONST UBYTE lorepeatable
[] =
400 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 00 - 07 */
401 SETBITS(1, 1, 1, 1, 1, 1, 0, 1), /* 08 - 0F */
403 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
404 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 18 - 1F */
406 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
407 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 28 - 2F */
409 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
410 SETBITS(1, 1, 1, 0, 1, 1, 1, 1) /* 38 - 3F */
413 STATIC CONST UBYTE hirepeatable
[] =
415 SETBITS(1, 1, 1, 0, 0, 0, 1, 0), /* 40 - 47 */
416 SETBITS(1, 1, 0, 0, 1, 1, 1, 1), /* 48 - 4F */
418 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
419 SETBITS(0, 0, 1, 1, 1, 1, 1, 0), /* 58 - 5F */
421 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
422 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
424 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
425 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */