Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / ui / events / keycodes / dom4 / keycode_converter_data.h
blob9cdeb5f8ad0091200a821baf68a637972fd0fa66
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_EVENTS_KEYCODES_DOM4_KEYCODE_CONVERTER_DATA_H_
6 #define UI_EVENTS_KEYCODES_DOM4_KEYCODE_CONVERTER_DATA_H_
8 // Data in this file was created by referencing:
9 // USB HID Usage Tables (v1.11) 27 June 2001
10 // HIToolbox/Events.h (Mac)
12 const KeycodeMapEntry usb_keycode_map[] = {
14 // USB XKB Win Mac Code
15 USB_KEYMAP(0x000000, 0x0000, 0x0000, 0xffff, NULL), // Invalid
17 // =========================================
18 // USB Usage Page 0x01: Generic Desktop Page
19 // =========================================
21 // Sleep could be encoded as USB#0c0032, but there's no corresponding WakeUp
22 // in the 0x0c USB page.
24 // USB XKB Win Mac
25 USB_KEYMAP(0x010082, 0x0096, 0x0000, 0xffff, NULL), // SystemSleep
26 USB_KEYMAP(0x010083, 0x0097, 0x0000, 0xffff, NULL), // SystemWakeUp
28 // =========================================
29 // USB Usage Page 0x07: Keyboard/Keypad Page
30 // =========================================
32 // TODO(garykac):
33 // XKB#005c ISO Level3 Shift (AltGr)
34 // XKB#005e <>||
35 // XKB#006d Linefeed
36 // XKB#008a SunProps cf. USB#0700a3 CrSel/Props
37 // XKB#008e SunOpen
38 // Mac#003f kVK_Function
39 // Mac#000a kVK_ISO_Section (ISO keyboards only)
40 // Mac#0066 kVK_JIS_Eisu (USB#07008a Henkan?)
42 // USB XKB Win Mac
43 USB_KEYMAP(0x070000, 0x0000, 0x0000, 0xffff, NULL), // Reserved
44 USB_KEYMAP(0x070001, 0x0000, 0x0000, 0xffff, NULL), // ErrorRollOver
45 USB_KEYMAP(0x070002, 0x0000, 0x0000, 0xffff, NULL), // POSTFail
46 USB_KEYMAP(0x070003, 0x0000, 0x0000, 0xffff, NULL), // ErrorUndefined
47 USB_KEYMAP(0x070004, 0x0026, 0x001e, 0x0000, "KeyA"), // aA
48 USB_KEYMAP(0x070005, 0x0038, 0x0030, 0x000b, "KeyB"), // bB
49 USB_KEYMAP(0x070006, 0x0036, 0x002e, 0x0008, "KeyC"), // cC
50 USB_KEYMAP(0x070007, 0x0028, 0x0020, 0x0002, "KeyD"), // dD
52 USB_KEYMAP(0x070008, 0x001a, 0x0012, 0x000e, "KeyE"), // eEo
53 USB_KEYMAP(0x070009, 0x0029, 0x0021, 0x0003, "KeyF"), // fF
54 USB_KEYMAP(0x07000a, 0x002a, 0x0022, 0x0005, "KeyG"), // gG
55 USB_KEYMAP(0x07000b, 0x002b, 0x0023, 0x0004, "KeyH"), // hH
56 USB_KEYMAP(0x07000c, 0x001f, 0x0017, 0x0022, "KeyI"), // iI
57 USB_KEYMAP(0x07000d, 0x002c, 0x0024, 0x0026, "KeyJ"), // jJ
58 USB_KEYMAP(0x07000e, 0x002d, 0x0025, 0x0028, "KeyK"), // kK
59 USB_KEYMAP(0x07000f, 0x002e, 0x0026, 0x0025, "KeyL"), // lL
61 USB_KEYMAP(0x070010, 0x003a, 0x0032, 0x002e, "KeyM"), // mM
62 USB_KEYMAP(0x070011, 0x0039, 0x0031, 0x002d, "KeyN"), // nN
63 USB_KEYMAP(0x070012, 0x0020, 0x0018, 0x001f, "KeyO"), // oO
64 USB_KEYMAP(0x070013, 0x0021, 0x0019, 0x0023, "KeyP"), // pP
65 USB_KEYMAP(0x070014, 0x0018, 0x0010, 0x000c, "KeyQ"), // qQ
66 USB_KEYMAP(0x070015, 0x001b, 0x0013, 0x000f, "KeyR"), // rR
67 USB_KEYMAP(0x070016, 0x0027, 0x001f, 0x0001, "KeyS"), // sS
68 USB_KEYMAP(0x070017, 0x001c, 0x0014, 0x0011, "KeyT"), // tT
70 USB_KEYMAP(0x070018, 0x001e, 0x0016, 0x0020, "KeyU"), // uU
71 USB_KEYMAP(0x070019, 0x0037, 0x002f, 0x0009, "KeyV"), // vV
72 USB_KEYMAP(0x07001a, 0x0019, 0x0011, 0x000d, "KeyW"), // wW
73 USB_KEYMAP(0x07001b, 0x0035, 0x002d, 0x0007, "KeyX"), // xX
74 USB_KEYMAP(0x07001c, 0x001d, 0x0015, 0x0010, "KeyY"), // yY
75 USB_KEYMAP(0x07001d, 0x0034, 0x002c, 0x0006, "KeyZ"), // zZ
76 USB_KEYMAP(0x07001e, 0x000a, 0x0002, 0x0012, "Digit1"), // 1!
77 USB_KEYMAP(0x07001f, 0x000b, 0x0003, 0x0013, "Digit2"), // 2@
79 USB_KEYMAP(0x070020, 0x000c, 0x0004, 0x0014, "Digit3"), // 3#
80 USB_KEYMAP(0x070021, 0x000d, 0x0005, 0x0015, "Digit4"), // 4$
81 USB_KEYMAP(0x070022, 0x000e, 0x0006, 0x0017, "Digit5"), // 5%
82 USB_KEYMAP(0x070023, 0x000f, 0x0007, 0x0016, "Digit6"), // 6^
83 USB_KEYMAP(0x070024, 0x0010, 0x0008, 0x001a, "Digit7"), // 7&
84 USB_KEYMAP(0x070025, 0x0011, 0x0009, 0x001c, "Digit8"), // 8*
85 USB_KEYMAP(0x070026, 0x0012, 0x000a, 0x0019, "Digit9"), // 9(
86 USB_KEYMAP(0x070027, 0x0013, 0x000b, 0x001d, "Digit0"), // 0)
88 USB_KEYMAP(0x070028, 0x0024, 0x001c, 0x0024, "Enter"),
89 USB_KEYMAP(0x070029, 0x0009, 0x0001, 0x0035, "Escape"),
90 USB_KEYMAP(0x07002a, 0x0016, 0x000e, 0x0033, "Backspace"),
91 USB_KEYMAP(0x07002b, 0x0017, 0x000f, 0x0030, "Tab"),
92 USB_KEYMAP(0x07002c, 0x0041, 0x0039, 0x0031, "Space"), // Spacebar
93 USB_KEYMAP(0x07002d, 0x0014, 0x000c, 0x001b, "Minus"), // -_
94 USB_KEYMAP(0x07002e, 0x0015, 0x000d, 0x0018, "Equal"), // =+
95 USB_KEYMAP(0x07002f, 0x0022, 0x001a, 0x0021, "BracketLeft"),// [{
97 USB_KEYMAP(0x070030, 0x0023, 0x001b, 0x001e, "BracketRight"), // ]}
98 USB_KEYMAP(0x070031, 0x0033, 0x002b, 0x002a, "Backslash"), // \| (US keyboard only)
99 // USB#070032 never appears on keyboards that have USB#070031.
100 // Platforms use the same scancode as for the two keys.
101 // The keycap varies on international keyboards:
102 // Dan: '* Dutch: <> Ger: #' UK: #~
103 // TODO(garykac): Verify Mac intl keyboard.
104 //USB_KEYMAP(0x070032, 0x0033, 0x002b, 0x002a, "IntlHash"), // #~ (Non-US)
105 USB_KEYMAP(0x070033, 0x002f, 0x0027, 0x0029, "Semicolon"), // ;:
106 USB_KEYMAP(0x070034, 0x0030, 0x0028, 0x0027, "Quote"), // '"
107 USB_KEYMAP(0x070035, 0x0031, 0x0029, 0x0032, "Backquote"), // `~
108 USB_KEYMAP(0x070036, 0x003b, 0x0033, 0x002b, "Comma"), // ,<
109 USB_KEYMAP(0x070037, 0x003c, 0x0034, 0x002f, "Period"), // .>
111 USB_KEYMAP(0x070038, 0x003d, 0x0035, 0x002c, "Slash"), // /?
112 // TODO(garykac): CapsLock requires special handling for each platform.
113 USB_KEYMAP(0x070039, 0x0042, 0x003a, 0x0039, "CapsLock"),
114 USB_KEYMAP(0x07003a, 0x0043, 0x003b, 0x007a, "F1"),
115 USB_KEYMAP(0x07003b, 0x0044, 0x003c, 0x0078, "F2"),
116 USB_KEYMAP(0x07003c, 0x0045, 0x003d, 0x0063, "F3"),
117 USB_KEYMAP(0x07003d, 0x0046, 0x003e, 0x0076, "F4"),
118 USB_KEYMAP(0x07003e, 0x0047, 0x003f, 0x0060, "F5"),
119 USB_KEYMAP(0x07003f, 0x0048, 0x0040, 0x0061, "F6"),
121 USB_KEYMAP(0x070040, 0x0049, 0x0041, 0x0062, "F7"),
122 USB_KEYMAP(0x070041, 0x004a, 0x0042, 0x0064, "F8"),
123 USB_KEYMAP(0x070042, 0x004b, 0x0043, 0x0065, "F9"),
124 USB_KEYMAP(0x070043, 0x004c, 0x0044, 0x006d, "F10"),
125 USB_KEYMAP(0x070044, 0x005f, 0x0057, 0x0067, "F11"),
126 USB_KEYMAP(0x070045, 0x0060, 0x0058, 0x006f, "F12"),
127 // PrintScreen is effectively F13 on Mac OS X.
128 USB_KEYMAP(0x070046, 0x006b, 0xe037, 0xffff, "PrintScreen"),
129 USB_KEYMAP(0x070047, 0x004e, 0x0046, 0xffff, "ScrollLock"),
131 USB_KEYMAP(0x070048, 0x007f, 0x0000, 0xffff, "Pause"),
132 // Labeled "Help/Insert" on Mac.
133 USB_KEYMAP(0x070049, 0x0076, 0xe052, 0x0072, "Insert"),
134 USB_KEYMAP(0x07004a, 0x006e, 0xe047, 0x0073, "Home"),
135 USB_KEYMAP(0x07004b, 0x0070, 0xe049, 0x0074, "PageUp"),
136 // Delete (Forward Delete)
137 USB_KEYMAP(0x07004c, 0x0077, 0xe053, 0x0075, "Delete"),
138 USB_KEYMAP(0x07004d, 0x0073, 0xe04f, 0x0077, "End"),
139 USB_KEYMAP(0x07004e, 0x0075, 0xe051, 0x0079, "PageDown"),
140 USB_KEYMAP(0x07004f, 0x0072, 0xe04d, 0x007c, "ArrowRight"),
142 USB_KEYMAP(0x070050, 0x0071, 0xe04b, 0x007b, "ArrowLeft"),
143 USB_KEYMAP(0x070051, 0x0074, 0xe050, 0x007d, "ArrowDown"),
144 USB_KEYMAP(0x070052, 0x006f, 0xe048, 0x007e, "ArrowUp"),
145 USB_KEYMAP(0x070053, 0x004d, 0x0045, 0x0047, "NumLock"), // Keypad_NumLock Clear
146 USB_KEYMAP(0x070054, 0x006a, 0xe035, 0x004b, "NumpadDivide"), // Keypad_/
147 USB_KEYMAP(0x070055, 0x003f, 0x0037, 0x0043, "NumpadMultiply"),// Keypad_*
148 USB_KEYMAP(0x070056, 0x0052, 0x004a, 0x004e, "NumpadSubtract"),// Keypad_-
149 USB_KEYMAP(0x070057, 0x0056, 0x004e, 0x0045, "NumpadAdd"), // Keypad_+
151 USB_KEYMAP(0x070058, 0x0068, 0xe01c, 0x004c, "NumpadEnter"), // Keypad_Enter
152 USB_KEYMAP(0x070059, 0x0057, 0x004f, 0x0053, "Numpad1"), // Keypad_1 End
153 USB_KEYMAP(0x07005a, 0x0058, 0x0050, 0x0054, "Numpad2"), // Keypad_2 DownArrow
154 USB_KEYMAP(0x07005b, 0x0059, 0x0051, 0x0055, "Numpad3"), // Keypad_3 PageDown
155 USB_KEYMAP(0x07005c, 0x0053, 0x004b, 0x0056, "Numpad4"), // Keypad_4 LeftArrow
156 USB_KEYMAP(0x07005d, 0x0054, 0x004c, 0x0057, "Numpad5"), // Keypad_5
157 USB_KEYMAP(0x07005e, 0x0055, 0x004d, 0x0058, "Numpad6"), // Keypad_6 RightArrow
158 USB_KEYMAP(0x07005f, 0x004f, 0x0047, 0x0059, "Numpad7"), // Keypad_7 Home
160 USB_KEYMAP(0x070060, 0x0050, 0x0048, 0x005b, "Numpad8"), // Keypad_8 UpArrow
161 USB_KEYMAP(0x070061, 0x0051, 0x0049, 0x005c, "Numpad9"), // Keypad_9 PageUp
162 USB_KEYMAP(0x070062, 0x005a, 0x0052, 0x0052, "Numpad0"), // Keypad_0 Insert
163 USB_KEYMAP(0x070063, 0x005b, 0x0053, 0x0041, "NumpadDecimal"), // Keypad_. Delete
164 // USB#070064 is not present on US keyboard.
165 // This key is typically located near LeftShift key.
166 // The keycap varies on international keyboards:
167 // Dan: <> Dutch: ][ Ger: <> UK: \|
168 USB_KEYMAP(0x070064, 0x005e, 0x0056, 0x000a, "IntlBackslash"), // Non-US \|
169 // AppMenu (next to RWin key)
170 USB_KEYMAP(0x070065, 0x0087, 0xe05d, 0x006e, "ContextMenu"),
171 USB_KEYMAP(0x070066, 0x007c, 0x0000, 0xffff, "Power"),
172 USB_KEYMAP(0x070067, 0x007d, 0x0000, 0x0051, "NumpadEqual"), // Keypad_=
174 USB_KEYMAP(0x070068, 0x0000, 0x005b, 0x0069, "F13"),
175 USB_KEYMAP(0x070069, 0x0000, 0x005c, 0x006b, "F14"),
176 USB_KEYMAP(0x07006a, 0x0000, 0x005d, 0x0071, "F15"),
177 USB_KEYMAP(0x07006b, 0x0000, 0x0063, 0x006a, "F16"),
178 USB_KEYMAP(0x07006c, 0x0000, 0x0064, 0x0040, "F17"),
179 USB_KEYMAP(0x07006d, 0x0000, 0x0065, 0x004f, "F18"),
180 USB_KEYMAP(0x07006e, 0x0000, 0x0066, 0x0050, "F19"),
181 USB_KEYMAP(0x07006f, 0x0000, 0x0067, 0x005a, "F20"),
183 USB_KEYMAP(0x070070, 0x0000, 0x0068, 0xffff, "F21"),
184 USB_KEYMAP(0x070071, 0x0000, 0x0069, 0xffff, "F22"),
185 USB_KEYMAP(0x070072, 0x0000, 0x006a, 0xffff, "F23"),
186 USB_KEYMAP(0x070073, 0x0000, 0x006b, 0xffff, "F24"),
187 USB_KEYMAP(0x070074, 0x0000, 0x0000, 0xffff, NULL), // Execute
188 USB_KEYMAP(0x070075, 0x0092, 0xe03b, 0xffff, "Help"),
189 USB_KEYMAP(0x070076, 0x0093, 0x0000, 0xffff, NULL), // Menu
190 //USB_KEYMAP(0x070077, 0x0000, 0x0000, 0xffff, NULL), // Select
192 //USB_KEYMAP(0x070078, 0x0000, 0x0000, 0xffff, NULL), // Stop
193 USB_KEYMAP(0x070079, 0x0089, 0x0000, 0xffff, NULL), // Again (Redo)
194 USB_KEYMAP(0x07007a, 0x008b, 0xe008, 0xffff, "Undo"),
195 USB_KEYMAP(0x07007b, 0x0091, 0xe017, 0xffff, "Cut"),
196 USB_KEYMAP(0x07007c, 0x008d, 0xe018, 0xffff, "Copy"),
197 USB_KEYMAP(0x07007d, 0x008f, 0xe00a, 0xffff, "Paste"),
198 USB_KEYMAP(0x07007e, 0x0090, 0x0000, 0xffff, NULL), // Find
199 USB_KEYMAP(0x07007f, 0x0079, 0xe020, 0x004a, "VolumeMute"),
201 USB_KEYMAP(0x070080, 0x007b, 0xe030, 0x0048, "VolumeUp"),
202 USB_KEYMAP(0x070081, 0x007a, 0xe02e, 0x0049, "VolumeDown"),
203 //USB_KEYMAP(0x070082, 0x0000, 0x0000, 0xffff, NULL), // LockingCapsLock
204 //USB_KEYMAP(0x070083, 0x0000, 0x0000, 0xffff, NULL), // LockingNumLock
205 //USB_KEYMAP(0x070084, 0x0000, 0x0000, 0xffff, NULL), // LockingScrollLock
206 // USB#070085 is used as Brazilian Keypad_.
207 USB_KEYMAP(0x070085, 0x0000, 0x0000, 0x005f, "NumpadComma"), // Keypad_Comma
209 // International1
210 // USB#070086 is used on AS/400 keyboards. Standard Keypad_= is USB#070067.
211 //USB_KEYMAP(0x070086, 0x0000, 0x0000, 0xffff, NULL), // Keypad_=
212 // USB#070087 is used for Brazilian /? and Japanese _ 'ro'.
213 USB_KEYMAP(0x070087, 0x0061, 0x0000, 0x005e, "IntlRo"),
214 // International2
215 // USB#070088 is used as Japanese Hiragana/Katakana key.
216 USB_KEYMAP(0x070088, 0x0065, 0x0000, 0x0068, "KanaMode"),
217 // International3
218 // USB#070089 is used as Japanese Yen key.
219 USB_KEYMAP(0x070089, 0x0084, 0x007d, 0x005d, "IntlYen"),
220 // International4
221 // USB#07008a is used as Japanese Henkan (Convert) key.
222 USB_KEYMAP(0x07008a, 0x0064, 0x0000, 0xffff, "Convert"),
223 // International5
224 // USB#07008b is used as Japanese Muhenkan (No-convert) key.
225 USB_KEYMAP(0x07008b, 0x0066, 0x0000, 0xffff, "NoConvert"),
226 //USB_KEYMAP(0x07008c, 0x0000, 0x0000, 0xffff, NULL), // International6
227 //USB_KEYMAP(0x07008d, 0x0000, 0x0000, 0xffff, NULL), // International7
228 //USB_KEYMAP(0x07008e, 0x0000, 0x0000, 0xffff, NULL), // International8
229 //USB_KEYMAP(0x07008f, 0x0000, 0x0000, 0xffff, NULL), // International9
231 // LANG1
232 // USB#070090 is used as Korean Hangul/English toggle key.
233 USB_KEYMAP(0x070090, 0x0082, 0x0000, 0xffff, "HangulMode"),
234 // LANG2
235 // USB#070091 is used as Korean Hanja conversion key.
236 USB_KEYMAP(0x070091, 0x0083, 0x0000, 0xffff, "Hanja"),
237 // LANG3
238 // USB#070092 is used as Japanese Katakana key.
239 USB_KEYMAP(0x070092, 0x0062, 0x0000, 0xffff, NULL),
240 // LANG4
241 // USB#070093 is used as Japanese Hiragana key.
242 USB_KEYMAP(0x070093, 0x0063, 0x0000, 0xffff, NULL),
243 // LANG5
244 // USB#070094 is used as Japanese Zenkaku/Hankaku (Fullwidth/halfwidth) key.
245 //USB_KEYMAP(0x070094, 0x0000, 0x0000, 0xffff, NULL),
246 //USB_KEYMAP(0x070095, 0x0000, 0x0000, 0xffff, NULL), // LANG6
247 //USB_KEYMAP(0x070096, 0x0000, 0x0000, 0xffff, NULL), // LANG7
248 //USB_KEYMAP(0x070097, 0x0000, 0x0000, 0xffff, NULL), // LANG8
249 //USB_KEYMAP(0x070098, 0x0000, 0x0000, 0xffff, NULL), // LANG9
251 //USB_KEYMAP(0x070099, 0x0000, 0x0000, 0xffff, NULL), // AlternateErase
252 //USB_KEYMAP(0x07009a, 0x0000, 0x0000, 0xffff, NULL), // SysReq/Attention
253 USB_KEYMAP(0x07009b, 0x0088, 0x0000, 0xffff, "Cancel"),
254 //USB_KEYMAP(0x07009c, 0x0000, 0x0000, 0xffff, NULL), // Clear
255 //USB_KEYMAP(0x07009d, 0x0000, 0x0000, 0xffff, NULL), // Prior
256 //USB_KEYMAP(0x07009e, 0x0000, 0x0000, 0xffff, NULL), // Return
257 //USB_KEYMAP(0x07009f, 0x0000, 0x0000, 0xffff, NULL), // Separator
259 //USB_KEYMAP(0x0700a0, 0x0000, 0x0000, 0xffff, NULL), // Out
260 //USB_KEYMAP(0x0700a1, 0x0000, 0x0000, 0xffff, NULL), // Oper
261 //USB_KEYMAP(0x0700a2, 0x0000, 0x0000, 0xffff, NULL), // Clear/Again
262 //USB_KEYMAP(0x0700a3, 0x0000, 0x0000, 0xffff, NULL), // CrSel/Props
263 //USB_KEYMAP(0x0700a4, 0x0000, 0x0000, 0xffff, NULL), // ExSel
265 //USB_KEYMAP(0x0700b0, 0x0000, 0x0000, 0xffff, NULL), // Keypad_00
266 //USB_KEYMAP(0x0700b1, 0x0000, 0x0000, 0xffff, NULL), // Keypad_000
267 //USB_KEYMAP(0x0700b2, 0x0000, 0x0000, 0xffff, NULL), // ThousandsSeparator
268 //USB_KEYMAP(0x0700b3, 0x0000, 0x0000, 0xffff, NULL), // DecimalSeparator
269 //USB_KEYMAP(0x0700b4, 0x0000, 0x0000, 0xffff, NULL), // CurrencyUnit
270 //USB_KEYMAP(0x0700b5, 0x0000, 0x0000, 0xffff, NULL), // CurrencySubunit
271 USB_KEYMAP(0x0700b6, 0x00bb, 0x0000, 0xffff, "NumpadParenLeft"), // Keypad_(
272 USB_KEYMAP(0x0700b7, 0x00bc, 0x0000, 0xffff, "NumpadParenRight"), // Keypad_)
274 //USB_KEYMAP(0x0700b8, 0x0000, 0x0000, 0xffff, NULL), // Keypad_{
275 //USB_KEYMAP(0x0700b9, 0x0000, 0x0000, 0xffff, NULL), // Keypad_}
276 //USB_KEYMAP(0x0700ba, 0x0000, 0x0000, 0xffff, NULL), // Keypad_Tab
277 //USB_KEYMAP(0x0700bb, 0x0000, 0x0000, 0xffff, NULL), // Keypad_Backspace
278 //USB_KEYMAP(0x0700bc, 0x0000, 0x0000, 0xffff, NULL), // Keypad_A
279 //USB_KEYMAP(0x0700bd, 0x0000, 0x0000, 0xffff, NULL), // Keypad_B
280 //USB_KEYMAP(0x0700be, 0x0000, 0x0000, 0xffff, NULL), // Keypad_C
281 //USB_KEYMAP(0x0700bf, 0x0000, 0x0000, 0xffff, NULL), // Keypad_D
283 //USB_KEYMAP(0x0700c0, 0x0000, 0x0000, 0xffff, NULL), // Keypad_E
284 //USB_KEYMAP(0x0700c1, 0x0000, 0x0000, 0xffff, NULL), // Keypad_F
285 //USB_KEYMAP(0x0700c2, 0x0000, 0x0000, 0xffff, NULL), // Keypad_Xor
286 //USB_KEYMAP(0x0700c3, 0x0000, 0x0000, 0xffff, NULL), // Keypad_^
287 //USB_KEYMAP(0x0700c4, 0x0000, 0x0000, 0xffff, NULL), // Keypad_%
288 //USB_KEYMAP(0x0700c5, 0x0000, 0x0000, 0xffff, NULL), // Keypad_<
289 //USB_KEYMAP(0x0700c6, 0x0000, 0x0000, 0xffff, NULL), // Keypad_>
290 //USB_KEYMAP(0x0700c7, 0x0000, 0x0000, 0xffff, NULL), // Keypad_&
292 //USB_KEYMAP(0x0700c8, 0x0000, 0x0000, 0xffff, NULL), // Keypad_&&
293 //USB_KEYMAP(0x0700c9, 0x0000, 0x0000, 0xffff, NULL), // Keypad_|
294 //USB_KEYMAP(0x0700ca, 0x0000, 0x0000, 0xffff, NULL), // Keypad_||
295 //USB_KEYMAP(0x0700cb, 0x0000, 0x0000, 0xffff, NULL), // Keypad_:
296 //USB_KEYMAP(0x0700cc, 0x0000, 0x0000, 0xffff, NULL), // Keypad_#
297 //USB_KEYMAP(0x0700cd, 0x0000, 0x0000, 0xffff, NULL), // Keypad_Space
298 //USB_KEYMAP(0x0700ce, 0x0000, 0x0000, 0xffff, NULL), // Keypad_@
299 //USB_KEYMAP(0x0700cf, 0x0000, 0x0000, 0xffff, NULL), // Keypad_!
301 //USB_KEYMAP(0x0700d0, 0x0000, 0x0000, 0xffff, NULL), // Keypad_MemoryStore
302 //USB_KEYMAP(0x0700d1, 0x0000, 0x0000, 0xffff, NULL), // Keypad_MemoryRecall
303 //USB_KEYMAP(0x0700d2, 0x0000, 0x0000, 0xffff, NULL), // Keypad_MemoryClear
304 //USB_KEYMAP(0x0700d3, 0x0000, 0x0000, 0xffff, NULL), // Keypad_MemoryAdd
305 //USB_KEYMAP(0x0700d4, 0x0000, 0x0000, 0xffff, NULL), // Keypad_MemorySubtract
306 //USB_KEYMAP(0x0700d5, 0x0000, 0x0000, 0xffff, NULL), // Keypad_MemoryMultiply
307 //USB_KEYMAP(0x0700d6, 0x0000, 0x0000, 0xffff, NULL), // Keypad_MemoryDivide
308 USB_KEYMAP(0x0700d7, 0x007e, 0x0000, 0xffff, "NumpadChangeSign"), // Keypad_+/-
310 //USB_KEYMAP(0x0700d8, 0x0000, 0x0000, 0xffff, NULL), // Keypad_Clear
311 //USB_KEYMAP(0x0700d9, 0x0000, 0x0000, 0xffff, NULL), // Keypad_ClearEntry
312 //USB_KEYMAP(0x0700da, 0x0000, 0x0000, 0xffff, NULL), // Keypad_Binary
313 //USB_KEYMAP(0x0700db, 0x0000, 0x0000, 0xffff, NULL), // Keypad_Octal
314 USB_KEYMAP(0x0700dc, 0x0081, 0x0000, 0xffff, NULL), // Keypad_Decimal
315 //USB_KEYMAP(0x0700dd, 0x0000, 0x0000, 0xffff, NULL), // Keypad_Hexadecimal
316 // USB#0700de - #0700df are reserved.
318 USB_KEYMAP(0x0700e0, 0x0025, 0x001d, 0x003b, "ControlLeft"),
319 USB_KEYMAP(0x0700e1, 0x0032, 0x002a, 0x0038, "ShiftLeft"),
320 USB_KEYMAP(0x0700e2, 0x0040, 0x0038, 0x003a, "AltLeft"), // LeftAlt/Option
321 USB_KEYMAP(0x0700e3, 0x0085, 0xe05b, 0x0037, "OSLeft"), // LeftGUI/Super/Win/Cmd
322 USB_KEYMAP(0x0700e4, 0x0069, 0xe01d, 0x003e, "ControlRight"),
323 USB_KEYMAP(0x0700e5, 0x003e, 0x0036, 0x003c, "ShiftRight"),
324 USB_KEYMAP(0x0700e6, 0x006c, 0xe038, 0x003d, "AltRight"), // RightAlt/Option
325 USB_KEYMAP(0x0700e7, 0x0086, 0xe05c, 0x0036, "OSRight"), // RightGUI/Super/Win/Cmd
327 // USB#0700e8 - #07ffff are reserved
329 // ==================================
330 // USB Usage Page 0x0c: Consumer Page
331 // ==================================
332 // AL = Application Launch
333 // AC = Application Control
335 // TODO(garykac): Many XF86 keys have multiple scancodes mapping to them.
336 // We need to map all of these into a canonical USB scancode without
337 // confusing the reverse-lookup - most likely by simply returning the first
338 // found match.
340 // TODO(garykac): Find appropriate mappings for:
341 // Win#e06b LaunchApp1 (My Computer?)
342 // Win#e021 LaunchApp2 (Calculator?)
343 // Win#e03c Music - USB#0c0193 is AL_AVCapturePlayback
344 // Win#e06d Video - USB#0c0193 is AL_AVCapturePlayback
345 // Win#e064 Pictures
346 // XKB#0080 XF86LaunchA
347 // XKB#0097 XF86WakeUp
348 // XKB#0099 XF86Send
349 // XKB#009b XF86Xfer
350 // XKB#009c XF86Launch1
351 // XKB#009d XF86Launch2
352 // XKB... remaining XF86 keys
354 // USB XKB Win Mac
355 USB_KEYMAP(0x0c00b5, 0x0000, 0xe019, 0xffff, "MediaTrackNext"),
356 USB_KEYMAP(0x0c00b6, 0x0000, 0xe010, 0xffff, "MediaTrackPrevious"),
357 USB_KEYMAP(0x0c00b7, 0x0000, 0xe024, 0xffff, "MediaStop"),
358 USB_KEYMAP(0x0c00b8, 0x0000, 0xe02c, 0xffff, "Eject"),
359 USB_KEYMAP(0x0c00cd, 0x0000, 0xe022, 0xffff, "MediaPlayPause"),
360 USB_KEYMAP(0x0c018a, 0x0000, 0xe01e, 0xffff, "LaunchMail"), // AL_EmailReader
361 USB_KEYMAP(0x0c0192, 0x0094, 0x0000, 0xffff, NULL), // AL_Calculator
362 // USB#0c0194: My Computer
363 USB_KEYMAP(0x0c0194, 0x00a5, 0x0000, 0xffff, NULL), // AL_LocalMachineBrowser
364 USB_KEYMAP(0x0c01a7, 0x00f3, 0x0000, 0xffff, NULL), // AL_Documents
365 // USB#0c01b4: Home Directory
366 USB_KEYMAP(0x0c01b4, 0x0098, 0x0000, 0xffff, NULL), // AL_FileBrowser (Explorer)
367 USB_KEYMAP(0x0c0221, 0x0000, 0xe065, 0xffff, "BrowserSearch"), // AC_Search
368 USB_KEYMAP(0x0c0223, 0x0000, 0xe032, 0xffff, "BrowserHome"), // AC_Home
369 USB_KEYMAP(0x0c0224, 0x00a6, 0xe06a, 0xffff, "BrowserBack"), // AC_Back
370 USB_KEYMAP(0x0c0225, 0x00a7, 0xe069, 0xffff, "BrowserForward"), // AC_Forward
371 USB_KEYMAP(0x0c0226, 0x0000, 0xe068, 0xffff, "BrowserStop"), // AC_Stop
372 USB_KEYMAP(0x0c0227, 0x00b5, 0xe067, 0xffff, "BrowserRefresh"), // AC_Refresh (Reload)
373 USB_KEYMAP(0x0c022a, 0x00a4, 0xe066, 0xffff, NULL), // AC_Bookmarks (Favorites)
374 USB_KEYMAP(0x0c0289, 0x00f0, 0x0000, 0xffff, NULL), // AC_Reply
375 USB_KEYMAP(0x0c028b, 0x00f1, 0x0000, 0xffff, NULL), // AC_ForwardMsg (MailForward)
376 USB_KEYMAP(0x0c028c, 0x00ef, 0x0000, 0xffff, NULL), // AC_Send
379 #endif // UI_EVENTS_KEYCODES_DOM4_KEYCODE_CONVERTER_DATA_H_