HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UI_Keyboard.h
Go to the documentation of this file.
1 #ifndef __UI_Keyboard_h__
2 #define __UI_Keyboard_h__
3 
4 #include "UI_KeyBindings.h"
5 
6 enum UI_Keyboard : int
7 {
9 
10  // Values of 0x00000001 through 0x0010FFFF represent unicode code points.
11  //
12  // We provide enumerators for a very small subset of these here. Which
13  // values in this range are actually used will depend on the keyboard
14  // layout. We generally use the upper-case code point for any code point
15  // that is considered lower-case.
16  //
17  // Some of the keys representing control characters have special values
18  // that differ from their unicode code point.
19 
20  UI_KEY_A = 0x41,
21  UI_KEY_B = 0x42,
22  UI_KEY_C = 0x43,
23  UI_KEY_D = 0x44,
24  UI_KEY_E = 0x45,
25  UI_KEY_F = 0x46,
26  UI_KEY_G = 0x47,
27  UI_KEY_H = 0x48,
28  UI_KEY_I = 0x49,
29  UI_KEY_J = 0x4A,
30  UI_KEY_K = 0x4B,
31  UI_KEY_L = 0x4C,
32  UI_KEY_M = 0x4D,
33  UI_KEY_N = 0x4E,
34  UI_KEY_O = 0x4F,
35  UI_KEY_P = 0x50,
36  UI_KEY_Q = 0x51,
37  UI_KEY_R = 0x52,
38  UI_KEY_S = 0x53,
39  UI_KEY_T = 0x54,
40  UI_KEY_U = 0x55,
41  UI_KEY_V = 0x56,
42  UI_KEY_W = 0x57,
43  UI_KEY_X = 0x58,
44  UI_KEY_Y = 0x59,
45  UI_KEY_Z = 0x5A,
46  UI_KEY_ZERO = 0x30,
47  UI_KEY_ONE = 0x31,
48  UI_KEY_TWO = 0x32,
49  UI_KEY_THREE = 0x33,
50  UI_KEY_FOUR = 0x34,
51  UI_KEY_FIVE = 0x35,
52  UI_KEY_SIX = 0x36,
53  UI_KEY_SEVEN = 0x37,
54  UI_KEY_EIGHT = 0x38,
55  UI_KEY_NINE = 0x39,
56 
58  UI_KEY_PERIOD = 0x2E,
59  UI_KEY_COMMA = 0x2C,
60  UI_KEY_SLASH = 0x2F,
61  UI_KEY_QUOTE = 0x27,
62  UI_KEY_ACCENTGRAVE = 0x60, // really UI_KEY_LEFTQUOTE
63  UI_KEY_MINUS = 0x2D,
64  UI_KEY_PLUS = 0x2B,
65  UI_KEY_VIRGULE = 0xB4, // TODO: this is Qt::Key_acute, not a "virgule"?
67  UI_KEY_EQUAL = 0x3D,
70 
71  // Values for special keys not represented by a unicode code point start
72  // at 0x00110000. These must also be covered by the CHARACTER_BITS mask
73  // (0x001FFFFF).
74 
75  UI_KEY_BREAK = 0x00110000,
76  UI_KEY_SETUP = 0x00110001,
77  UI_KEY_CAPSLOCK = 0x00110002,
78 
79  UI_KEY_LEFTALT = 0x00110003,
80  UI_KEY_RIGHTALT = 0x00110004,
81  UI_KEY_LEFTCTRL = 0x00110005,
82  UI_KEY_RIGHTCTRL = 0x00110006,
83  UI_KEY_RIGHTSHIFT = 0x00110007,
84  UI_KEY_LEFTSHIFT = 0x00110008,
85  UI_KEY_COMMAND = 0x00110009, /* OSX Only */
86 
87  UI_KEY_ESC = 0x0011000A,
88  UI_KEY_TAB = 0x0011000B,
89  UI_KEY_ENTER = 0x0011000C,
90  UI_KEY_SPACE = 0x0011000D,
91  UI_KEY_LINEFEED = 0x0011000E,
92  UI_KEY_BACKSPACE = 0x0011000F,
93 
94  UI_KEY_LEFTARROW = 0x00110010,
95  UI_KEY_DOWNARROW = 0x00110011,
96  UI_KEY_RIGHTARROW = 0x00110012,
97  UI_KEY_UPARROW = 0x00110013,
98 
99  UI_KEY_F1 = 0x00110014,
100  UI_KEY_F2 = 0x00110015,
101  UI_KEY_F3 = 0x00110016,
102  UI_KEY_F4 = 0x00110017,
103  UI_KEY_F5 = 0x00110018,
104  UI_KEY_F6 = 0x00110019,
105  UI_KEY_F7 = 0x0011001A,
106  UI_KEY_F8 = 0x0011001B,
107  UI_KEY_F9 = 0x0011001C,
108  UI_KEY_F10 = 0x0011001D,
109  UI_KEY_F11 = 0x0011001E,
110  UI_KEY_F12 = 0x0011001F,
111  UI_KEY_F13 = 0x00110020,
112  UI_KEY_F14 = 0x00110021,
113  UI_KEY_F15 = 0x00110022,
114  UI_KEY_F16 = 0x00110023,
115  UI_KEY_F17 = 0x00110024,
116  UI_KEY_F18 = 0x00110025,
117  UI_KEY_F19 = 0x00110026,
118  UI_KEY_F20 = 0x00110027,
119  UI_KEY_F21 = 0x00110028,
120  UI_KEY_F22 = 0x00110029,
121  UI_KEY_F23 = 0x0011002A,
122  UI_KEY_F24 = 0x0011002B,
123  UI_KEY_F25 = 0x0011002C,
124  UI_KEY_F26 = 0x0011002D,
125  UI_KEY_F27 = 0x0011002E,
126  UI_KEY_F28 = 0x0011002F,
127  UI_KEY_F29 = 0x00110030,
128  UI_KEY_F30 = 0x00110031,
129  UI_KEY_F31 = 0x00110032,
130  UI_KEY_F32 = 0x00110033,
131  UI_KEY_F33 = 0x00110034,
132  UI_KEY_F34 = 0x00110035,
133  UI_KEY_F35 = 0x00110036,
134 
135  UI_KEY_PRINTSCREEN = 0x00110037,
136  UI_KEY_SCROLLLOCK = 0x00110038,
137  UI_KEY_PAUSE = 0x00110039,
138 
139  UI_KEY_INSERT = 0x0011003A,
140  UI_KEY_HOME = 0x0011003B,
141  UI_KEY_PAGEUP = 0x0011003C,
142  UI_KEY_DELETE = 0x0011003D,
143  UI_KEY_END = 0x0011003E,
144  UI_KEY_PAGEDOWN = 0x0011003F,
145  UI_KEY_CLEAR = 0x00110040,
146 
147  UI_KEY_NUMLOCK = 0x00110041,
148  UI_KEY_PAD0 = 0x00110042,
149  UI_KEY_PAD1 = 0x00110043,
150  UI_KEY_PAD2 = 0x00110044,
151  UI_KEY_PAD3 = 0x00110045,
152  UI_KEY_PAD4 = 0x00110046,
153  UI_KEY_PAD5 = 0x00110047,
154  UI_KEY_PAD6 = 0x00110048,
155  UI_KEY_PAD7 = 0x00110049,
156  UI_KEY_PAD8 = 0x0011004A,
157  UI_KEY_PAD9 = 0x0011004B,
158  UI_KEY_PADPERIOD = 0x0011004C,
159  UI_KEY_PADMINUS = 0x0011004D,
160  UI_KEY_PADVIRGULE = 0x0011004E,
161  UI_KEY_PADASTER = 0x0011004F,
162  UI_KEY_PADPLUS = 0x00110050,
163  UI_KEY_PADSLASH = 0x00110051,
164 };
165 
166 // The following sentinel should only be used for validity checks, not for
167 // allocating fixed size arrays.
168 #define UI_KEY_MAX UI_KEY_PADSLASH
169 
170 #endif
UI_Keyboard
Definition: UI_Keyboard.h:6