aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/native/KeyEvent.h
blob: eb5547b21c8117af6e897198b5650264b15bf2fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207

#ifndef _KEY_EVENT_H_
#define _KEY_EVENT_H_

#define EVENT_KEY_PRESSED  300
#define EVENT_KEY_RELEASED 301
// Send by Java: EVENT_KEY_TYPED  302

#define VK_ENTER '\n'
#define VK_BACK_SPACE '\b'
#define VK_TAB '\t'
#define VK_CANCEL 0x03
#define VK_CLEAR 0x0C
#define VK_SHIFT 0x10
#define VK_CONTROL 0x11
#define VK_ALT 0x12
#define VK_PAUSE 0x13
#define VK_CAPS_LOCK 0x14
#define VK_ESCAPE 0x1B
#define VK_SPACE 0x20
#define VK_PAGE_UP 0x21
#define VK_PAGE_DOWN 0x22
#define VK_END 0x23
#define VK_HOME 0x24

#define VK_LEFT 0x25

#define VK_UP 0x26

#define VK_RIGHT 0x27

#define VK_DOWN 0x28

#define VK_COMMA 0x2C

#define VK_MINUS 0x2D

#define VK_PERIOD 0x2E

#define VK_SLASH 0x2F

#define VK_0 0x30
#define VK_1 0x31
#define VK_2 0x32
#define VK_3 0x33
#define VK_4 0x34
#define VK_5 0x35
#define VK_6 0x36
#define VK_7 0x37
#define VK_8 0x38
#define VK_9 0x39

#define VK_SEMICOLON 0x3B

#define VK_EQUALS 0x3D

#define VK_A 0x41
#define VK_B 0x42
#define VK_C 0x43
#define VK_D 0x44
#define VK_E 0x45
#define VK_F 0x46
#define VK_G 0x47
#define VK_H 0x48
#define VK_I 0x49
#define VK_J 0x4A
#define VK_K 0x4B
#define VK_L 0x4C
#define VK_M 0x4D
#define VK_N 0x4E
#define VK_O 0x4F
#define VK_P 0x50
#define VK_Q 0x51
#define VK_R 0x52
#define VK_S 0x53
#define VK_T 0x54
#define VK_U 0x55
#define VK_V 0x56
#define VK_W 0x57
#define VK_X 0x58
#define VK_Y 0x59
#define VK_Z 0x5A

#define VK_OPEN_BRACKET 0x5B

#define VK_BACK_SLASH 0x5C

#define VK_CLOSE_BRACKET 0x5D

#define VK_NUMPAD0 0x60
#define VK_NUMPAD1 0x61
#define VK_NUMPAD2 0x62
#define VK_NUMPAD3 0x63
#define VK_NUMPAD4 0x64
#define VK_NUMPAD5 0x65
#define VK_NUMPAD6 0x66
#define VK_NUMPAD7 0x67
#define VK_NUMPAD8 0x68
#define VK_NUMPAD9 0x69
#define VK_MULTIPLY 0x6A
#define VK_ADD 0x6B

#define VK_SEPARATER 0x6C

#define VK_SEPARATOR VK_SEPARATER

#define VK_SUBTRACT 0x6D
#define VK_DECIMAL 0x6E
#define VK_DIVIDE 0x6F
#define VK_DELETE 0x7F; /* ASCII DEL */
#define VK_NUM_LOCK 0x90
#define VK_SCROLL_LOCK 0x91

#define VK_F1 0x70

#define VK_F2 0x71

#define VK_F3 0x72

#define VK_F4 0x73

#define VK_F5 0x74

#define VK_F6 0x75

#define VK_F7 0x76

#define VK_F8 0x77

#define VK_F9 0x78

#define VK_F10 0x79

#define VK_F11 0x7A

#define VK_F12 0x7B

#define VK_F13 0xF000

#define VK_F14 0xF001

#define VK_F15 0xF002

#define VK_F16 0xF003

#define VK_F17 0xF004

#define VK_F18 0xF005

#define VK_F19 0xF006

#define VK_F20 0xF007

#define VK_F21 0xF008

#define VK_F22 0xF009

#define VK_F23 0xF00A

#define VK_F24 0xF00B

#define VK_PRINTSCREEN 0x9A
#define VK_INSERT 0x9B
#define VK_HELP 0x9C
#define VK_META 0x9D

#define VK_BACK_QUOTE 0xC0
#define VK_QUOTE 0xDE

#define VK_KP_UP 0xE0

#define VK_KP_DOWN 0xE1

#define VK_KP_LEFT 0xE2

#define VK_KP_RIGHT 0xE3

#define VK_AT 0x0200

#define VK_COLON 0x0201

#define VK_CIRCUMFLEX 0x0202

#define VK_DOLLAR 0x0203

#define VK_EURO_SIGN 0x0204

#define VK_EXCLAMATION_MARK 0x0205

#define VK_INVERTED_EXCLAMATION_MARK 0x0206

#define VK_LEFT_PARENTHESIS 0x0207

#define VK_NUMBER_SIGN 0x0208

#define VK_PLUS 0x0209

#define VK_RIGHT_PARENTHESIS 0x020A

#define VK_UNDERSCORE 0x020B

#define VK_WINDOWS 0x020C

#define VK_CONTEXT_MENU 0x020D

#endif