Last change
on this file was
17080,
checked in by westram, 7 years ago
|
- full update from 'trunk' into 'alilink'
- fix reintegration problems
- adds:
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.7 KB
|
Line | |
---|
1 | // =========================================================== // |
---|
2 | // // |
---|
3 | // File : aw_keysym.hxx // |
---|
4 | // Purpose : // |
---|
5 | // // |
---|
6 | // Institute of Microbiology (Technical University Munich) // |
---|
7 | // http://www.arb-home.de/ // |
---|
8 | // // |
---|
9 | // =========================================================== // |
---|
10 | |
---|
11 | #ifndef AW_KEYSYM_HXX |
---|
12 | #define AW_KEYSYM_HXX |
---|
13 | |
---|
14 | enum AW_key_code { |
---|
15 | AW_KEY_NONE, |
---|
16 | AW_KEY_ESCAPE, |
---|
17 | AW_KEY_F1, |
---|
18 | AW_KEY_F2, |
---|
19 | AW_KEY_F3, |
---|
20 | AW_KEY_F4, |
---|
21 | AW_KEY_F5, |
---|
22 | AW_KEY_F6, |
---|
23 | AW_KEY_F7, |
---|
24 | AW_KEY_F8, |
---|
25 | AW_KEY_F9, |
---|
26 | AW_KEY_F10, |
---|
27 | AW_KEY_F11, |
---|
28 | AW_KEY_F12, |
---|
29 | AW_KEY_LEFT, |
---|
30 | AW_KEY_RIGHT, |
---|
31 | AW_KEY_UP, |
---|
32 | AW_KEY_DOWN, |
---|
33 | AW_KEY_DELETE, |
---|
34 | AW_KEY_BACKSPACE, |
---|
35 | AW_KEY_INSERT, |
---|
36 | AW_KEY_HELP, |
---|
37 | AW_KEY_HOME, |
---|
38 | AW_KEY_END, |
---|
39 | AW_KEY_RETURN, |
---|
40 | AW_KEY_TAB, |
---|
41 | AW_KEY_ASCII |
---|
42 | }; |
---|
43 | |
---|
44 | enum AW_key_mod { |
---|
45 | AW_KEYMODE_NONE = 0, |
---|
46 | AW_KEYMODE_SHIFT = 2, |
---|
47 | AW_KEYMODE_CONTROL = 4, |
---|
48 | AW_KEYMODE_ALT = 8, // Alt or Meta key |
---|
49 | AW_KEYMODE_NUMLOCK = 16, |
---|
50 | }; |
---|
51 | |
---|
52 | // define some inline functions to avoid comparing apples and oranges: |
---|
53 | inline bool operator==(AW_key_code, char); |
---|
54 | inline bool operator!=(AW_key_code, char); |
---|
55 | inline bool operator==(char, AW_key_code); |
---|
56 | inline bool operator!=(char, AW_key_code); |
---|
57 | |
---|
58 | inline bool operator==(AW_key_mod, char); |
---|
59 | inline bool operator!=(AW_key_mod, char); |
---|
60 | inline bool operator==(char, AW_key_mod); |
---|
61 | inline bool operator!=(char, AW_key_mod); |
---|
62 | |
---|
63 | #else |
---|
64 | #error aw_keysym.hxx included twice |
---|
65 | #endif // AW_KEYSYM_HXX |
---|
Note: See
TracBrowser
for help on using the repository browser.