root / curses_keys.h @ 8c5e95d8
History | View | Annotate | Download (12.4 kB)
1 | 4d3b6f6e | balrog | /*
|
---|---|---|---|
2 | 4d3b6f6e | balrog | * Keycode and keysyms conversion tables for curses
|
3 | 4d3b6f6e | balrog | *
|
4 | 4d3b6f6e | balrog | * Copyright (c) 2005 Andrzej Zaborowski <balrog@zabor.org>
|
5 | 4d3b6f6e | balrog | *
|
6 | 4d3b6f6e | balrog | * Permission is hereby granted, free of charge, to any person obtaining a copy
|
7 | 4d3b6f6e | balrog | * of this software and associated documentation files (the "Software"), to deal
|
8 | 4d3b6f6e | balrog | * in the Software without restriction, including without limitation the rights
|
9 | 4d3b6f6e | balrog | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10 | 4d3b6f6e | balrog | * copies of the Software, and to permit persons to whom the Software is
|
11 | 4d3b6f6e | balrog | * furnished to do so, subject to the following conditions:
|
12 | 4d3b6f6e | balrog | *
|
13 | 4d3b6f6e | balrog | * The above copyright notice and this permission notice shall be included in
|
14 | 4d3b6f6e | balrog | * all copies or substantial portions of the Software.
|
15 | 4d3b6f6e | balrog | *
|
16 | 4d3b6f6e | balrog | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17 | 4d3b6f6e | balrog | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18 | 4d3b6f6e | balrog | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
19 | 4d3b6f6e | balrog | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20 | 4d3b6f6e | balrog | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21 | 4d3b6f6e | balrog | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22 | 4d3b6f6e | balrog | * THE SOFTWARE.
|
23 | 4d3b6f6e | balrog | */
|
24 | 4d3b6f6e | balrog | #define KEY_RELEASE 0x80 |
25 | 4d3b6f6e | balrog | #define KEY_MASK 0x7f |
26 | 4d3b6f6e | balrog | #define SHIFT_CODE 0x2a |
27 | 4d3b6f6e | balrog | #define SHIFT 0x0080 |
28 | 4d3b6f6e | balrog | #define GREY_CODE 0xe0 |
29 | 4d3b6f6e | balrog | #define GREY 0x0100 |
30 | 4d3b6f6e | balrog | #define CNTRL_CODE 0x1d |
31 | 4d3b6f6e | balrog | #define CNTRL 0x0200 |
32 | 4d3b6f6e | balrog | #define ALT_CODE 0x38 |
33 | 4d3b6f6e | balrog | #define ALT 0x0400 |
34 | 4d3b6f6e | balrog | |
35 | 4d3b6f6e | balrog | /* curses won't detect a Control + Alt + 1, so use Alt + 1 */
|
36 | 4d3b6f6e | balrog | #define QEMU_KEY_CONSOLE0 (2 | ALT) /* (curses2keycode['1'] | ALT) */ |
37 | 4d3b6f6e | balrog | |
38 | 4d3b6f6e | balrog | #define CURSES_KEYS KEY_MAX /* KEY_MAX defined in <curses.h> */ |
39 | 4d3b6f6e | balrog | |
40 | 4d3b6f6e | balrog | int curses2keycode[CURSES_KEYS] = {
|
41 | 4d3b6f6e | balrog | [0 ... (CURSES_KEYS - 1)] = -1, |
42 | 4d3b6f6e | balrog | |
43 | 4d3b6f6e | balrog | [0x01b] = 1, /* Escape */ |
44 | 4d3b6f6e | balrog | ['1'] = 2, |
45 | 4d3b6f6e | balrog | ['2'] = 3, |
46 | 4d3b6f6e | balrog | ['3'] = 4, |
47 | 4d3b6f6e | balrog | ['4'] = 5, |
48 | 4d3b6f6e | balrog | ['5'] = 6, |
49 | 4d3b6f6e | balrog | ['6'] = 7, |
50 | 4d3b6f6e | balrog | ['7'] = 8, |
51 | 4d3b6f6e | balrog | ['8'] = 9, |
52 | 4d3b6f6e | balrog | ['9'] = 10, |
53 | 4d3b6f6e | balrog | ['0'] = 11, |
54 | 4d3b6f6e | balrog | ['-'] = 12, |
55 | 4d3b6f6e | balrog | ['='] = 13, |
56 | 4d3b6f6e | balrog | [0x07f] = 14, /* Backspace */ |
57 | 4d3b6f6e | balrog | [0x107] = 14, /* Backspace */ |
58 | 4d3b6f6e | balrog | |
59 | 4d3b6f6e | balrog | ['\t'] = 15, /* Tab */ |
60 | 4d3b6f6e | balrog | ['q'] = 16, |
61 | 4d3b6f6e | balrog | ['w'] = 17, |
62 | 4d3b6f6e | balrog | ['e'] = 18, |
63 | 4d3b6f6e | balrog | ['r'] = 19, |
64 | 4d3b6f6e | balrog | ['t'] = 20, |
65 | 4d3b6f6e | balrog | ['y'] = 21, |
66 | 4d3b6f6e | balrog | ['u'] = 22, |
67 | 4d3b6f6e | balrog | ['i'] = 23, |
68 | 4d3b6f6e | balrog | ['o'] = 24, |
69 | 4d3b6f6e | balrog | ['p'] = 25, |
70 | 4d3b6f6e | balrog | ['['] = 26, |
71 | 4d3b6f6e | balrog | [']'] = 27, |
72 | 4d3b6f6e | balrog | ['\n'] = 28, /* Return */ |
73 | 4d3b6f6e | balrog | ['\r'] = 28, /* Return */ |
74 | 4d3b6f6e | balrog | [0x157] = 28, /* Return */ |
75 | 4d3b6f6e | balrog | |
76 | 4d3b6f6e | balrog | ['a'] = 30, |
77 | 4d3b6f6e | balrog | ['s'] = 31, |
78 | 4d3b6f6e | balrog | ['d'] = 32, |
79 | 4d3b6f6e | balrog | ['f'] = 33, |
80 | 4d3b6f6e | balrog | ['g'] = 34, |
81 | 4d3b6f6e | balrog | ['h'] = 35, |
82 | 4d3b6f6e | balrog | ['j'] = 36, |
83 | 4d3b6f6e | balrog | ['k'] = 37, |
84 | 4d3b6f6e | balrog | ['l'] = 38, |
85 | 4d3b6f6e | balrog | [';'] = 39, |
86 | 4d3b6f6e | balrog | ['\''] = 40, /* Single quote */ |
87 | 4d3b6f6e | balrog | ['`'] = 41, |
88 | 4d3b6f6e | balrog | ['\\'] = 43, /* Backslash */ |
89 | 4d3b6f6e | balrog | |
90 | 4d3b6f6e | balrog | ['z'] = 44, |
91 | 4d3b6f6e | balrog | ['x'] = 45, |
92 | 4d3b6f6e | balrog | ['c'] = 46, |
93 | 4d3b6f6e | balrog | ['v'] = 47, |
94 | 4d3b6f6e | balrog | ['b'] = 48, |
95 | 4d3b6f6e | balrog | ['n'] = 49, |
96 | 4d3b6f6e | balrog | ['m'] = 50, |
97 | 4d3b6f6e | balrog | [','] = 51, |
98 | 4d3b6f6e | balrog | ['.'] = 52, |
99 | 4d3b6f6e | balrog | ['/'] = 53, |
100 | 4d3b6f6e | balrog | |
101 | 4d3b6f6e | balrog | [' '] = 57, |
102 | 4d3b6f6e | balrog | |
103 | 4d3b6f6e | balrog | [0x109] = 59, /* Function Key 1 */ |
104 | 4d3b6f6e | balrog | [0x10a] = 60, /* Function Key 2 */ |
105 | 4d3b6f6e | balrog | [0x10b] = 61, /* Function Key 3 */ |
106 | 4d3b6f6e | balrog | [0x10c] = 62, /* Function Key 4 */ |
107 | 4d3b6f6e | balrog | [0x10d] = 63, /* Function Key 5 */ |
108 | 4d3b6f6e | balrog | [0x10e] = 64, /* Function Key 6 */ |
109 | 4d3b6f6e | balrog | [0x10f] = 65, /* Function Key 7 */ |
110 | 4d3b6f6e | balrog | [0x110] = 66, /* Function Key 8 */ |
111 | 4d3b6f6e | balrog | [0x111] = 67, /* Function Key 9 */ |
112 | 4d3b6f6e | balrog | [0x112] = 68, /* Function Key 10 */ |
113 | 4d3b6f6e | balrog | [0x113] = 87, /* Function Key 11 */ |
114 | 4d3b6f6e | balrog | [0x114] = 88, /* Function Key 12 */ |
115 | 4d3b6f6e | balrog | |
116 | 4d3b6f6e | balrog | [0x106] = 71 | GREY, /* Home */ |
117 | 4d3b6f6e | balrog | [0x103] = 72 | GREY, /* Up Arrow */ |
118 | 4d3b6f6e | balrog | [0x153] = 73 | GREY, /* Page Up */ |
119 | 4d3b6f6e | balrog | [0x104] = 75 | GREY, /* Left Arrow */ |
120 | 4d3b6f6e | balrog | [0x105] = 77 | GREY, /* Right Arrow */ |
121 | 4d3b6f6e | balrog | [0x168] = 79 | GREY, /* End */ |
122 | 4d3b6f6e | balrog | [0x102] = 80 | GREY, /* Down Arrow */ |
123 | 4d3b6f6e | balrog | [0x152] = 81 | GREY, /* Page Down */ |
124 | 4d3b6f6e | balrog | [0x14b] = 82 | GREY, /* Insert */ |
125 | 4d3b6f6e | balrog | [0x14a] = 83 | GREY, /* Delete */ |
126 | 4d3b6f6e | balrog | |
127 | 4d3b6f6e | balrog | ['!'] = 2 | SHIFT, |
128 | 4d3b6f6e | balrog | ['@'] = 3 | SHIFT, |
129 | 4d3b6f6e | balrog | ['#'] = 4 | SHIFT, |
130 | 4d3b6f6e | balrog | ['$'] = 5 | SHIFT, |
131 | 4d3b6f6e | balrog | ['%'] = 6 | SHIFT, |
132 | 4d3b6f6e | balrog | ['^'] = 7 | SHIFT, |
133 | 4d3b6f6e | balrog | ['&'] = 8 | SHIFT, |
134 | 4d3b6f6e | balrog | ['*'] = 9 | SHIFT, |
135 | 4d3b6f6e | balrog | ['('] = 10 | SHIFT, |
136 | 4d3b6f6e | balrog | [')'] = 11 | SHIFT, |
137 | 4d3b6f6e | balrog | ['_'] = 12 | SHIFT, |
138 | 4d3b6f6e | balrog | ['+'] = 13 | SHIFT, |
139 | 4d3b6f6e | balrog | |
140 | 4d3b6f6e | balrog | [0x161] = 15 | SHIFT, /* Shift + Tab */ |
141 | 4d3b6f6e | balrog | ['Q'] = 16 | SHIFT, |
142 | 4d3b6f6e | balrog | ['W'] = 17 | SHIFT, |
143 | 4d3b6f6e | balrog | ['E'] = 18 | SHIFT, |
144 | 4d3b6f6e | balrog | ['R'] = 19 | SHIFT, |
145 | 4d3b6f6e | balrog | ['T'] = 20 | SHIFT, |
146 | 4d3b6f6e | balrog | ['Y'] = 21 | SHIFT, |
147 | 4d3b6f6e | balrog | ['U'] = 22 | SHIFT, |
148 | 4d3b6f6e | balrog | ['I'] = 23 | SHIFT, |
149 | 4d3b6f6e | balrog | ['O'] = 24 | SHIFT, |
150 | 4d3b6f6e | balrog | ['P'] = 25 | SHIFT, |
151 | 4d3b6f6e | balrog | ['{'] = 26 | SHIFT, |
152 | 4d3b6f6e | balrog | ['}'] = 27 | SHIFT, |
153 | 4d3b6f6e | balrog | |
154 | 4d3b6f6e | balrog | ['A'] = 30 | SHIFT, |
155 | 4d3b6f6e | balrog | ['S'] = 31 | SHIFT, |
156 | 4d3b6f6e | balrog | ['D'] = 32 | SHIFT, |
157 | 4d3b6f6e | balrog | ['F'] = 33 | SHIFT, |
158 | 4d3b6f6e | balrog | ['G'] = 34 | SHIFT, |
159 | 4d3b6f6e | balrog | ['H'] = 35 | SHIFT, |
160 | 4d3b6f6e | balrog | ['J'] = 36 | SHIFT, |
161 | 4d3b6f6e | balrog | ['K'] = 37 | SHIFT, |
162 | 4d3b6f6e | balrog | ['L'] = 38 | SHIFT, |
163 | 4d3b6f6e | balrog | [':'] = 39 | SHIFT, |
164 | 4d3b6f6e | balrog | ['"'] = 40 | SHIFT, |
165 | 4d3b6f6e | balrog | ['~'] = 41 | SHIFT, |
166 | 4d3b6f6e | balrog | ['|'] = 43 | SHIFT, |
167 | 4d3b6f6e | balrog | |
168 | 4d3b6f6e | balrog | ['Z'] = 44 | SHIFT, |
169 | 4d3b6f6e | balrog | ['X'] = 45 | SHIFT, |
170 | 4d3b6f6e | balrog | ['C'] = 46 | SHIFT, |
171 | 4d3b6f6e | balrog | ['V'] = 47 | SHIFT, |
172 | 4d3b6f6e | balrog | ['B'] = 48 | SHIFT, |
173 | 4d3b6f6e | balrog | ['N'] = 49 | SHIFT, |
174 | 4d3b6f6e | balrog | ['M'] = 50 | SHIFT, |
175 | 4d3b6f6e | balrog | ['<'] = 51 | SHIFT, |
176 | 4d3b6f6e | balrog | ['>'] = 52 | SHIFT, |
177 | 4d3b6f6e | balrog | ['?'] = 53 | SHIFT, |
178 | 4d3b6f6e | balrog | |
179 | 4d3b6f6e | balrog | [0x115] = 59 | SHIFT, /* Shift + Function Key 1 */ |
180 | 4d3b6f6e | balrog | [0x116] = 60 | SHIFT, /* Shift + Function Key 2 */ |
181 | 4d3b6f6e | balrog | [0x117] = 61 | SHIFT, /* Shift + Function Key 3 */ |
182 | 4d3b6f6e | balrog | [0x118] = 62 | SHIFT, /* Shift + Function Key 4 */ |
183 | 4d3b6f6e | balrog | [0x119] = 63 | SHIFT, /* Shift + Function Key 5 */ |
184 | 4d3b6f6e | balrog | [0x11a] = 64 | SHIFT, /* Shift + Function Key 6 */ |
185 | 4d3b6f6e | balrog | [0x11b] = 65 | SHIFT, /* Shift + Function Key 7 */ |
186 | 4d3b6f6e | balrog | [0x11c] = 66 | SHIFT, /* Shift + Function Key 8 */ |
187 | 4d3b6f6e | balrog | |
188 | 4d3b6f6e | balrog | [0x011] = 16 | CNTRL, /* Control + q */ |
189 | 4d3b6f6e | balrog | [0x017] = 17 | CNTRL, /* Control + w */ |
190 | 4d3b6f6e | balrog | [0x005] = 18 | CNTRL, /* Control + e */ |
191 | 4d3b6f6e | balrog | [0x012] = 19 | CNTRL, /* Control + r */ |
192 | 4d3b6f6e | balrog | [0x014] = 20 | CNTRL, /* Control + t */ |
193 | 4d3b6f6e | balrog | [0x019] = 21 | CNTRL, /* Control + y */ |
194 | 4d3b6f6e | balrog | [0x015] = 22 | CNTRL, /* Control + u */ |
195 | 4d3b6f6e | balrog | [0x009] = 23 | CNTRL, /* Control + i */ |
196 | 4d3b6f6e | balrog | [0x00f] = 24 | CNTRL, /* Control + o */ |
197 | 4d3b6f6e | balrog | [0x010] = 25 | CNTRL, /* Control + p */ |
198 | 4d3b6f6e | balrog | |
199 | 4d3b6f6e | balrog | [0x001] = 30 | CNTRL, /* Control + a */ |
200 | 4d3b6f6e | balrog | [0x013] = 31 | CNTRL, /* Control + s */ |
201 | eb24dadd | aurel32 | [0x004] = 32 | CNTRL, /* Control + d */ |
202 | 4d3b6f6e | balrog | [0x006] = 33 | CNTRL, /* Control + f */ |
203 | 4d3b6f6e | balrog | [0x007] = 34 | CNTRL, /* Control + g */ |
204 | 4d3b6f6e | balrog | [0x008] = 35 | CNTRL, /* Control + h */ |
205 | 4d3b6f6e | balrog | [0x00a] = 36 | CNTRL, /* Control + j */ |
206 | 4d3b6f6e | balrog | [0x00b] = 37 | CNTRL, /* Control + k */ |
207 | 4d3b6f6e | balrog | [0x00c] = 38 | CNTRL, /* Control + l */ |
208 | 4d3b6f6e | balrog | |
209 | 4d3b6f6e | balrog | [0x01a] = 44 | CNTRL, /* Control + z */ |
210 | 4d3b6f6e | balrog | [0x018] = 45 | CNTRL, /* Control + x */ |
211 | 4d3b6f6e | balrog | [0x003] = 46 | CNTRL, /* Control + c */ |
212 | 4d3b6f6e | balrog | [0x016] = 47 | CNTRL, /* Control + v */ |
213 | 4d3b6f6e | balrog | [0x002] = 48 | CNTRL, /* Control + b */ |
214 | 4d3b6f6e | balrog | [0x00e] = 49 | CNTRL, /* Control + n */ |
215 | 4d3b6f6e | balrog | /* Control + m collides with the keycode for Enter */
|
216 | 4d3b6f6e | balrog | |
217 | 4d3b6f6e | balrog | }; |
218 | 4d3b6f6e | balrog | |
219 | 4d3b6f6e | balrog | int curses2keysym[CURSES_KEYS] = {
|
220 | 4d3b6f6e | balrog | [0 ... (CURSES_KEYS - 1)] = -1, |
221 | 4d3b6f6e | balrog | |
222 | 4d3b6f6e | balrog | ['\n'] = '\n', |
223 | 4d3b6f6e | balrog | ['\r'] = '\n', |
224 | 4d3b6f6e | balrog | |
225 | 4d3b6f6e | balrog | [0x07f] = QEMU_KEY_BACKSPACE,
|
226 | 4d3b6f6e | balrog | |
227 | 4d3b6f6e | balrog | [0x102] = QEMU_KEY_DOWN,
|
228 | 4d3b6f6e | balrog | [0x103] = QEMU_KEY_UP,
|
229 | 4d3b6f6e | balrog | [0x104] = QEMU_KEY_LEFT,
|
230 | 4d3b6f6e | balrog | [0x105] = QEMU_KEY_RIGHT,
|
231 | 4d3b6f6e | balrog | [0x106] = QEMU_KEY_HOME,
|
232 | 4d3b6f6e | balrog | [0x107] = QEMU_KEY_BACKSPACE,
|
233 | 4d3b6f6e | balrog | |
234 | 4d3b6f6e | balrog | [0x14a] = QEMU_KEY_DELETE,
|
235 | 4d3b6f6e | balrog | [0x152] = QEMU_KEY_PAGEDOWN,
|
236 | 4d3b6f6e | balrog | [0x153] = QEMU_KEY_PAGEUP,
|
237 | 4d3b6f6e | balrog | [0x157] = '\n', |
238 | 4d3b6f6e | balrog | [0x168] = QEMU_KEY_END,
|
239 | 4d3b6f6e | balrog | |
240 | 4d3b6f6e | balrog | }; |
241 | 4d3b6f6e | balrog | |
242 | 4d3b6f6e | balrog | typedef struct { |
243 | 4d3b6f6e | balrog | const char* name; |
244 | 4d3b6f6e | balrog | int keysym;
|
245 | 4d3b6f6e | balrog | } name2keysym_t; |
246 | 4d3b6f6e | balrog | |
247 | 4d3b6f6e | balrog | static name2keysym_t name2keysym[] = {
|
248 | 4d3b6f6e | balrog | /* Plain ASCII */
|
249 | 4d3b6f6e | balrog | { "space", 0x020 }, |
250 | 4d3b6f6e | balrog | { "exclam", 0x021 }, |
251 | 4d3b6f6e | balrog | { "quotedbl", 0x022 }, |
252 | 4d3b6f6e | balrog | { "numbersign", 0x023 }, |
253 | 4d3b6f6e | balrog | { "dollar", 0x024 }, |
254 | 4d3b6f6e | balrog | { "percent", 0x025 }, |
255 | 4d3b6f6e | balrog | { "ampersand", 0x026 }, |
256 | 4d3b6f6e | balrog | { "apostrophe", 0x027 }, |
257 | 4d3b6f6e | balrog | { "parenleft", 0x028 }, |
258 | 4d3b6f6e | balrog | { "parenright", 0x029 }, |
259 | 4d3b6f6e | balrog | { "asterisk", 0x02a }, |
260 | 4d3b6f6e | balrog | { "plus", 0x02b }, |
261 | 4d3b6f6e | balrog | { "comma", 0x02c }, |
262 | 4d3b6f6e | balrog | { "minus", 0x02d }, |
263 | 4d3b6f6e | balrog | { "period", 0x02e }, |
264 | 4d3b6f6e | balrog | { "slash", 0x02f }, |
265 | 4d3b6f6e | balrog | { "0", 0x030 }, |
266 | 4d3b6f6e | balrog | { "1", 0x031 }, |
267 | 4d3b6f6e | balrog | { "2", 0x032 }, |
268 | 4d3b6f6e | balrog | { "3", 0x033 }, |
269 | 4d3b6f6e | balrog | { "4", 0x034 }, |
270 | 4d3b6f6e | balrog | { "5", 0x035 }, |
271 | 4d3b6f6e | balrog | { "6", 0x036 }, |
272 | 4d3b6f6e | balrog | { "7", 0x037 }, |
273 | 4d3b6f6e | balrog | { "8", 0x038 }, |
274 | 4d3b6f6e | balrog | { "9", 0x039 }, |
275 | 4d3b6f6e | balrog | { "colon", 0x03a }, |
276 | 4d3b6f6e | balrog | { "semicolon", 0x03b }, |
277 | 4d3b6f6e | balrog | { "less", 0x03c }, |
278 | 4d3b6f6e | balrog | { "equal", 0x03d }, |
279 | 4d3b6f6e | balrog | { "greater", 0x03e }, |
280 | 4d3b6f6e | balrog | { "question", 0x03f }, |
281 | 4d3b6f6e | balrog | { "at", 0x040 }, |
282 | 4d3b6f6e | balrog | { "A", 0x041 }, |
283 | 4d3b6f6e | balrog | { "B", 0x042 }, |
284 | 4d3b6f6e | balrog | { "C", 0x043 }, |
285 | 4d3b6f6e | balrog | { "D", 0x044 }, |
286 | 4d3b6f6e | balrog | { "E", 0x045 }, |
287 | 4d3b6f6e | balrog | { "F", 0x046 }, |
288 | 4d3b6f6e | balrog | { "G", 0x047 }, |
289 | 4d3b6f6e | balrog | { "H", 0x048 }, |
290 | 4d3b6f6e | balrog | { "I", 0x049 }, |
291 | 4d3b6f6e | balrog | { "J", 0x04a }, |
292 | 4d3b6f6e | balrog | { "K", 0x04b }, |
293 | 4d3b6f6e | balrog | { "L", 0x04c }, |
294 | 4d3b6f6e | balrog | { "M", 0x04d }, |
295 | 4d3b6f6e | balrog | { "N", 0x04e }, |
296 | 4d3b6f6e | balrog | { "O", 0x04f }, |
297 | 4d3b6f6e | balrog | { "P", 0x050 }, |
298 | 4d3b6f6e | balrog | { "Q", 0x051 }, |
299 | 4d3b6f6e | balrog | { "R", 0x052 }, |
300 | 4d3b6f6e | balrog | { "S", 0x053 }, |
301 | 4d3b6f6e | balrog | { "T", 0x054 }, |
302 | 4d3b6f6e | balrog | { "U", 0x055 }, |
303 | 4d3b6f6e | balrog | { "V", 0x056 }, |
304 | 4d3b6f6e | balrog | { "W", 0x057 }, |
305 | 4d3b6f6e | balrog | { "X", 0x058 }, |
306 | 4d3b6f6e | balrog | { "Y", 0x059 }, |
307 | 4d3b6f6e | balrog | { "Z", 0x05a }, |
308 | 4d3b6f6e | balrog | { "bracketleft", 0x05b }, |
309 | 4d3b6f6e | balrog | { "backslash", 0x05c }, |
310 | 4d3b6f6e | balrog | { "bracketright", 0x05d }, |
311 | 4d3b6f6e | balrog | { "asciicircum", 0x05e }, |
312 | 4d3b6f6e | balrog | { "underscore", 0x05f }, |
313 | 4d3b6f6e | balrog | { "grave", 0x060 }, |
314 | 4d3b6f6e | balrog | { "a", 0x061 }, |
315 | 4d3b6f6e | balrog | { "b", 0x062 }, |
316 | 4d3b6f6e | balrog | { "c", 0x063 }, |
317 | 4d3b6f6e | balrog | { "d", 0x064 }, |
318 | 4d3b6f6e | balrog | { "e", 0x065 }, |
319 | 4d3b6f6e | balrog | { "f", 0x066 }, |
320 | 4d3b6f6e | balrog | { "g", 0x067 }, |
321 | 4d3b6f6e | balrog | { "h", 0x068 }, |
322 | 4d3b6f6e | balrog | { "i", 0x069 }, |
323 | 4d3b6f6e | balrog | { "j", 0x06a }, |
324 | 4d3b6f6e | balrog | { "k", 0x06b }, |
325 | 4d3b6f6e | balrog | { "l", 0x06c }, |
326 | 4d3b6f6e | balrog | { "m", 0x06d }, |
327 | 4d3b6f6e | balrog | { "n", 0x06e }, |
328 | 4d3b6f6e | balrog | { "o", 0x06f }, |
329 | 4d3b6f6e | balrog | { "p", 0x070 }, |
330 | 4d3b6f6e | balrog | { "q", 0x071 }, |
331 | 4d3b6f6e | balrog | { "r", 0x072 }, |
332 | 4d3b6f6e | balrog | { "s", 0x073 }, |
333 | 4d3b6f6e | balrog | { "t", 0x074 }, |
334 | 4d3b6f6e | balrog | { "u", 0x075 }, |
335 | 4d3b6f6e | balrog | { "v", 0x076 }, |
336 | 4d3b6f6e | balrog | { "w", 0x077 }, |
337 | 4d3b6f6e | balrog | { "x", 0x078 }, |
338 | 4d3b6f6e | balrog | { "y", 0x079 }, |
339 | 4d3b6f6e | balrog | { "z", 0x07a }, |
340 | 4d3b6f6e | balrog | { "braceleft", 0x07b }, |
341 | 4d3b6f6e | balrog | { "bar", 0x07c }, |
342 | 4d3b6f6e | balrog | { "braceright", 0x07d }, |
343 | 4d3b6f6e | balrog | { "asciitilde", 0x07e }, |
344 | 4d3b6f6e | balrog | |
345 | 4d3b6f6e | balrog | /* Latin-1 extensions */
|
346 | 4d3b6f6e | balrog | { "nobreakspace", 0x0a0 }, |
347 | 4d3b6f6e | balrog | { "exclamdown", 0x0a1 }, |
348 | 4d3b6f6e | balrog | { "cent", 0x0a2 }, |
349 | 4d3b6f6e | balrog | { "sterling", 0x0a3 }, |
350 | 4d3b6f6e | balrog | { "currency", 0x0a4 }, |
351 | 4d3b6f6e | balrog | { "yen", 0x0a5 }, |
352 | 4d3b6f6e | balrog | { "brokenbar", 0x0a6 }, |
353 | 4d3b6f6e | balrog | { "section", 0x0a7 }, |
354 | 4d3b6f6e | balrog | { "diaeresis", 0x0a8 }, |
355 | 4d3b6f6e | balrog | { "copyright", 0x0a9 }, |
356 | 4d3b6f6e | balrog | { "ordfeminine", 0x0aa }, |
357 | 4d3b6f6e | balrog | { "guillemotleft", 0x0ab }, |
358 | 4d3b6f6e | balrog | { "notsign", 0x0ac }, |
359 | 4d3b6f6e | balrog | { "hyphen", 0x0ad }, |
360 | 4d3b6f6e | balrog | { "registered", 0x0ae }, |
361 | 4d3b6f6e | balrog | { "macron", 0x0af }, |
362 | 4d3b6f6e | balrog | { "degree", 0x0b0 }, |
363 | 4d3b6f6e | balrog | { "plusminus", 0x0b1 }, |
364 | 4d3b6f6e | balrog | { "twosuperior", 0x0b2 }, |
365 | 4d3b6f6e | balrog | { "threesuperior", 0x0b3 }, |
366 | 4d3b6f6e | balrog | { "acute", 0x0b4 }, |
367 | 4d3b6f6e | balrog | { "mu", 0x0b5 }, |
368 | 4d3b6f6e | balrog | { "paragraph", 0x0b6 }, |
369 | 4d3b6f6e | balrog | { "periodcentered", 0x0b7 }, |
370 | 4d3b6f6e | balrog | { "cedilla", 0x0b8 }, |
371 | 4d3b6f6e | balrog | { "onesuperior", 0x0b9 }, |
372 | 4d3b6f6e | balrog | { "masculine", 0x0ba }, |
373 | 4d3b6f6e | balrog | { "guillemotright", 0x0bb }, |
374 | 4d3b6f6e | balrog | { "onequarter", 0x0bc }, |
375 | 4d3b6f6e | balrog | { "onehalf", 0x0bd }, |
376 | 4d3b6f6e | balrog | { "threequarters", 0x0be }, |
377 | 4d3b6f6e | balrog | { "questiondown", 0x0bf }, |
378 | 4d3b6f6e | balrog | { "Agrave", 0x0c0 }, |
379 | 4d3b6f6e | balrog | { "Aacute", 0x0c1 }, |
380 | 4d3b6f6e | balrog | { "Acircumflex", 0x0c2 }, |
381 | 4d3b6f6e | balrog | { "Atilde", 0x0c3 }, |
382 | 4d3b6f6e | balrog | { "Adiaeresis", 0x0c4 }, |
383 | 4d3b6f6e | balrog | { "Aring", 0x0c5 }, |
384 | 4d3b6f6e | balrog | { "AE", 0x0c6 }, |
385 | 4d3b6f6e | balrog | { "Ccedilla", 0x0c7 }, |
386 | 4d3b6f6e | balrog | { "Egrave", 0x0c8 }, |
387 | 4d3b6f6e | balrog | { "Eacute", 0x0c9 }, |
388 | 4d3b6f6e | balrog | { "Ecircumflex", 0x0ca }, |
389 | 4d3b6f6e | balrog | { "Ediaeresis", 0x0cb }, |
390 | 4d3b6f6e | balrog | { "Igrave", 0x0cc }, |
391 | 4d3b6f6e | balrog | { "Iacute", 0x0cd }, |
392 | 4d3b6f6e | balrog | { "Icircumflex", 0x0ce }, |
393 | 4d3b6f6e | balrog | { "Idiaeresis", 0x0cf }, |
394 | 4d3b6f6e | balrog | { "ETH", 0x0d0 }, |
395 | 4d3b6f6e | balrog | { "Eth", 0x0d0 }, |
396 | 4d3b6f6e | balrog | { "Ntilde", 0x0d1 }, |
397 | 4d3b6f6e | balrog | { "Ograve", 0x0d2 }, |
398 | 4d3b6f6e | balrog | { "Oacute", 0x0d3 }, |
399 | 4d3b6f6e | balrog | { "Ocircumflex", 0x0d4 }, |
400 | 4d3b6f6e | balrog | { "Otilde", 0x0d5 }, |
401 | 4d3b6f6e | balrog | { "Odiaeresis", 0x0d6 }, |
402 | 4d3b6f6e | balrog | { "multiply", 0x0d7 }, |
403 | 4d3b6f6e | balrog | { "Ooblique", 0x0d8 }, |
404 | 4d3b6f6e | balrog | { "Oslash", 0x0d8 }, |
405 | 4d3b6f6e | balrog | { "Ugrave", 0x0d9 }, |
406 | 4d3b6f6e | balrog | { "Uacute", 0x0da }, |
407 | 4d3b6f6e | balrog | { "Ucircumflex", 0x0db }, |
408 | 4d3b6f6e | balrog | { "Udiaeresis", 0x0dc }, |
409 | 4d3b6f6e | balrog | { "Yacute", 0x0dd }, |
410 | 4d3b6f6e | balrog | { "THORN", 0x0de }, |
411 | 4d3b6f6e | balrog | { "Thorn", 0x0de }, |
412 | 4d3b6f6e | balrog | { "ssharp", 0x0df }, |
413 | 4d3b6f6e | balrog | { "agrave", 0x0e0 }, |
414 | 4d3b6f6e | balrog | { "aacute", 0x0e1 }, |
415 | 4d3b6f6e | balrog | { "acircumflex", 0x0e2 }, |
416 | 4d3b6f6e | balrog | { "atilde", 0x0e3 }, |
417 | 4d3b6f6e | balrog | { "adiaeresis", 0x0e4 }, |
418 | 4d3b6f6e | balrog | { "aring", 0x0e5 }, |
419 | 4d3b6f6e | balrog | { "ae", 0x0e6 }, |
420 | 4d3b6f6e | balrog | { "ccedilla", 0x0e7 }, |
421 | 4d3b6f6e | balrog | { "egrave", 0x0e8 }, |
422 | 4d3b6f6e | balrog | { "eacute", 0x0e9 }, |
423 | 4d3b6f6e | balrog | { "ecircumflex", 0x0ea }, |
424 | 4d3b6f6e | balrog | { "ediaeresis", 0x0eb }, |
425 | 4d3b6f6e | balrog | { "igrave", 0x0ec }, |
426 | 4d3b6f6e | balrog | { "iacute", 0x0ed }, |
427 | 4d3b6f6e | balrog | { "icircumflex", 0x0ee }, |
428 | 4d3b6f6e | balrog | { "idiaeresis", 0x0ef }, |
429 | 4d3b6f6e | balrog | { "eth", 0x0f0 }, |
430 | 4d3b6f6e | balrog | { "ntilde", 0x0f1 }, |
431 | 4d3b6f6e | balrog | { "ograve", 0x0f2 }, |
432 | 4d3b6f6e | balrog | { "oacute", 0x0f3 }, |
433 | 4d3b6f6e | balrog | { "ocircumflex", 0x0f4 }, |
434 | 4d3b6f6e | balrog | { "otilde", 0x0f5 }, |
435 | 4d3b6f6e | balrog | { "odiaeresis", 0x0f6 }, |
436 | 4d3b6f6e | balrog | { "division", 0x0f7 }, |
437 | 4d3b6f6e | balrog | { "oslash", 0x0f8 }, |
438 | 4d3b6f6e | balrog | { "ooblique", 0x0f8 }, |
439 | 4d3b6f6e | balrog | { "ugrave", 0x0f9 }, |
440 | 4d3b6f6e | balrog | { "uacute", 0x0fa }, |
441 | 4d3b6f6e | balrog | { "ucircumflex", 0x0fb }, |
442 | 4d3b6f6e | balrog | { "udiaeresis", 0x0fc }, |
443 | 4d3b6f6e | balrog | { "yacute", 0x0fd }, |
444 | 4d3b6f6e | balrog | { "thorn", 0x0fe }, |
445 | 4d3b6f6e | balrog | { "ydiaeresis", 0x0ff }, |
446 | 4d3b6f6e | balrog | |
447 | 4d3b6f6e | balrog | /* Special keys */
|
448 | 4d3b6f6e | balrog | { "BackSpace", 0x07f }, |
449 | 4d3b6f6e | balrog | { "Tab", '\t' }, |
450 | 4d3b6f6e | balrog | { "Return", '\r' }, |
451 | 4d3b6f6e | balrog | { "Right", 0x105 }, |
452 | 4d3b6f6e | balrog | { "Left", 0x104 }, |
453 | 4d3b6f6e | balrog | { "Up", 0x103 }, |
454 | 4d3b6f6e | balrog | { "Down", 0x102 }, |
455 | 4d3b6f6e | balrog | { "Page_Down", 0x152 }, |
456 | 4d3b6f6e | balrog | { "Page_Up", 0x153 }, |
457 | 4d3b6f6e | balrog | { "Insert", 0x14b }, |
458 | 4d3b6f6e | balrog | { "Delete", 0x14a }, |
459 | 4d3b6f6e | balrog | { "Home", 0x106 }, |
460 | 4d3b6f6e | balrog | { "End", 0x168 }, |
461 | 4d3b6f6e | balrog | { "F1", 0x109 }, |
462 | 4d3b6f6e | balrog | { "F2", 0x10a }, |
463 | 4d3b6f6e | balrog | { "F3", 0x10b }, |
464 | 4d3b6f6e | balrog | { "F4", 0x10c }, |
465 | 4d3b6f6e | balrog | { "F5", 0x10d }, |
466 | 4d3b6f6e | balrog | { "F6", 0x10e }, |
467 | 4d3b6f6e | balrog | { "F7", 0x10f }, |
468 | 4d3b6f6e | balrog | { "F8", 0x110 }, |
469 | 4d3b6f6e | balrog | { "F9", 0x111 }, |
470 | 4d3b6f6e | balrog | { "F10", 0x112 }, |
471 | 4d3b6f6e | balrog | { "F11", 0x113 }, |
472 | 4d3b6f6e | balrog | { "F12", 0x114 }, |
473 | 4d3b6f6e | balrog | { "F13", 0x115 }, |
474 | 4d3b6f6e | balrog | { "F14", 0x116 }, |
475 | 4d3b6f6e | balrog | { "F15", 0x117 }, |
476 | 4d3b6f6e | balrog | { "F16", 0x118 }, |
477 | 4d3b6f6e | balrog | { "F17", 0x119 }, |
478 | 4d3b6f6e | balrog | { "F18", 0x11a }, |
479 | 4d3b6f6e | balrog | { "F19", 0x11b }, |
480 | 4d3b6f6e | balrog | { "F20", 0x11c }, |
481 | 4d3b6f6e | balrog | { "Escape", 27 }, |
482 | 4d3b6f6e | balrog | |
483 | 4d3b6f6e | balrog | { 0, 0 }, |
484 | 4d3b6f6e | balrog | }; |