Kigs Framework
Doc version 0.8
Open source multi purpose Rapid Application Development framework
framework
PlatformsModules
iOS
Platform
Input
KeyDefine.h
1
#ifndef _KEY_DEFINE_H_
2
#define _KEY_DEFINE_H_
3
4
struct
KeyEvent
5
{
6
public
:
7
// Taken from adroid API
8
static
const
int
ACTION_DOWN = 0;
9
static
const
int
ACTION_UP = 1;
10
static
const
int
ACTION_MULTIPLE = 2;
11
12
int
Action;
13
u32 KeyCode;
14
int
Unicode;
15
int
flag;
16
17
public
:
18
void
print()
19
{
20
printf(
"Action:%d KeyCode:%d Unicode:%d flag:%d"
, Action, KeyCode, Unicode, flag);
21
}
22
};
23
24
25
/*
26
* Virtual Keys, Standard Set
27
*/
28
#define VK_LBUTTON 0x01
29
#define VK_RBUTTON 0x02
30
#define VK_CANCEL 0x03
31
#define VK_MBUTTON 0x04
/* NOT contiguous with L & RBUTTON */
32
#define VK_XBUTTON1 0x05
/* NOT contiguous with L & RBUTTON */
33
#define VK_XBUTTON2 0x06
/* NOT contiguous with L & RBUTTON */
34
/*
35
* 0x07 : reserved
36
*/
37
#define VK_BACK 0x08
38
#define VK_TAB 0x09
39
/*
40
* 0x0A - 0x0B : reserved
41
*/
42
#define VK_CLEAR 0x0C
43
#define VK_RETURN 0x0D
44
/*
45
* 0x0E - 0x0F : unassigned
46
*/
47
#define VK_SHIFT 0x10
48
#define VK_CONTROL 0x11
49
#define VK_MENU 0x12
50
#define VK_PAUSE 0x13
51
#define VK_CAPITAL 0x14
52
#define VK_KANA 0x15
53
#define VK_HANGUL 0x15
54
/*
55
* 0x16 : unassigned
56
*/
57
#define VK_JUNJA 0x17
58
#define VK_FINAL 0x18
59
#define VK_HANJA 0x19
60
#define VK_KANJI 0x19
61
/*
62
* 0x1A : unassigned
63
*/
64
#define VK_ESCAPE 0x1B
65
#define VK_CONVERT 0x1C
66
#define VK_NONCONVERT 0x1D
67
#define VK_ACCEPT 0x1E
68
#define VK_MODECHANGE 0x1F
69
#define VK_SPACE 0x20
70
#define VK_PRIOR 0x21
71
#define VK_NEXT 0x22
72
#define VK_END 0x23
73
#define VK_HOME 0x24
74
#define VK_LEFT 0x25
75
#define VK_UP 0x26
76
#define VK_RIGHT 0x27
77
#define VK_DOWN 0x28
78
#define VK_SELECT 0x29
79
#define VK_PRINT 0x2A
80
#define VK_EXECUTE 0x2B
81
#define VK_SNAPSHOT 0x2C
82
#define VK_INSERT 0x2D
83
#define VK_DELETE 0x2E
84
#define VK_HELP 0x2F
85
#define VK_0 0x30
86
#define VK_1 0x31
87
#define VK_2 0x32
88
#define VK_3 0x33
89
#define VK_4 0x34
90
#define VK_5 0x35
91
#define VK_6 0x36
92
#define VK_7 0x37
93
#define VK_8 0x38
94
#define VK_9 0x39
95
/*
96
* 0x3A - 0x40 : unassigned
97
*/
98
#define VK_A 0x41
99
#define VK_B 0x42
100
#define VK_C 0x43
101
#define VK_D 0x44
102
#define VK_E 0x45
103
#define VK_F 0x46
104
#define VK_G 0x47
105
#define VK_H 0x48
106
#define VK_I 0x49
107
#define VK_J 0x4A
108
#define VK_K 0x4B
109
#define VK_L 0x4C
110
#define VK_M 0x4D
111
#define VK_N 0x4E
112
#define VK_O 0x4F
113
#define VK_P 0x50
114
#define VK_Q 0x51
115
#define VK_R 0x52
116
#define VK_S 0x53
117
#define VK_T 0x54
118
#define VK_U 0x55
119
#define VK_V 0x56
120
#define VK_W 0x57
121
#define VK_X 0x58
122
#define VK_Y 0x59
123
#define VK_Z 0x5A
124
125
126
#define VK_LWIN 0x5B
127
#define VK_RWIN 0x5C
128
#define VK_APPS 0x5D
129
130
/*
131
* 0x5E : reserved
132
*/
133
134
#define VK_SLEEP 0x5F
135
136
#define VK_NUMPAD0 0x60
137
#define VK_NUMPAD1 0x61
138
#define VK_NUMPAD2 0x62
139
#define VK_NUMPAD3 0x63
140
#define VK_NUMPAD4 0x64
141
#define VK_NUMPAD5 0x65
142
#define VK_NUMPAD6 0x66
143
#define VK_NUMPAD7 0x67
144
#define VK_NUMPAD8 0x68
145
#define VK_NUMPAD9 0x69
146
#define VK_MULTIPLY 0x6A
147
#define VK_ADD 0x6B
148
#define VK_SEPARATOR 0x6C
149
#define VK_SUBTRACT 0x6D
150
#define VK_DECIMAL 0x6E
151
#define VK_DIVIDE 0x6F
152
#define VK_F1 0x70
153
#define VK_F2 0x71
154
#define VK_F3 0x72
155
#define VK_F4 0x73
156
#define VK_F5 0x74
157
#define VK_F6 0x75
158
#define VK_F7 0x76
159
#define VK_F8 0x77
160
#define VK_F9 0x78
161
#define VK_F10 0x79
162
#define VK_F11 0x7A
163
#define VK_F12 0x7B
164
#define VK_F13 0x7C
165
#define VK_F14 0x7D
166
#define VK_F15 0x7E
167
#define VK_F16 0x7F
168
#define VK_F17 0x80
169
#define VK_F18 0x81
170
#define VK_F19 0x82
171
#define VK_F20 0x83
172
#define VK_F21 0x84
173
#define VK_F22 0x85
174
#define VK_F23 0x86
175
#define VK_F24 0x87
176
#define VK_NUMLOCK 0x90
177
#define VK_SCROLL 0x91
178
#define VK_LSHIFT 0xA0
179
#define VK_RSHIFT 0xA1
180
#define VK_LCONTROL 0xA2
181
#define VK_RCONTROL 0xA3
182
#define VK_LMENU 0xA4
183
#define VK_RMENU 0xA5
184
185
/*
186
#define CM_KEY_ESCAPE 0x01
187
#define CM_KEY_1 0x02
188
#define CM_KEY_2 0x03
189
#define CM_KEY_3 0x04
190
#define CM_KEY_4 0x05
191
#define CM_KEY_5 0x06
192
#define CM_KEY_6 0x07
193
#define CM_KEY_7 0x08
194
#define CM_KEY_8 0x09
195
#define CM_KEY_9 0x0A
196
#define CM_KEY_0 0x0B
197
#define CM_KEY_MINUS 0x0C
198
#define CM_KEY_EQUALS 0x0D
199
#define CM_KEY_BACK 0x0E
200
#define CM_KEY_TAB 0x0F
201
#define CM_KEY_Q 0x10
202
#define CM_KEY_W 0x11
203
#define CM_KEY_E 0x12
204
#define CM_KEY_R 0x13
205
#define CM_KEY_T 0x14
206
#define CM_KEY_Y 0x15
207
#define CM_KEY_U 0x16
208
#define CM_KEY_I 0x17
209
#define CM_KEY_O 0x18
210
#define CM_KEY_P 0x19
211
#define CM_KEY_LBRACKET 0x1A
212
#define CM_KEY_RBRACKET 0x1B
213
#define CM_KEY_RETURN 0x1C
214
#define CM_KEY_LCONTROL 0x1D
215
#define CM_KEY_A 0x1E
216
#define CM_KEY_S 0x1F
217
#define CM_KEY_D 0x20
218
#define CM_KEY_F 0x21
219
#define CM_KEY_G 0x22
220
#define CM_KEY_H 0x23
221
#define CM_KEY_J 0x24
222
#define CM_KEY_K 0x25
223
#define CM_KEY_L 0x26
224
#define CM_KEY_SEMICOLON 0x27
225
#define CM_KEY_APOSTROPHE 0x28
226
#define CM_KEY_GRAVE 0x29
227
#define CM_KEY_LSHIFT 0x2A
228
#define CM_KEY_BACKSLASH 0x2B
229
#define CM_KEY_Z 0x2C
230
#define CM_KEY_X 0x2D
231
#define CM_KEY_C 0x2E
232
#define CM_KEY_V 0x2F
233
#define CM_KEY_B 0x30
234
#define CM_KEY_N 0x31
235
#define CM_KEY_M 0x32
236
#define CM_KEY_COMMA 0x33
237
#define CM_KEY_PERIOD 0x34
238
#define CM_KEY_SLASH 0x35
239
#define CM_KEY_RSHIFT 0x36
240
#define CM_KEY_MULTIPLY 0x37
241
#define CM_KEY_LMENU 0x38
242
#define CM_KEY_SPACE 0x39
243
#define CM_KEY_CAPITAL 0x3A
244
#define CM_KEY_F1 0x3B
245
#define CM_KEY_F2 0x3C
246
#define CM_KEY_F3 0x3D
247
#define CM_KEY_F4 0x3E
248
#define CM_KEY_F5 0x3F
249
#define CM_KEY_F6 0x40
250
#define CM_KEY_F7 0x41
251
#define CM_KEY_F8 0x42
252
#define CM_KEY_F9 0x43
253
#define CM_KEY_F10 0x44
254
#define CM_KEY_NUMLOCK 0x45
255
#define CM_KEY_SCROLL 0x46
256
#define CM_KEY_NUMPAD7 0x47
257
#define CM_KEY_NUMPAD8 0x48
258
#define CM_KEY_NUMPAD9 0x49
259
#define CM_KEY_SUBTRACT 0x4A
260
#define CM_KEY_NUMPAD4 0x4B
261
#define CM_KEY_NUMPAD5 0x4C
262
#define CM_KEY_NUMPAD6 0x4D
263
#define CM_KEY_ADD 0x4E
264
#define CM_KEY_NUMPAD1 0x4F
265
#define CM_KEY_NUMPAD2 0x50
266
#define CM_KEY_NUMPAD3 0x51
267
#define CM_KEY_NUMPAD0 0x52
268
#define CM_KEY_DECIMAL 0x53
269
#define CM_KEY_OEM_102 0x56
270
#define CM_KEY_F11 0x57
271
#define CM_KEY_F12 0x58
272
#define CM_KEY_F13 0x64
273
#define CM_KEY_F14 0x65
274
#define CM_KEY_F15 0x66
275
#define CM_KEY_KANA 0x70
276
#define CM_KEY_ABNT_C1 0x73
277
#define CM_KEY_CONVERT 0x79
278
#define CM_KEY_NOCONVERT 0x7B
279
#define CM_KEY_YEN 0x7D
280
#define CM_KEY_ABNT_C2 0x7E
281
#define CM_KEY_NUMPADEQUALS 0x8D
282
#define CM_KEY_PREVTRACK 0x90
283
#define CM_KEY_AT 0x91
284
#define CM_KEY_COLON 0x92
285
#define CM_KEY_UNDERLINE 0x93
286
#define CM_KEY_KANJI 0x94
287
#define CM_KEY_STOP 0x95
288
#define CM_KEY_AX 0x96
289
#define CM_KEY_UNLABELED 0x97
290
#define CM_KEY_NEXTTRACK 0x99
291
#define CM_KEY_NUMPADENTER 0x9C
292
#define CM_KEY_RCONTROL 0x9D
293
#define CM_KEY_MUTE 0xA0
294
#define CM_KEY_CALCULATOR 0xA1
295
#define CM_KEY_PLAYPAUSE 0xA2
296
#define CM_KEY_MEDIASTOP 0xA4
297
#define CM_KEY_VOLUMEDOWN 0xAE
298
#define CM_KEY_VOLUMEUP 0xB0
299
#define CM_KEY_WEBHOME 0xB2
300
#define CM_KEY_NUMPADCOMMA 0xB3
301
#define CM_KEY_DIVIDE 0xB5
302
#define CM_KEY_SYSRQ 0xB7
303
#define CM_KEY_RMENU 0xB8
304
#define CM_KEY_PAUSE 0xC5
305
#define CM_KEY_HOME 0xC7
306
#define CM_KEY_UP 0xC8
307
#define CM_KEY_PRIOR 0xC9
308
#define CM_KEY_LEFT 0xCB
309
#define CM_KEY_RIGHT 0xCD
310
#define CM_KEY_END 0xCF
311
#define CM_KEY_DOWN 0xD0
312
#define CM_KEY_NEXT 0xD1
313
#define CM_KEY_INSERT 0xD2
314
#define CM_KEY_DELETE 0xD3
315
#define CM_KEY_LWIN 0xDB
316
#define CM_KEY_RWIN 0xDC
317
#define CM_KEY_APPS 0xDD
318
#define CM_KEY_POWER 0xDE
319
#define CM_KEY_SLEEP 0xDF
320
#define CM_KEY_WAKE 0xE3
321
#define CM_KEY_WEBSEARCH 0xE5
322
#define CM_KEY_WEBFAVORITES 0xE6
323
#define CM_KEY_WEBREFRESH 0xE7
324
#define CM_KEY_WEBSTOP 0xE8
325
#define CM_KEY_WEBFORWARD 0xE9
326
#define CM_KEY_WEBBACK 0xEA
327
#define CM_KEY_MYCOMPUTER 0xEB
328
#define CM_KEY_MAIL 0xEC
329
#define CM_KEY_MEDIASELECT 0xED */
330
331
#endif
Generated by
1.8.17