vfs: check userland buffers before reading them.
[haiku.git] / src / add-ons / kernel / bus_managers / ps2 / ATKeymap.h
blob230341014e768bd763c69c1b879a582ffe8d8757
1 /*
2 * Copyright 2004-2006, Jérôme Duval. All rights reserved.
3 * Copyright 2005-2010, Axel Dörfler, axeld@pinc-software.de.
4 * Distributed under the terms of the MIT License.
5 */
6 #ifndef AT_KEYMAP_H
7 #define AT_KEYMAP_H
10 #include <SupportDefs.h>
13 const static uint32 kATKeycodeMap[] = {
14 0x1, // Esc
15 0x12, // 1
16 0x13, // 2
17 0x14, // 3
18 0x15, // 4
19 0x16, // 5
20 0x17, // 6
21 0x18, // 7
22 0x19, // 8
23 0x1a, // 9
24 0x1b, // 0
25 0x1c, // -
26 0x1d, // =
27 0x1e, // BACKSPACE
28 0x26, // TAB
29 0x27, // Q
30 0x28, // W
31 0x29, // E
32 0x2a, // R
33 0x2b, // T
34 0x2c, // Y
35 0x2d, // U
36 0x2e, // I
37 0x2f, // O
38 0x30, // P
39 0x31, // [
40 0x32, // ]
41 0x47, // ENTER
42 0x5c, // Left Control
43 0x3c, // A
44 0x3d, // S
45 0x3e, // D
46 0x3f, // F
47 0x40, // G
48 0x41, // H
49 0x42, // J
50 0x43, // K
51 0x44, // L
52 0x45, // ;
53 0x46, // '
54 0x11, // `
55 0x4b, // Left Shift
56 0x33, // \ (backslash -- note: don't remove non-white-space after BS char)
57 0x4c, // Z
58 0x4d, // X
59 0x4e, // C
60 0x4f, // V
61 0x50, // B
62 0x51, // N
63 0x52, // M
64 0x53, // ,
65 0x54, // .
66 0x55, // /
67 0x56, // Right Shift
68 0x24, // *
69 0x5d, // Left Alt
70 0x5e, // Space
71 0x3b, // Caps
72 0x02, // F1
73 0x03, // F2
74 0x04, // F3
75 0x05, // F4
76 0x06, // F5
77 0x07, // F6
78 0x08, // F7
79 0x09, // F8
80 0x0a, // F9
81 0x0b, // F10
82 0x22, // Num
83 0x0f, // Scroll
84 0x37, // KP 7
85 0x38, // KP 8
86 0x39, // KP 9
87 0x25, // KP -
88 0x48, // KP 4
89 0x49, // KP 5
90 0x4a, // KP 6
91 0x3a, // KP +
92 0x58, // KP 1
93 0x59, // KP 2
94 0x5a, // KP 3
95 0x64, // KP 0
96 0x65, // KP .
97 0x00, // UNMAPPED
98 0x00, // UNMAPPED
99 0x69, // <
100 0x0c, // F11
101 0x0d, // F12
102 0x00, // UNMAPPED
103 0x00, // UNMAPPED 90
104 0x00, // UNMAPPED
105 0x00, // UNMAPPED
106 0x00, // UNMAPPED
107 0x00, // UNMAPPED
108 0x00, // UNMAPPED
109 0x00, // UNMAPPED
110 0x00, // UNMAPPED
111 0x00, // UNMAPPED
112 0x00, // UNMAPPED
113 0x00, // UNMAPPED 100
114 0x00, // UNMAPPED
115 0x00, // UNMAPPED
116 0x00, // UNMAPPED
117 0x00, // UNMAPPED
118 0x00, // UNMAPPED
119 0x00, // UNMAPPED
120 0x00, // UNMAPPED
121 0x00, // UNMAPPED
122 0x00, // UNMAPPED
123 0x00, // UNMAPPED 110
124 0x00, // UNMAPPED
125 0x6e, // Katakana/Hiragana, second key right to spacebar, japanese
126 0x00, // UNMAPPED
127 0x00, // UNMAPPED
128 0x6b, // Ro (\\ key, japanese)
129 0x00, // UNMAPPED
130 0x00, // UNMAPPED
131 0x00, // UNMAPPED
132 0x00, // UNMAPPED
133 0x00, // UNMAPPED 120
134 0x6d, // Henkan, first key right to spacebar, japanese
135 0x00, // UNMAPPED
136 0x6c, // Muhenkan, key left to spacebar, japanese
137 0x00, // UNMAPPED
138 0x6a, // Yen (macron key, japanese)
139 0x70, // Keypad . on Brazilian ABNT2
140 0x00, // UNMAPPED
141 0x00, // UNMAPPED
142 0x00, // UNMAPPED
143 0x00, // UNMAPPED 130
144 0x00, // UNMAPPED
145 0x00, // UNMAPPED
146 0x00, // UNMAPPED
147 0x00, // UNMAPPED
148 0x00, // UNMAPPED
149 0x00, // UNMAPPED
150 0x00, // UNMAPPED
151 0x00, // UNMAPPED
152 0x00, // UNMAPPED
153 0x00, // UNMAPPED 140
154 0x00, // UNMAPPED
155 0x00, // UNMAPPED
156 0x00, // UNMAPPED
157 0x00, // UNMAPPED
158 0x00, // UNMAPPED
159 0x00, // UNMAPPED
160 0x00, // UNMAPPED
161 0x00, // UNMAPPED
162 0x00, // UNMAPPED
163 0x00, // UNMAPPED 150
164 0x00, // UNMAPPED
165 0x00, // UNMAPPED
166 0x00, // UNMAPPED
167 0x00, // UNMAPPED
168 0x00, // UNMAPPED
169 0x5b, // KP Enter
170 0x60, // Right Control
171 0x00, // UNMAPPED
172 0x00, // UNMAPPED
173 0x00, // UNMAPPED 160
174 0x00, // UNMAPPED
175 0x00, // UNMAPPED
176 0x00, // UNMAPPED
177 0x00, // UNMAPPED
178 0x00, // UNMAPPED
179 0x00, // UNMAPPED
180 0x00, // UNMAPPED
181 0x00, // UNMAPPED
182 0x00, // UNMAPPED
183 0x00, // UNMAPPED 170
184 0x00, // UNMAPPED
185 0x00, // UNMAPPED
186 0x00, // UNMAPPED
187 0x00, // UNMAPPED
188 0x00, // UNMAPPED
189 0x00, // UNMAPPED
190 0x00, // UNMAPPED
191 0x00, // UNMAPPED
192 0x00, // UNMAPPED
193 0x00, // UNMAPPED 180
194 0x23, // KP /
195 0x00, // UNMAPPED
196 0x0e, // Print Screen
197 0x5f, // Right Alt
198 0x00, // UNMAPPED
199 0x00, // UNMAPPED
200 0x00, // UNMAPPED
201 0x00, // UNMAPPED
202 0x00, // UNMAPPED
203 0x00, // UNMAPPED 190
204 0x00, // UNMAPPED
205 0x00, // UNMAPPED
206 0x00, // UNMAPPED
207 0x00, // UNMAPPED
208 0x00, // UNMAPPED
209 0x00, // UNMAPPED
210 0x00, // UNMAPPED
211 0x7f, // Break
212 0x20, // Home
213 0x57, // Up Arrow 200
214 0x21, // Page Up
215 0x00, // UNMAPPED
216 0x61, // Left Arrow
217 0x00, // UNMAPPED
218 0x63, // Right Arrow
219 0x00, // UNMAPPED
220 0x35, // End
221 0x62, // Down Arrow
222 0x36, // Page Down
223 0x1f, // Insert 200
224 0x34, // Delete
225 0x00, // UNMAPPED
226 0x00, // UNMAPPED
227 0x00, // UNMAPPED
228 0x00, // UNMAPPED
229 0x00, // UNMAPPED
230 0x00, // UNMAPPED
231 0x00, // UNMAPPED
232 0x66, // Left Gui
233 0x67, // Right Gui 210
234 0x68, // Menu
235 0x00, // UNMAPPED
236 0x00, // UNMAPPED
237 0x00, // UNMAPPED
238 0x00, // UNMAPPED
239 0x00, // UNMAPPED
240 0x00, // UNMAPPED
241 0x00, // UNMAPPED
242 0x00, // UNMAPPED
243 0x00, // UNMAPPED 220
244 0x00, // UNMAPPED
245 0x00, // UNMAPPED
246 0x00, // UNMAPPED
247 0x00, // UNMAPPED
248 0x00, // UNMAPPED
249 0x00, // UNMAPPED
250 0x00, // UNMAPPED
251 0x00, // UNMAPPED
252 0x00, // UNMAPPED
253 0x00, // UNMAPPED
254 0x00, // UNMAPPED
255 0x00, // UNMAPPED
256 0x00, // UNMAPPED
257 0x00, // UNMAPPED
258 0x00, // UNMAPPED
259 0x00, // UNMAPPED
260 0x00, // UNMAPPED
261 0x00, // UNMAPPED
262 0x00, // UNMAPPED
263 0x00, // UNMAPPED
264 0x00, // UNMAPPED
265 0x00, // UNMAPPED
266 0x00, // UNMAPPED
267 0x00, // UNMAPPED
268 0x00, // UNMAPPED
269 0x00, // UNMAPPED
270 0x00, // UNMAPPED
271 0x00, // UNMAPPED
272 0x00, // UNMAPPED
273 0x00, // UNMAPPED
274 0x00, // UNMAPPED
275 0x00, // UNMAPPED
276 0x00, // UNMAPPED
277 0x00, // UNMAPPED
278 0x00, // UNMAPPED
279 0x00, // UNMAPPED
280 0x00, // UNMAPPED
281 0x00, // UNMAPPED
282 0x00, // UNMAPPED
283 0x00, // UNMAPPED
284 0x00, // UNMAPPED
285 0x00, // UNMAPPED
286 0x00, // UNMAPPED
287 0x00, // UNMAPPED
288 0x00, // UNMAPPED
289 0x00, // UNMAPPED
290 0x00, // UNMAPPED
291 0x00, // UNMAPPED
292 0x00, // UNMAPPED
293 0x00, // UNMAPPED
294 0x00, // UNMAPPED
295 0x00, // UNMAPPED
296 0x00, // UNMAPPED
297 0x00, // UNMAPPED
298 0x00, // UNMAPPED
299 0x00, // UNMAPPED
300 0x00, // UNMAPPED
301 0x00, // UNMAPPED
302 0x00, // UNMAPPED
303 0x00, // UNMAPPED
307 #endif // AT_KEYMAP_H