Turkish Q Standard PC105 Keymap
[AROS.git] / workbench / devs / keymaps / pc105_tr.c
blob3c043086db0d7f5391d4e0fce54d36563d44c604
1 /*
2 Copyright © 1995-2006, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Turkish Q Standard PC105 Keymap
6 Lang: English
7 */
9 #include <devices/keymap.h>
11 STATIC char keymapname[] = "pc105_tr";
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
29 #else
31 NULL, NULL, keymapname, 0, 0
33 #endif
35 (UBYTE *)lokeymaptypes,
36 (IPTR *)lokeymap,
37 (UBYTE *)locapsable,
38 (UBYTE *)lorepeatable,
39 (UBYTE *)hikeymaptypes,
40 (IPTR *)hikeymap,
41 (UBYTE *)hicapsable,
42 (UBYTE *)hirepeatable
46 #undef N
47 #undef S
48 #undef A
49 #undef C
50 #undef D
51 #undef V
52 #undef ST
53 #undef NOP
55 #define N KC_NOQUAL
56 #define S KCF_SHIFT
57 #define A KCF_ALT
58 #define C KCF_CONTROL
59 #define D KCF_DEAD
60 #define V KC_VANILLA
61 #define ST KCF_STRING
62 #define NOP KCF_NOP
64 #define EUR 0xA4 /* ISO 8859-15: Euro = 164 = 0xA4) */
66 STATIC CONST UBYTE lokeymaptypes[] =
69 S|A, /* 00 */
70 S|A, /* 01 */
71 S|A, /* 02 */
72 S|A, /* 03 */
73 S|A, /* 04 */
74 S|A, /* 05 */
75 S, /* 06 */
76 S|A, /* 07 */
77 S|A, /* 08 */
78 S|A, /* 09 */
79 S|A, /* 0A */
80 S|A, /* 0B */
81 S|A, /* 0C */
82 S, /* 0D */
83 N, /* 0E */
84 S|A, /* 0F */
85 S|A, /* 10 q */
86 V, /* 11 w */
87 S|A, /* 12 e */
88 V, /* 13 r */
89 V, /* 14 t */
90 V, /* 15 z */
91 V, /* 16 u */
92 V, /* 17 i */
93 V, /* 18 o */
94 V, /* 19 p */
95 S|A, /* 1A */
96 S|A, /* 1B */
97 S|A, /* 1C */
98 S|A, /* 1D */
99 S|A, /* 1E */
100 S|A, /* 1F */
101 S|A, /* 20 a */
102 S|A, /* 21 s */
103 V, /* 22 d */
104 V, /* 23 f */
105 V, /* 24 g */
106 V, /* 25 h */
107 V, /* 26 j */
108 V, /* 27 k */
109 V, /* 28 l */
110 S|A, /* 29 */
111 S, /* 2A */
112 S|A, /* 2B */
113 N, /* 2C */
114 N, /* 2D */
115 N, /* 2E */
116 N, /* 2F */
117 S|A, /* 30 */
118 V, /* 31 y */
119 V, /* 32 x */
120 S|A, /* 33 c */
121 V, /* 34 v */
122 V, /* 35 b */
123 V, /* 36 n */
124 V, /* 37 m */
125 S|A, /* 38 */
126 S|A, /* 39 */
127 S, /* 3A */
128 N, /* 3B */
129 N, /* 3C */
130 N, /* 3D */
131 N, /* 3E */
132 N, /* 3F */
135 STATIC CONST UBYTE hikeymaptypes[] =
137 N, /* 40 SPACE */
138 N, /* 41 BACKSPACE */
139 ST|S, /* 42 TAB */
140 N, /* 43 ENTER */
141 C, /* 44 RETURN */
142 A, /* 45 ESCAPE */
143 N, /* 46 DEL */
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 */
153 ST|S, /* 50 F1 */
154 ST|S, /* 51 F2 */
155 ST|S, /* 52 F3 */
156 ST|S, /* 53 F4 */
157 ST|S, /* 54 F5 */
158 ST|S, /* 55 F6 */
159 ST|S, /* 56 F7 */
160 ST|S, /* 57 F8 */
161 ST|S, /* 58 F9 */
162 ST|S, /* 59 F10 */
163 NOP, /* 5A NUMLOCK */
164 N, /* 5B NUMPAD ) */
165 N, /* 5C NUMPAD / */
166 N, /* 5D NUMPAD * */
167 N, /* 5E NUMPAD + */
168 ST, /* 5F HELP */
169 NOP, /* 60 LEFT SHIFT*/
170 NOP, /* 61 RIGHT SHIFT */
171 NOP, /* 62 CAPS LOCK */
172 NOP, /* 63 CONTROL */
173 NOP, /* 64 LALT */
174 NOP, /* 65 RALT */
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 */
180 NOP, /* 6B */
181 NOP, /* 6C */
182 NOP, /* 6D */
183 ST|A, /* 6E PAUSE/BREAK ??*/
184 ST|S, /* 6F F12 ?? */
185 ST|C, /* 70 HOME ?? */
186 ST|C, /* 71 END ?? */
187 NOP, /* 72 */
188 NOP, /* 73 */
189 NOP, /* 74 */
190 NOP, /* 75 */
191 NOP, /* 76 */
192 NOP, /* 77 */
193 NOP, /* 78 */
194 NOP, /* 79 */
195 NOP, /* 7A */
196 NOP, /* 7B */
197 NOP, /* 7C */
198 NOP, /* 7D */
199 NOP, /* 7E */
200 NOP /* 7F */
203 #undef N
204 #undef S
205 #undef A
206 #undef C
207 #undef D
208 #undef V
209 #undef ST
210 #undef NOP
212 #undef STRING
213 #undef DEAD
214 #undef BYTES
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[] =
224 /*---- 1st QWERTY row - 0x00 to 0x0F */
225 BYTES('é' ,'<' ,'é' ,'"' ),
226 BYTES('!' ,'>' ,'!' ,'1' ),
227 BYTES('\'',0xA3,'\'','2' ),
228 BYTES('#' ,'#' ,'^' ,'3' ),
229 BYTES('$' ,'$' ,'+' ,'4' ),
230 BYTES('%' ,0xBD,'%' ,'5' ),
231 BYTES('&' ,'6' ,'&' ,'6' ),
232 BYTES('{' ,'{' ,'/' ,'7' ),
233 BYTES('[' ,'[' ,'(' ,'8' ),
234 BYTES(']' ,']' ,')' ,'9' ),
235 BYTES('}' ,'}' ,'=' ,'0' ),
236 BYTES('?' ,'\\','?' ,'*' ),
237 BYTES('|' ,'|' ,'_' ,'-' ),
238 BYTES(0, 0, 0, 0 ),
239 BYTES(0, 0, 0, 0 ),
240 BYTES('0', '0', '0', '0' ),
241 /*---- 2nd QWERTY row - 0x10 to 0x1F */
242 BYTES('@' ,'@' ,'Q' ,'q' ),
243 BYTES('W' ,'w' ,'W' ,'w' ),
244 BYTES('E' ,EUR ,'E' ,'e' ),
245 BYTES('R' ,0xAE,'R' ,'r' ),
246 BYTES('T' ,'t' ,'T' ,'t' ),
247 BYTES('Y' ,'y' ,'Y' ,'y' ),
248 BYTES('U' ,'u' ,'U' ,'u' ),
249 BYTES(0xDD,0xFD,'I' ,0xFD),
250 BYTES('O' ,'o' ,'O' ,'o' ),
251 BYTES('P' ,'p' ,'P' ,'p' ),
252 BYTES(0xA8,0xA8,0xD0,0xF0),
253 BYTES(0x7E,0x7E,0xDC,0xFC),
254 BYTES(0 ,0 ,0 , 0 ),
255 BYTES('1', '1', '1', '1'),
256 BYTES('2', '2', '2', '2'),
257 BYTES('3', '3', '3', '3'),
258 /*---- 3rd QWERTY row - 0x20 to 0x2F */
259 BYTES(0xC6,0xE6,'A' ,'a' ),
260 BYTES('S' ,0xDF,'S' ,'s' ),
261 BYTES('D' ,'d' ,'D' ,'d' ),
262 BYTES('F' ,'f' ,'F' ,'f' ),
263 BYTES('G' ,'g' ,'G' ,'g' ),
264 BYTES('H' ,'h' ,'H' ,'h' ),
265 BYTES('J' ,'j' ,'J' ,'j' ),
266 BYTES('K' ,'k' ,'K' ,'k' ),
267 BYTES('L' ,'l' ,'L' ,'l' ),
268 BYTES(0xB4,0xB4,0xDE,0xFE),
269 BYTES(0xDD,'i' ,0xDD,'i' ),
270 BYTES('`' ,'`' ,';' ,',' ),
271 BYTES(0, 0, 0, 0 ),
272 BYTES('4', '4', '4', '4'),
273 BYTES('5', '5', '5', '5'),
274 BYTES('6', '6', '6', '6'),
275 /*---- 4th QWERTY row - 0x30 to 0x3F */
276 BYTES('>' ,'|' ,'>' ,'<' ),
277 BYTES('Z' ,'z' ,'Z' ,'z' ),
278 BYTES('X' ,'x' ,'X' ,'x' ),
279 BYTES('C' ,0xA9,'C' ,'c' ),
280 BYTES('V' ,'v' ,'V' ,'v' ),
281 BYTES('B' ,'b' ,'B' ,'b' ),
282 BYTES('N' ,'n' ,'N' ,'n' ),
283 BYTES('M' ,'m' ,'M' ,'m' ),
284 BYTES(0xD6,0xF6,0xD6,0xF6),
285 BYTES(0xC7,0xE7,0xC7,0xE7),
286 BYTES(':' ,'.' ,':' ,'.' ),
287 BYTES(0, 0, 0, 0 ),
288 BYTES(',', ',', ',', ','),
289 BYTES('7', '7', '7', '7'),
290 BYTES('8', '8', '8', '8'),
291 BYTES('9', '9', '9', '9'),
294 #include "standard.h"
296 STATIC CONST IPTR hikeymap[] =
298 BYTES(' ', ' ', ' ', ' '), /* 40 */
299 BYTES(8, 8, 8, 8), /* 41 BACKSPACE*/
300 STRING(tab_descr), /* 42 TAB */
301 BYTES(13, 13, 13, 13), /* 43 ENTER */
302 BYTES(0, 0, 10, 13), /* 44 RETURN */
303 BYTES(0, 0, 0x9B, 27), /* 45 ESCAPE */
304 BYTES(127, 127, 127, 127), /* 46 DEL */
305 STRING(insert_descr), /* 47 INSERT ?? */
306 STRING(pageup_descr), /* 48 PAGEUP ?? */
307 STRING(pagedown_descr), /* 49 PAGEDOWN ?? */
308 BYTES('-', '-', '-', '-'), /* 4A NUMPAD - */
309 STRING(f11_descr), /* 4B F11 ?? */
310 STRING(up_descr), /* 4C CURSOR UP*/
311 STRING(down_descr), /* 4D CURSOR DOWN*/
312 STRING(right_descr), /* 4E CURSOR RIGHT */
313 STRING(left_descr), /* 4F CURSOR LEFT */
314 STRING(f1_descr), /* 50 F1 */
315 STRING(f2_descr), /* 51 */
316 STRING(f3_descr), /* 52 */
317 STRING(f4_descr), /* 53 */
318 STRING(f5_descr), /* 54 */
319 STRING(f6_descr), /* 55 */
320 STRING(f7_descr), /* 56 */
321 STRING(f8_descr), /* 57 */
322 STRING(f9_descr), /* 58 */
323 STRING(f10_descr), /* 59 */
324 BYTES(0, 0, 0, 0), /* 5A */
325 BYTES(0, 0, 0, 0), /* 5B */
326 BYTES('/', '/', '/', '/'), /* 5C */
327 BYTES('*', '*', '*', '*'), /* 5D */
328 BYTES('+', '+', '+', '+'), /* 5E */
329 STRING(help_descr), /* 5F HELP */
330 BYTES(0, 0, 0, 0), /* 60 */
331 BYTES(0, 0, 0, 0), /* 61 */
332 BYTES(0, 0, 0, 0), /* 62 */
333 BYTES(0, 0, 0, 0), /* 63 */
334 BYTES(0, 0, 0, 0), /* 64 */
335 BYTES(0, 0, 0, 0), /* 65 */
336 BYTES(0, 0, 0, 0), /* 66 */
337 BYTES(0, 0, 0, 0), /* 67 */
338 BYTES(0, 0, 0, 0), /* 68 */
339 BYTES(0, 0, 0, 0), /* 69 */
340 BYTES(0, 0, 0, 0), /* 6A */
341 BYTES(0, 0, 0, 0), /* 6B */
342 BYTES(0, 0, 0, 0), /* 6C */
343 BYTES(0, 0, 0, 0), /* 6D */
344 STRING(pausebreak_descr), /* 6E PAUSE/BREAK ?? */
345 STRING(f12_descr), /* 6F F12 ?? */
346 STRING(home_descr), /* 70 HOME ?? */
347 STRING(end_descr), /* 71 END ?? */
348 BYTES(0, 0, 0, 0), /* 72 */
349 BYTES(0, 0, 0, 0), /* 73 */
350 BYTES(0, 0, 0, 0), /* 74 */
351 BYTES(0, 0, 0, 0), /* 75 */
352 BYTES(0, 0, 0, 0), /* 76 */
353 BYTES(0, 0, 0, 0), /* 77 */
354 BYTES(0, 0, 0, 0), /* 78 */
355 BYTES(0, 0, 0, 0), /* 79 */
356 BYTES(0, 0, 0, 0), /* 7A */
357 BYTES(0, 0, 0, 0), /* 7B */
358 BYTES(0, 0, 0, 0), /* 7C */
359 BYTES(0, 0, 0, 0), /* 7D */
360 BYTES(0, 0, 0, 0), /* 7E */
361 BYTES(0, 0, 0, 0), /* 7F */
364 #undef SETBITS
366 #define SETBITS(b0, b1, b2, b3, b4, b5, b6, b7) \
367 (b0<<0)|(b1<<1)|(b2<<2)|(b3<<3)|(b4<<4)|(b5<<5)|(b6<<6)|(b7<<7)
369 STATIC CONST UBYTE locapsable[] =
371 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 00 - 07 */
372 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 08 - 0F */
374 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
375 SETBITS(1, 1, 1, 1, 0, 0, 0, 0), /* 18 - 1F */
377 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
378 SETBITS(1, 1, 1, 0, 0, 0, 0, 0), /* 28 - 2F */
380 SETBITS(0, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
381 SETBITS(1, 1, 0, 0, 0, 0, 0, 0) /* 38 - 3F */
384 STATIC CONST UBYTE hicapsable[] =
386 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 40 - 47 */
387 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 48 - 4F */
389 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
390 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 58 - 5F */
392 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
393 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
395 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
396 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */
399 STATIC CONST UBYTE lorepeatable[] =
401 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 00 - 07 */
402 SETBITS(1, 1, 1, 1, 1, 1, 0, 1), /* 08 - 0F */
404 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
405 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 18 - 1F */
407 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
408 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 28 - 2F */
410 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
411 SETBITS(1, 1, 1, 0, 1, 1, 1, 1) /* 38 - 3F */
414 STATIC CONST UBYTE hirepeatable[] =
416 SETBITS(1, 1, 1, 0, 0, 0, 1, 0), /* 40 - 47 */
417 SETBITS(1, 1, 0, 0, 1, 1, 1, 1), /* 48 - 4F */
419 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
420 SETBITS(0, 0, 1, 1, 1, 1, 1, 0), /* 58 - 5F */
422 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
423 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
425 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
426 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */