equal
deleted
inserted
replaced
12 enum { |
12 enum { |
13 BOLD = 1 << 24, // bold font |
13 BOLD = 1 << 24, // bold font |
14 UNDERLINE = 1 << 25, // underline text |
14 UNDERLINE = 1 << 25, // underline text |
15 STANDOUT = 1 << 26, // inverse bg/fg |
15 STANDOUT = 1 << 26, // inverse bg/fg |
16 BLINK = 1 << 27, // blinking |
16 BLINK = 1 << 27, // blinking |
|
17 }; |
|
18 }; |
|
19 |
|
20 |
|
21 namespace KeyMod |
|
22 { |
|
23 enum { |
|
24 SHIFT = 1<<0, |
|
25 ALT = 1<<1, |
|
26 CTRL = 1<<2, |
|
27 META = 1<<3, |
17 }; |
28 }; |
18 }; |
29 }; |
19 |
30 |
20 |
31 |
21 class ColorMap |
32 class ColorMap |
173 { |
184 { |
174 struct |
185 struct |
175 { |
186 { |
176 char keyname[10]; |
187 char keyname[10]; |
177 Uint32 unicode; |
188 Uint32 unicode; |
|
189 int mod; |
178 } key; |
190 } key; |
179 struct |
191 struct |
180 { |
192 { |
181 int x, y; |
193 int x, y; |
182 int button; |
194 int button; |
224 |
236 |
225 int _mousemove_last_x; |
237 int _mousemove_last_x; |
226 int _mousemove_last_y; |
238 int _mousemove_last_y; |
227 |
239 |
228 const char *_translate_keyname(SDLKey sym); |
240 const char *_translate_keyname(SDLKey sym); |
|
241 int _translate_mod(SDLMod mod); |
229 static Uint32 _wait_event_callback(Uint32 interval, void *param); |
242 static Uint32 _wait_event_callback(Uint32 interval, void *param); |
230 static Uint32 _blink_toggle_callback(Uint32 interval, void *param); |
243 static Uint32 _blink_toggle_callback(Uint32 interval, void *param); |
231 }; |
244 }; |
232 |
245 |
233 |
246 |