DAS  3.1.6 - 18/09/2017
KEYCODES.H
Go to the documentation of this file.
1 /*
2  * This file is part of the MGUI (Morello Graphic User Interface)
3  * library. Copyright 1995-2000 Vincenzo Morello.
4  *
5  */
6 
7 #ifndef _KEYCODES_H
8 #define _KEYCODES_H
9 
10 #ifdef X11_MGUI
11 /*
12  * Unix X-Window KeyCodes definitions
13  */
14 #include <X11/keysym.h>
15 
16 #define HOME XK_Home
17 #define ESC XK_Escape
18 #define END XK_End
19 #define TAB XK_Tab
20 #define BKS XK_BackSpace
21 #define DEL XK_Delete
22 #define RET XK_Return
23 #define ENTER XK_KP_Enter
24 #define INS XK_Insert
25 #define PAGEUP XK_Prior
26 #define PAGEDOWN XK_Next
27 #define SPACEBAR XK_space
28 
29 #define U_A XK_Up
30 #define D_A XK_Down
31 #define R_A XK_Right
32 #define L_A XK_Left
33 
34 #define C_A 0x0401
35 #define C_B 0x0402
36 #define C_C 0x0403
37 #define C_D 0x0404
38 #define C_E 0x0405
39 #define C_F 0x0406
40 #define C_G 0x0407
41 #define C_H 0x0408
42 #define C_I 0x0409
43 #define C_J 0x040a
44 #define C_K 0x040b
45 #define C_L 0x040c
46 #define C_M 0x040d
47 #define C_N 0x040e
48 #define C_O 0x040f
49 #define C_P 0x0410
50 #define C_Q 0x0411
51 #define C_R 0x0412
52 #define C_S 0x0413
53 #define C_T 0x0414
54 #define C_U 0x0415
55 #define C_V 0x0416
56 #define C_W 0x0417
57 #define C_X 0x0418
58 #define C_Y 0x0419
59 #define C_Z 0x041a
60 
61 #define A_A 0x0861
62 #define A_B 0x0862
63 #define A_C 0x0863
64 #define A_D 0x0864
65 #define A_E 0x0865
66 #define A_F 0x0866
67 #define A_G 0x0867
68 #define A_H 0x0868
69 #define A_I 0x0869
70 #define A_J 0x086a
71 #define A_K 0x086b
72 #define A_L 0x086c
73 #define A_M 0x086d
74 #define A_N 0x086e
75 #define A_O 0x086f
76 #define A_P 0x0870
77 #define A_Q 0x0871
78 #define A_R 0x0872
79 #define A_S 0x0873
80 #define A_T 0x0874
81 #define A_U 0x0875
82 #define A_V 0x0876
83 #define A_W 0x0877
84 #define A_X 0x0878
85 #define A_Y 0x0879
86 #define A_Z 0x087a
87 
88 #define F1 XK_F1
89 #define F2 XK_F2
90 #define F3 XK_F3
91 #define F4 XK_F4
92 #define F5 XK_F5
93 #define F6 XK_F6
94 #define F7 XK_F7
95 #define F8 XK_F8
96 #define F9 XK_F9
97 #define F10 XK_F10
98 #define F11 XK_F11
99 #define F12 XK_F12
100 
101 #define C_F1 (XK_F1 & 0x7fff)
102 #define C_F2 (XK_F2 & 0x7fff)
103 #define C_F3 (XK_F3 & 0x7fff)
104 #define C_F4 (XK_F4 & 0x7fff)
105 #define C_F5 (XK_F5 & 0x7fff)
106 #define C_F6 (XK_F6 & 0x7fff)
107 #define C_F7 (XK_F7 & 0x7fff)
108 #define C_F8 (XK_F8 & 0x7fff)
109 #define C_F9 (XK_F9 & 0x7fff)
110 #define C_F10 (XK_F10 & 0x7fff)
111 #define C_F11 (XK_F11 & 0x7fff)
112 #define C_F12 (XK_F12 & 0x7fff)
113 
114 #define A_1 0x0831
115 #define A_2 0x0832
116 #define A_3 0x0833
117 #define A_4 0x0834
118 #define A_5 0x0835
119 #define A_6 0x0836
120 #define A_7 0x0837
121 #define A_8 0x0838
122 #define A_9 0x0839
123 #define A_0 0x0830
124 
125 /*
126  * #elif defined DJGPP_MGUI || defined LIBGRX && (defined __TURBOC__ || defined __WATCOMC__)
127  */
128 
129 #elif defined LIBGRX && defined __linux__
130 /*
131  * GRX keycodes (prevent unuseful include grx20.h)
132  */
133 #ifndef __GRX20_H_INCLUDED__
134 #define __GRX20_H_INCLUDED__
135 #endif
136 #include "grxkeys.h"
137 
138 #define HOME GrKey_Home
139 #define ESC GrKey_Escape
140 #define END GrKey_End
141 #define TAB (GrKey_Tab|0x1000)
142 
143 #define BKS (GrKey_BackSpace|0x1000)
144 #define DEL GrKey_Delete
145 #define RET (GrKey_Return|0x1000)
146 #define ENTER 0xe00d
147 #define INS GrKey_Insert
148 #define PAGEUP GrKey_PageUp
149 #define PAGEDOWN GrKey_PageDown
150 #define SPACEBAR GrKey_Space
151 
152 #define U_A GrKey_Up
153 #define D_A GrKey_Down
154 #define R_A GrKey_Right
155 #define L_A GrKey_Left
156 
157 #define C_A GrKey_Control_A
158 #define C_B GrKey_Control_B
159 #define C_C GrKey_Control_C
160 #define C_D GrKey_Control_D
161 #define C_E GrKey_Control_E
162 #define C_F GrKey_Control_F
163 #define C_G GrKey_Control_G
164 #define C_H GrKey_Control_H
165 #define C_I GrKey_Control_I
166 #define C_J GrKey_Control_J
167 #define C_K GrKey_Control_K
168 #define C_L GrKey_Control_L
169 #define C_M GrKey_Control_M
170 #define C_N GrKey_Control_N
171 #define C_O GrKey_Control_O
172 #define C_P GrKey_Control_P
173 #define C_Q GrKey_Control_Q
174 #define C_R GrKey_Control_R
175 #define C_S GrKey_Control_S
176 #define C_T GrKey_Control_T
177 #define C_U GrKey_Control_U
178 #define C_V GrKey_Control_V
179 #define C_W GrKey_Control_W
180 #define C_X GrKey_Control_X
181 #define C_Y GrKey_Control_Y
182 #define C_Z GrKey_Control_Z
183 
184 #define A_A GrKey_Alt_A
185 #define A_B GrKey_Alt_B
186 #define A_C GrKey_Alt_C
187 #define A_D GrKey_Alt_D
188 #define A_E GrKey_Alt_E
189 #define A_F GrKey_Alt_F
190 #define A_G GrKey_Alt_G
191 #define A_H GrKey_Alt_H
192 #define A_I GrKey_Alt_I
193 #define A_J GrKey_Alt_J
194 #define A_K GrKey_Alt_K
195 #define A_L GrKey_Alt_L
196 #define A_M GrKey_Alt_M
197 #define A_N GrKey_Alt_N
198 #define A_O GrKey_Alt_O
199 #define A_P GrKey_Alt_P
200 #define A_Q GrKey_Alt_Q
201 #define A_R GrKey_Alt_R
202 #define A_S GrKey_Alt_S
203 #define A_T GrKey_Alt_T
204 #define A_U GrKey_Alt_U
205 #define A_V GrKey_Alt_V
206 #define A_W GrKey_Alt_W
207 #define A_X GrKey_Alt_X
208 #define A_Y GrKey_Alt_Y
209 #define A_Z GrKey_Alt_Z
210 
211 #define F1 GrKey_F1
212 #define F2 GrKey_F2
213 #define F3 GrKey_F3
214 #define F4 GrKey_F4
215 #define F5 GrKey_F5
216 #define F6 GrKey_F6
217 #define F7 GrKey_F7
218 #define F8 GrKey_F8
219 #define F9 GrKey_F9
220 #define F10 GrKey_F10
221 #define F11 GrKey_F11
222 #define F12 GrKey_F12
223 
224 #define C_F1 GrKey_Control_F1
225 #define C_F2 GrKey_Control_F2
226 #define C_F3 GrKey_Control_F3
227 #define C_F4 GrKey_Control_F4
228 #define C_F5 GrKey_Control_F5
229 #define C_F6 GrKey_Control_F6
230 #define C_F7 GrKey_Control_F7
231 #define C_F8 GrKey_Control_F8
232 #define C_F9 GrKey_Control_F9
233 #define C_F10 GrKey_Control_F10
234 #define C_F11 GrKey_Control_F11
235 #define C_F12 GrKey_Control_F12
236 
237 #define A_F1 GrKey_Alt_F1
238 #define A_F2 GrKey_Alt_F2
239 #define A_F3 GrKey_Alt_F3
240 #define A_F4 GrKey_Alt_F4
241 #define A_F5 GrKey_Alt_F5
242 #define A_F6 GrKey_Alt_F6
243 #define A_F7 GrKey_Alt_F7
244 #define A_F8 GrKey_Alt_F8
245 #define A_F9 GrKey_Alt_F9
246 #define A_F10 GrKey_Alt_F10
247 
248 #define A_1 GrKey_Alt_1
249 #define A_2 GrKey_Alt_2
250 #define A_3 GrKey_Alt_3
251 #define A_4 GrKey_Alt_4
252 #define A_5 GrKey_Alt_5
253 #define A_6 GrKey_Alt_6
254 #define A_7 GrKey_Alt_7
255 #define A_8 GrKey_Alt_8
256 #define A_9 GrKey_Alt_9
257 #define A_0 GrKey_Alt_0
258 
259 #else
260 /*
261  * DOS and Windows KeyCodes definitions
262  */
263 
264 #define HOME 0x4700
265 #define ESC 0x11b
266 #define END 0x4f00
267 #define TAB 0xf09
268 
269 #define BKS 0xe08
270 #define DEL 0x5300
271 #define RET 0x1c0d
272 #define ENTER 0xe00d
273 #define INS 0x5200
274 #define PAGEUP 0x4900
275 #define PAGEDOWN 0x5100
276 #define SPACEBAR 0x20
277 
278 #define U_A 0x4800
279 #define D_A 0x5000
280 #define R_A 0x4d00
281 #define L_A 0x4b00
282 
283 #define C_A 0x1e01
284 #define C_B 0x3002
285 #define C_C 0x2e03
286 #define C_D 0x2004
287 #define C_E 0x1205
288 #define C_F 0x2106
289 #define C_G 0x2207
290 #define C_H 0x2308
291 #define C_I 0x1709
292 #define C_J 0x240a
293 #define C_K 0x250b
294 #define C_L 0x260c
295 #define C_M 0x320d
296 #define C_N 0x310e
297 #define C_O 0x180f
298 #define C_P 0x1910
299 #define C_Q 0x1011
300 #define C_R 0x1312
301 #define C_S 0x1f13
302 #define C_T 0x1414
303 #define C_U 0x1615
304 #define C_V 0x2f16
305 #define C_W 0x1117
306 #define C_X 0x2d18
307 #define C_Y 0x1519
308 #define C_Z 0x2c1a
309 
310 #define A_A 0x1e00
311 #define A_B 0x3000
312 #define A_C 0x2e00
313 #define A_D 0x2000
314 #define A_E 0x1200
315 #define A_F 0x2100
316 #define A_G 0x2200
317 #define A_H 0x2300
318 #define A_I 0x1700
319 #define A_J 0x2400
320 #define A_K 0x2500
321 #define A_L 0x2600
322 #define A_M 0x3200
323 #define A_N 0x3100
324 #define A_O 0x1800
325 #define A_P 0x1900
326 #define A_Q 0x1000
327 #define A_R 0x1300
328 #define A_S 0x1f00
329 #define A_T 0x1400
330 #define A_U 0x1600
331 #define A_V 0x2f00
332 #define A_W 0x1100
333 #define A_X 0x2d00
334 #define A_Y 0x1500
335 #define A_Z 0x2c00
336 
337 #define F1 0x3b00
338 #define F2 0x3c00
339 #define F3 0x3d00
340 #define F4 0x3e00
341 #define F5 0x3f00
342 #define F6 0x4000
343 #define F7 0x4100
344 #define F8 0x4200
345 #define F9 0x4300
346 #define F10 0x4400
347 #define F11 0x5700
348 #define F12 0x5800
349 
350 #define C_F1 0x5e00
351 #define C_F2 0x5f00
352 #define C_F3 0x6000
353 #define C_F4 0x6100
354 #define C_F5 0x6200
355 #define C_F6 0x6300
356 #define C_F7 0x6400
357 #define C_F8 0x6500
358 #define C_F9 0x6600
359 #define C_F10 0x6700
360 
361 #ifdef WIN_MGUI
362 #define C_F11 0x7a00
363 #define C_F12 0x7b00
364 #else
365 #define C_F11 0x8900
366 #define C_F12 0x8a00
367 #endif
368 
369 #define A_F1 0x6800
370 #define A_F2 0x6900
371 #define A_F3 0x6a00
372 #define A_F4 0x6b00
373 #define A_F5 0x6c00
374 #define A_F6 0x6d00
375 #define A_F7 0x6e00
376 #define A_F8 0x6f00
377 #define A_F9 0x7000
378 #define A_F10 0x7100
379 
380 #ifdef WIN_MGUI
381 #define A_0 0x7800
382 #define A_1 0x7801
383 #define A_2 0x7802
384 #define A_3 0x7803
385 #define A_4 0x7804
386 #define A_5 0x7805
387 #define A_6 0x7806
388 #define A_7 0x7807
389 #define A_8 0x7808
390 #define A_9 0x7809
391 #else
392 #define A_1 0x7800
393 #define A_2 0x7900
394 #define A_3 0x7a00
395 #define A_4 0x7b00
396 #define A_5 0x7c00
397 #define A_6 0x7d00
398 #define A_7 0x7e00
399 #define A_8 0x7f00
400 #define A_9 0x8000
401 #define A_0 0x8100
402 #endif
403 
404 #endif
405 
406 #endif
______________________________________________________________________________________
Generated on Mon Sep 18 2017 11:44:08 for DAS - Rel. 3.1.6 - 18/09/2017.