Advanced Strategic Command
keysymbols.h
Go to the documentation of this file.
1 /***************************************************************************
2  keysymbols.h - description
3  -------------------
4  begin : Sat Oct 14 2000
5  copyright : (C) 2000 by Martin Bickel
6  email : bickel@asc-hq.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef keysymbols_h_included
19  #define keysymbols_h_included
20 
21 
22  #include "../global.h"
23  #include <SDL.h>
24 
25  #define ct_invvalue -1
26  #define ct_shp 2048
27  #define ct_stp 512
28  #define ct_altp 1024
29 
30  #define ct_space SDLK_SPACE
31  #define ct_bspace SDLK_BACKSPACE
32  #define ct_lshift SDLK_LSHIFT
33  #define ct_rshift SDLK_RSHIFT
34  #define ct_lstrg SDLK_LCTRL
35  #define ct_rstrg SDLK_RCTRL
36  #define ct_lalt SDLK_LALT
37  #define ct_ralt SDLK_RALT
38 
39  #define ct_roll SDLK_SCROLLOCK
40  #define ct_pause SDLK_PAUSE
41  #define ct_druck SDLK_PRINT
42 
43  #define ct_esc SDLK_ESCAPE
44  #define ct_tab SDLK_TAB
45 
46  #define ct_shift_tab (ct_tab | ct_shp)
47 
48  #define ct_capslck SDLK_CAPSLOCK
49  #define ct_sb SDLK_LESS
50  #define ct_gitt SDLK_HASH
51  #define ct_enter SDLK_RETURN
52  #define ct_minus SDLK_MINUS
53  #define ct_plus SDLK_PLUS
54  #define ct_punkt SDLK_PERIOD
55  #define ct_point ct_punkt
56  #define ct_komma SDLK_COMMA
57 
58  #define ct_num SDLK_NUMLOCK
59  #define ct_divk SDLK_KP_DIVIDE
60  #define ct_malk SDLK_KP_MULTIPLY
61  #define ct_minusk SDLK_KP_MINUS
62  #define ct_plusk SDLK_KP_PLUS
63  #define ct_enterk SDLK_KP_ENTER
64  #define ct_entk SDLK_KP_PERIOD
65  #define ct_0k SDLK_KP0
66  #define ct_1k SDLK_KP1
67  #define ct_2k SDLK_KP2
68  #define ct_3k SDLK_KP3
69  #define ct_4k SDLK_KP4
70  #define ct_5k SDLK_KP5
71  #define ct_6k SDLK_KP6
72  #define ct_7k SDLK_KP7
73  #define ct_8k SDLK_KP8
74  #define ct_9k SDLK_KP9
75 
76  #define ct_a SDLK_a
77  #define ct_b SDLK_b
78  #define ct_c SDLK_c
79  #define ct_d SDLK_d
80  #define ct_e SDLK_e
81  #define ct_f SDLK_f
82  #define ct_g SDLK_g
83  #define ct_h SDLK_h
84  #define ct_i SDLK_i
85  #define ct_j SDLK_j
86  #define ct_k SDLK_k
87  #define ct_l SDLK_l
88  #define ct_m SDLK_m
89  #define ct_n SDLK_n
90  #define ct_o SDLK_o
91  #define ct_p SDLK_p
92  #define ct_q SDLK_q
93  #define ct_r SDLK_r
94  #define ct_s SDLK_s
95  #define ct_t SDLK_t
96  #define ct_u SDLK_u
97  #define ct_v SDLK_v
98  #define ct_w SDLK_w
99  #define ct_x SDLK_x
100  #define ct_y SDLK_y
101  #define ct_z SDLK_z
102 // #define ct_oe 39
103 // #define ct_ae 40
104 // #define ct_ue 26
105 
106  #define ct_circ SDLK_CARET
107  #define ct_0 SDLK_0
108  #define ct_1 SDLK_1
109  #define ct_2 SDLK_2
110  #define ct_3 SDLK_3
111  #define ct_4 SDLK_4
112  #define ct_5 SDLK_5
113  #define ct_6 SDLK_6
114  #define ct_7 SDLK_7
115  #define ct_8 SDLK_8
116  #define ct_9 SDLK_9
117 // #define ct_ez 12
118 // #define ct_apos 13
119 
120  #define ct_left SDLK_LEFT
121  #define ct_right SDLK_RIGHT
122  #define ct_up SDLK_UP
123  #define ct_down SDLK_DOWN
124 
125  #define ct_entf SDLK_DELETE
126  #define ct_einf SDLK_INSERT
127  #define ct_pos1 SDLK_HOME
128  #define ct_ende SDLK_END
129  #define ct_pdown SDLK_PAGEDOWN
130  #define ct_pup SDLK_PAGEUP
131 
132  #define ct_f1 SDLK_F1
133  #define ct_f2 SDLK_F2
134  #define ct_f3 SDLK_F3
135  #define ct_f4 SDLK_F4
136  #define ct_f5 SDLK_F5
137  #define ct_f6 SDLK_F6
138  #define ct_f7 SDLK_F7
139  #define ct_f8 SDLK_F8
140  #define ct_f9 SDLK_F9
141  #define ct_f10 SDLK_F10
142  #define ct_f11 SDLK_F11
143  #define ct_f12 SDLK_F12
144 
145  #define cto_invvalue -1
146  #define cto_shp 2048
147  #define cto_stp 512
148  #define cto_altp 1024
149 
150  #define cto_space SDLK_SPACE
151  #define cto_bspace SDLK_BACKSPACE
152  #define cto_lshift SDLK_LSHIFT
153  #define cto_rshift SDLK_RSHIFT
154  #define cto_lstrg SDLK_LCTRL
155  #define cto_rstrg SDLK_RCTRL
156  #define cto_lalt SDLK_LALT
157  #define cto_ralt SDLK_RALT
158 
159  #define cto_roll SDLK_SCROLLOCK
160  #define cto_pause SDLK_PAUSE
161  #define cto_druck SDLK_PRINT
162 
163  #define cto_esc SDLK_ESCAPE
164  #define cto_tab SDLK_TAB
165 
166  #define cto_shift_tab (cto_tab | cto_shp)
167 
168  #define cto_capslck SDLK_CAPSLOCK
169  #define cto_sb SDLK_LESS
170  #define cto_gitt SDLK_HASH
171  #define cto_enter SDLK_RETURN
172  #define cto_minus SDLK_MINUS
173  #define cto_plus SDLK_PLUS
174  #define cto_punkt SDLK_PERIOD
175  #define cto_point cto_punkt
176  #define cto_komma SDLK_COMMA
177 
178  #define cto_num SDLK_NUMLOCK
179  #define cto_divk SDLK_KP_DIVIDE
180  #define cto_malk SDLK_KP_MULTIPLY
181  #define cto_minusk SDLK_KP_MINUS
182  #define cto_plusk SDLK_KP_PLUS
183  #define cto_enterk SDLK_KP_ENTER
184  #define cto_entk SDLK_KP_PERIOD
185  #define cto_0k SDLK_KP0
186  #define cto_1k SDLK_KP1
187  #define cto_2k SDLK_KP2
188  #define cto_3k SDLK_KP3
189  #define cto_4k SDLK_KP4
190  #define cto_5k SDLK_KP5
191  #define cto_6k SDLK_KP6
192  #define cto_7k SDLK_KP7
193  #define cto_8k SDLK_KP8
194  #define cto_9k SDLK_KP9
195 
196  #define cto_a SDLK_a
197  #define cto_b SDLK_b
198  #define cto_c SDLK_c
199  #define cto_d SDLK_d
200  #define cto_e SDLK_e
201  #define cto_f SDLK_f
202  #define cto_g SDLK_g
203  #define cto_h SDLK_h
204  #define cto_i SDLK_i
205  #define cto_j SDLK_j
206  #define cto_k SDLK_k
207  #define cto_l SDLK_l
208  #define cto_m SDLK_m
209  #define cto_n SDLK_n
210  #define cto_o SDLK_o
211  #define cto_p SDLK_p
212  #define cto_q SDLK_q
213  #define cto_r SDLK_r
214  #define cto_s SDLK_s
215  #define cto_t SDLK_t
216  #define cto_u SDLK_u
217  #define cto_v SDLK_v
218  #define cto_w SDLK_w
219  #define cto_x SDLK_x
220  #define cto_y SDLK_y
221  #define cto_z SDLK_z
222 // #define cto_oe 39
223 // #define cto_ae 40
224 // #define cto_ue 26
225 
226  #define cto_circ SDLK_CARET
227  #define cto_0 SDLK_0
228  #define cto_1 SDLK_1
229  #define cto_2 SDLK_2
230  #define cto_3 SDLK_3
231  #define cto_4 SDLK_4
232  #define cto_5 SDLK_5
233  #define cto_6 SDLK_6
234  #define cto_7 SDLK_7
235  #define cto_8 SDLK_8
236  #define cto_9 SDLK_9
237 // #define cto_ez 12
238 // #define cto_apos 13
239 
240  #define cto_left SDLK_LEFT
241  #define cto_right SDLK_RIGHT
242  #define cto_up SDLK_UP
243  #define cto_down SDLK_DOWN
244 
245  #define cto_entf SDLK_DELETE
246  #define cto_einf SDLK_INSERT
247  #define cto_pos1 SDLK_HOME
248  #define cto_ende SDLK_END
249  #define cto_pdown SDLK_PAGEDOWN
250  #define cto_pup SDLK_PAGEUP
251 
252  #define cto_f1 SDLK_F1
253  #define cto_f2 SDLK_F2
254  #define cto_f3 SDLK_F3
255  #define cto_f4 SDLK_F4
256  #define cto_f5 SDLK_F5
257  #define cto_f6 SDLK_F6
258  #define cto_f7 SDLK_F7
259  #define cto_f8 SDLK_F8
260  #define cto_f9 SDLK_F9
261  #define cto_f10 SDLK_F10
262  #define cto_f11 SDLK_F11
263  #define cto_f12 SDLK_F12
264 
265 #endif //keysymbols_h_included