VirtualBox

source: vbox/trunk/src/VBox/Frontends/Common/VBoxKeyboard/xkbtoscan.h@ 35449

Last change on this file since 35449 was 35449, checked in by vboxsync, 14 years ago

FE/Common/VBoxKeyboard: only use Xkb to look up layout-dependent keys

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.9 KB
Line 
1/* $Id: xkbtoscan.h 35449 2011-01-10 11:14:10Z vboxsync $ */
2/** @file
3 * VBox/Frontends/Common - X11 keyboard driver translation tables (XT scan
4 * code mappings for XKB key names).
5 */
6
7/*
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 */
22
23/*
24 * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
25 * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
26 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
27 * a choice of LGPL license versions is made available with the language indicating
28 * that LGPLv2 or any later version may be used, or where a choice of which version
29 * of the LGPL is applied is otherwise unspecified.
30 */
31
32#ifndef ___VBox_keyboard_tables_h
33# error This file must be included from within keyboard-tables.h
34#endif /* ___VBox_keyboard_tables_h */
35
36enum { XKB_NAME_SIZE = 4 };
37
38/**
39 * This table contains a list of mappings of XKB key names to XT scan codes.
40 */
41struct
42{
43 const char cszName[XKB_NAME_SIZE];
44 unsigned uScan;
45} xkbMap[] =
46{
47/* { "ESC", 0x1 }, */
48 { "AE01", 0x2 },
49 { "AE02", 0x3 },
50 { "AE03", 0x4 },
51 { "AE04", 0x5 },
52 { "AE05", 0x6 },
53 { "AE06", 0x7 },
54 { "AE07", 0x8 },
55 { "AE08", 0x9 },
56 { "AE09", 0xa },
57 { "AE10", 0xb },
58 { "AE11", 0xc },
59 { "AE12", 0xd },
60/* { "BKSP", 0xe },
61 { "TAB", 0xf }, */
62 { "AD01", 0x10 },
63 { "AD02", 0x11 },
64 { "AD03", 0x12 },
65 { "AD04", 0x13 },
66 { "AD05", 0x14 },
67 { "AD06", 0x15 },
68 { "AD07", 0x16 },
69 { "AD08", 0x17 },
70 { "AD09", 0x18 },
71 { "AD10", 0x19 },
72 { "AD11", 0x1a },
73 { "AD12", 0x1b },
74/* { "RTRN", 0x1c },
75 { "LCTL", 0x1d }, */
76 { "AC01", 0x1e },
77 { "AC02", 0x1f },
78 { "AC03", 0x20 },
79 { "AC04", 0x21 },
80 { "AC05", 0x22 },
81 { "AC06", 0x23 },
82 { "AC07", 0x24 },
83 { "AC08", 0x25 },
84 { "AC09", 0x26 },
85 { "AC10", 0x27 },
86 { "AC11", 0x28 },
87 { "TLDE", 0x29 },
88/* { "LFSH", 0x2a }, */
89 { "BKSL", 0x2b },
90 { "AB01", 0x2c },
91 { "AB02", 0x2d },
92 { "AB03", 0x2e },
93 { "AB04", 0x2f },
94 { "AB05", 0x30 },
95 { "AB06", 0x31 },
96 { "AB07", 0x32 },
97 { "AB08", 0x33 },
98 { "AB09", 0x34 },
99 { "AB10", 0x35 },
100/* { "RTSH", 0x36 },
101 { "KPMU", 0x37 },
102 { "LALT", 0x38 },
103 { "SPCE", 0x39 },
104 { "CAPS", 0x3a },
105 { "FK01", 0x3b },
106 { "FK02", 0x3c },
107 { "FK03", 0x3d },
108 { "FK04", 0x3e },
109 { "FK05", 0x3f },
110 { "FK06", 0x40 },
111 { "FK07", 0x41 },
112 { "FK08", 0x42 },
113 { "FK09", 0x43 },
114 { "FK10", 0x44 },
115 { "NMLK", 0x145 },
116 { "SCLK", 0x46 },
117 { "KP7", 0x47 },
118 { "KP8", 0x48 },
119 { "KP9", 0x49 },
120 { "KPSU", 0x4a },
121 { "KP4", 0x4b },
122 { "KP5", 0x4c },
123 { "KP6", 0x4d },
124 { "KPAD", 0x4e },
125 { "KP1", 0x4f },
126 { "KP2", 0x50 },
127 { "KP3", 0x51 },
128 { "KP0", 0x52 },
129 { "KPDL", 0x53 },
130 { "LVL3", 0x138 },
131 { "LSGT", 0x56 },
132 { "FK11", 0x57 },
133 { "FK12", 0x58 },
134 { "AB11", 0x73 },
135 { "KATA", 0x0 },
136 { "HIRA", 0x0 },
137 { "HENK", 0x79 },
138 { "HKTG", 0x70 },
139 { "MUHE", 0x7b },
140 { "JPCM", 0x0 },
141 { "KPEN", 0x11c },
142 { "RCTL", 0x11d },
143 { "KPDV", 0x135 },
144 { "PRSC", 0x137 },
145 { "RALT", 0x138 },
146 { "LNFD", 0x0 },
147 { "HOME", 0x147 },
148 { "UP", 0x148 },
149 { "PGUP", 0x149 },
150 { "LEFT", 0x14b },
151 { "RGHT", 0x14d },
152 { "END", 0x14f },
153 { "DOWN", 0x150 },
154 { "PGDN", 0x151 },
155 { "INS", 0x152 },
156 { "DELE", 0x153 },
157 { "I120", 0x0 },
158 { "MUTE", 0x120 },
159 { "VOL-", 0x12e },
160 { "VOL+", 0x130 },
161 { "POWR", 0x15e },
162 { "KPEQ", 0x0 },
163 { "I126", 0x0 },
164 { "PAUS", 0x45 },
165 { "I128", 0x0 },
166 { "I129", 0x7e },
167 { "HNGL", 0xf2 },
168 { "HJCV", 0xf1 },
169 { "AE13", 0x7d },
170 { "LWIN", 0x15b },
171 { "RWIN", 0x15c },
172 { "COMP", 0x15d },
173 { "STOP", 0x168 },
174 { "AGAI", 0x105 },
175 { "PROP", 0x106 },
176 { "UNDO", 0x107 },
177 { "FRNT", 0x10c },
178 { "COPY", 0x118 },
179 { "OPEN", 0x65 },
180 { "PAST", 0x10a },
181 { "FIND", 0x110 },
182 { "CUT", 0x117 },
183 { "HELP", 0x175 },
184 { "I147", 0x0 },
185 { "I148", 0x0 },
186 { "I149", 0x0 },
187 { "I150", 0x15f },
188 { "I151", 0x163 },
189 { "I152", 0x0 },
190 { "I153", 0x119 },
191 { "I154", 0x0 },
192 { "I155", 0x0 },
193 { "I156", 0x0 },
194 { "I157", 0x0 },
195 { "I158", 0x0 },
196 { "I159", 0x0 },
197 { "I160", 0x120 },
198 { "I161", 0x0 },
199 { "I162", 0x122 },
200 { "I163", 0x16c },
201 { "I164", 0x124 },
202 { "I165", 0x15f },
203 { "I166", 0x16a },
204 { "I167", 0x169 },
205 { "I168", 0x0 },
206 { "I169", 0x0 },
207 { "I170", 0x0 },
208 { "I171", 0x119 },
209 { "I172", 0x122 },
210 { "I173", 0x110 },
211 { "I174", 0x12e },
212 { "I175", 0x0 },
213 { "I176", 0x130 },
214 { "I177", 0x0 },
215 { "I178", 0x0 },
216 { "I179", 0x0 },
217 { "I180", 0x132 },
218 { "I181", 0x167 },
219 { "I182", 0x140 },
220 { "I183", 0x0 },
221 { "I184", 0x0 },
222 { "I185", 0x10b },
223 { "I186", 0x18b },
224 { "I187", 0x0 },
225 { "I188", 0x0 },
226 { "I189", 0x0 },
227 { "I190", 0x105 },
228 { "FK13", 0x0 },
229 { "FK14", 0x0 },
230 { "FK15", 0x0 },
231 { "FK16", 0x0 },
232 { "FK17", 0x0 },
233 { "FK18", 0x0 },
234 { "FK19", 0x0 },
235 { "FK20", 0x0 },
236 { "FK21", 0x0 },
237 { "FK22", 0x0 },
238 { "FK23", 0x0 },
239 { "FK24", 0x0 },
240 { "MDSW", 0x138 },
241 { "ALT", 0x0 },
242 { "META", 0x0 },
243 { "SUPR", 0x0 },
244 { "HYPR", 0x0 },
245 { "I208", 0x122 },
246 { "I209", 0x122 },
247 { "I210", 0x0 },
248 { "I211", 0x0 },
249 { "I212", 0x0 },
250 { "I213", 0x0 },
251 { "I214", 0x140 },
252 { "I215", 0x122 },
253 { "I216", 0x169 },
254 { "I217", 0x0 },
255 { "I218", 0x137 },
256 { "I219", 0x0 },
257 { "I220", 0x0 },
258 { "I221", 0x0 },
259 { "I222", 0x0 },
260 { "I223", 0x0 },
261 { "I224", 0x0 },
262 { "I225", 0x165 },
263 { "I226", 0x0 },
264 { "I227", 0x0 },
265 { "I228", 0x0 },
266 { "I229", 0x165 },
267 { "I230", 0x166 },
268 { "I231", 0x167 },
269 { "I232", 0x168 },
270 { "I233", 0x169 },
271 { "I234", 0x16a },
272 { "I235", 0x16b },
273 { "I236", 0x16c },
274 { "I237", 0x16d },
275 { "I238", 0x0 },
276 { "I239", 0x143 },
277 { "I240", 0x141 },
278 { "I241", 0x0 },
279 { "I242", 0x157 },
280 { "I243", 0x105 },
281 { "I244", 0x0 },
282 { "I245", 0x0 },
283 { "I246", 0x0 },
284 { "I247", 0x0 },
285 { "I248", 0x0 },
286 { "I249", 0x0 },
287 { "I250", 0x0 },
288 { "I251", 0x0 },
289 { "I252", 0x0 },
290 { "I253", 0x0 } */
291};
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette