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