1 // Kbdur_Ucranian_pkf.txt
3 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
6 Desc: Ukranian PC105 Keymap
12 DEFINE_KEYMAP("pc105_ua")
32 #define EUR 0xA4 /* ISO 8859-15: Euro = 164 = 0xA4) */
34 STATIC CONST UBYTE lokeymaptypes
[] =
102 STATIC CONST UBYTE hikeymaptypes
[] =
105 N
, /* 41 BACKSPACE */
111 ST
|S
, /* 47 INSERT ?? */
112 ST
|S
, /* 48 PAGE UP ?? */
113 ST
|S
, /* 49 PAGE DOWN ?? */
114 N
, /* 4A NUMERIC PAD - */
115 ST
|S
, /* 4B F11 ?? */
116 ST
|S
, /* 4C CURSORUP*/
117 ST
|S
, /* 4D CURSORDOWN */
118 ST
|S
, /* 4E CURSORRIGHT */
119 ST
|S
, /* 4F CURSORLEFT */
130 NOP
, /* 5A NUMLOCK */
136 NOP
, /* 60 LEFT SHIFT*/
137 NOP
, /* 61 RIGHT SHIFT */
138 NOP
, /* 62 CAPS LOCK */
139 NOP
, /* 63 CONTROL */
142 NOP
, /* 66 LCOMMAND */
143 NOP
, /* 67 RCOMMAND */
144 NOP
, /* 68 LEFT MOUSE BUTTON*/
145 NOP
, /* 69 RIGHT MOUSE BUTTON */
146 NOP
, /* 6A MIDDLE MOUSE BUTTON */
150 ST
|A
, /* 6E PAUSE/BREAK ??*/
151 ST
|S
, /* 6F F12 ?? */
152 ST
|C
, /* 70 HOME ?? */
153 ST
|C
, /* 71 END ?? */
183 #define STRING(x) (IPTR)x
184 #define DEAD(x) (IPTR)x
185 #define BYTES(b0, b1, b2, b3) \
186 (((UBYTE)b0)<<24) | (((UBYTE)b1)<<16) | (((UBYTE)b2)<<8) | (((UBYTE)b3)<<0)
188 STATIC CONST IPTR lokeymap
[] =
190 /*---- 1st QWERTY row - 0x00 to 0x0F */
191 BYTES(0xA8,0xA8,0xA8,0xB8),
192 BYTES('!' ,'!' ,'!' ,'1' ),
193 BYTES(0x22,0x22,0x22,'2' ),
194 BYTES(0xB9,0xB9,0xB9,'3' ),
195 BYTES(';' ,';' ,';' ,'4' ),
196 BYTES('%' ,'%' ,'%' ,'5' ),
197 BYTES(':' ,':' ,':' ,'6' ),
198 BYTES('?' ,'?' ,'?' ,'7' ),
199 BYTES('*' ,'*' ,'*' ,'8' ),
200 BYTES('{' ,'[' ,'(' ,'9' ),
201 BYTES('}' ,']' ,')' ,'0' ),
202 BYTES('_' ,'-' ,'_' ,'-' ),
203 BYTES('+' ,'=' ,'+' ,'=' ),
204 BYTES(0xA8,0xA8,0xA8,0xB8),
206 BYTES('0', '0', '0', '0'),
207 /*---- 2nd QWERTY row - 0x10 to 0x1F */
208 BYTES('Q' ,'q' ,0xC9,0xE9),
209 BYTES('W' ,'w' ,0xD6,0xF6),
210 BYTES('E' ,'e' ,0xD3,0xF3),
211 BYTES('R' ,'r' ,0xCA,0xEA),
212 BYTES('T' ,'t' ,0xC5,0xE5),
213 BYTES('Y' ,'y' ,0xCD,0xED),
214 BYTES(0xA5,0xB4,0xC3,0xE3),
215 BYTES('I' ,'i' ,0xD8,0xF8),
216 BYTES('O' ,'o' ,0xD9,0xF9),
217 BYTES('P' ,'p' ,0xC7,0xE7),
218 BYTES(0xD5,0xF5,0xD5,0xF5),
219 BYTES(0xAF,0xBF,0xAF,0xBF),
221 BYTES('1', '1', '1', '1'),
222 BYTES('2', '2', '2', '2'),
223 BYTES('3', '3', '3', '3'),
224 /*---- 3rd QWERTY row - 0x20 to 0x2F */
225 BYTES('A' ,'a' ,0xD4,0xF4),
226 BYTES('S' ,'s' ,0xB2,0xB3),
227 BYTES('D' ,'d' ,0xC2,0xE2),
228 BYTES('F' ,'f' ,0xC0,0xE0),
229 BYTES('G' ,'g' ,0xCF,0xEF),
230 BYTES('H' ,'h' ,0xD0,0xF0),
231 BYTES('J' ,'j' ,0xCE,0xEE),
232 BYTES('K' ,'k' ,0xCB,0xEB),
233 BYTES('L' ,'l' ,0xC4,0xE4),
234 BYTES('U' ,'u' ,0xC6,0xE6),
235 BYTES(0xAA,0xBA,0xAA,0xBA),
236 BYTES(0x2F,0x5C,0x2F,0x5C),
238 BYTES('4', '4', '4', '4'),
239 BYTES('5', '5', '5', '5'),
240 BYTES('6', '6', '6', '6'),
241 /*---- 4th QWERTY row - 0x30 to 0x3F */
242 BYTES(0xA5,0xB4,0xA5,0xB4),
243 BYTES('Z' ,'z' ,0xDF,0xFF),
244 BYTES('X' ,'x' ,0xD7,0xF7),
245 BYTES('C' ,'c' ,0xD1,0xF1),
246 BYTES('V' ,'v' ,0xCC,0xEC),
247 BYTES('B' ,'b' ,0xC8,0xE8),
248 BYTES('N' ,'n' ,0xD2,0xF2),
249 BYTES('M' ,'m' ,0xDC,0xFC),
250 BYTES(0xC1,0xE1,0xC1,0xE1),
251 BYTES(0xDE,0xFE,0xDE,0xFE),
252 BYTES(',' ,'.' ,',' ,'.' ),
254 BYTES(',', '.', ',', '.'),
255 BYTES('7', '7', '7', '7'),
256 BYTES('8', '8', '8', '8'),
257 BYTES('9', '9', '9', '9'),
260 #include "standard.h"
262 STATIC CONST IPTR hikeymap
[] =
264 BYTES(' ', ' ', ' ', ' '), /* 40 */
265 BYTES(8, 8, 8, 8), /* 41 BACKSPACE*/
266 STRING(tab_descr
), /* 42 TAB */
267 BYTES(13, 13, 13, 13), /* 43 ENTER */
268 BYTES(0, 0, 10, 13), /* 44 RETURN */
269 BYTES(0, 0, 0x9B, 27), /* 45 ESCAPE */
270 BYTES(127, 127, 127, 127), /* 46 DEL */
271 STRING(insert_descr
), /* 47 INSERT ?? */
272 STRING(pageup_descr
), /* 48 PAGEUP ?? */
273 STRING(pagedown_descr
), /* 49 PAGEDOWN ?? */
274 BYTES('-', '-', '-', '-'), /* 4A NUMPAD - */
275 STRING(f11_descr
), /* 4B F11 ?? */
276 STRING(up_descr
), /* 4C CURSOR UP*/
277 STRING(down_descr
), /* 4D CURSOR DOWN*/
278 STRING(right_descr
), /* 4E CURSOR RIGHT */
279 STRING(left_descr
), /* 4F CURSOR LEFT */
280 STRING(f1_descr
), /* 50 F1 */
281 STRING(f2_descr
), /* 51 */
282 STRING(f3_descr
), /* 52 */
283 STRING(f4_descr
), /* 53 */
284 STRING(f5_descr
), /* 54 */
285 STRING(f6_descr
), /* 55 */
286 STRING(f7_descr
), /* 56 */
287 STRING(f8_descr
), /* 57 */
288 STRING(f9_descr
), /* 58 */
289 STRING(f10_descr
), /* 59 */
290 BYTES(0, 0, 0, 0), /* 5A */
291 BYTES('/', '/', '/', '/'), /* 5B */
292 BYTES('*', '*', '*', '*'), /* 5C */
293 BYTES('-', '-', '-', '-'), /* 5D */
294 BYTES('+', '+', '+', '+'), /* 5E */
295 STRING(help_descr
), /* 5F HELP */
296 BYTES(0, 0, 0, 0), /* 60 */
297 BYTES(0, 0, 0, 0), /* 61 */
298 BYTES(0, 0, 0, 0), /* 62 */
299 BYTES(0, 0, 0, 0), /* 63 */
300 BYTES(0, 0, 0, 0), /* 64 */
301 BYTES(0, 0, 0, 0), /* 65 */
302 BYTES(0, 0, 0, 0), /* 66 */
303 BYTES(0, 0, 0, 0), /* 67 */
304 BYTES(0, 0, 0, 0), /* 68 */
305 BYTES(0, 0, 0, 0), /* 69 */
306 BYTES(0, 0, 0, 0), /* 6A */
307 BYTES(0, 0, 0, 0), /* 6B */
308 BYTES(0, 0, 0, 0), /* 6C */
309 BYTES(0, 0, 0, 0), /* 6D */
310 STRING(pausebreak_descr
), /* 6E PAUSE/BREAK ?? */
311 STRING(f12_descr
), /* 6F F12 ?? */
312 STRING(home_descr
), /* 70 HOME ?? */
313 STRING(end_descr
), /* 71 END ?? */
314 BYTES(0, 0, 0, 0), /* 72 */
315 BYTES(0, 0, 0, 0), /* 73 */
316 BYTES(0, 0, 0, 0), /* 74 */
317 BYTES(0, 0, 0, 0), /* 75 */
318 BYTES(0, 0, 0, 0), /* 76 */
319 BYTES(0, 0, 0, 0), /* 77 */
320 BYTES(0, 0, 0, 0), /* 78 */
321 BYTES(0, 0, 0, 0), /* 79 */
322 BYTES(0, 0, 0, 0), /* 7A */
323 BYTES(0, 0, 0, 0), /* 7B */
324 BYTES(0, 0, 0, 0), /* 7C */
325 BYTES(0, 0, 0, 0), /* 7D */
326 BYTES(0, 0, 0, 0), /* 7E */
327 BYTES(0, 0, 0, 0), /* 7F */
332 #define SETBITS(b0, b1, b2, b3, b4, b5, b6, b7) \
333 (b0<<0)|(b1<<1)|(b2<<2)|(b3<<3)|(b4<<4)|(b5<<5)|(b6<<6)|(b7<<7)
335 STATIC CONST UBYTE locapsable
[] =
337 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 00 - 07 */
338 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 08 - 0F */
340 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
341 SETBITS(1, 1, 1, 1, 0, 0, 0, 0), /* 18 - 1F */
343 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
344 SETBITS(1, 1, 1, 0, 0, 0, 0, 0), /* 28 - 2F */
346 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
347 SETBITS(1, 1, 0, 0, 0, 0, 0, 0) /* 38 - 3F */
350 STATIC CONST UBYTE hicapsable
[] =
352 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 40 - 47 */
353 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 48 - 4F */
355 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
356 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 58 - 5F */
358 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
359 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
361 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
362 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */
365 STATIC CONST UBYTE lorepeatable
[] =
367 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 00 - 07 */
368 SETBITS(1, 1, 1, 1, 1, 1, 0, 1), /* 08 - 0F */
370 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
371 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 18 - 1F */
373 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
374 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 28 - 2F */
376 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
377 SETBITS(1, 1, 1, 0, 1, 1, 1, 1) /* 38 - 3F */
380 STATIC CONST UBYTE hirepeatable
[] =
382 SETBITS(1, 1, 1, 0, 0, 0, 1, 0), /* 40 - 47 */
383 SETBITS(1, 1, 0, 0, 1, 1, 1, 1), /* 48 - 4F */
385 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
386 SETBITS(0, 0, 1, 1, 1, 1, 1, 0), /* 58 - 5F */
388 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
389 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
391 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
392 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */