OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has no header guard because it is explicily intended | 5 // This file has no header guard because it is explicily intended |
6 // to be included more than once with different definitions of the | 6 // to be included more than once with different definitions of the |
7 // macros USB_KEYMAP and USB_KEYMAP_DECLARATION. | 7 // macros USB_KEYMAP and USB_KEYMAP_DECLARATION. |
8 | 8 |
9 // Data in this file was created by referencing: | 9 // Data in this file was created by referencing: |
10 // [0] USB HID Usage Tables, | 10 // [0] USB HID Usage Tables, |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
110 USB_KEYMAP(0x07002b, 0x0017, 0x000f, 0x0030, "Tab", TAB), | 110 USB_KEYMAP(0x07002b, 0x0017, 0x000f, 0x0030, "Tab", TAB), |
111 USB_KEYMAP(0x07002c, 0x0041, 0x0039, 0x0031, "Space", SPACE), // Spacebar | 111 USB_KEYMAP(0x07002c, 0x0041, 0x0039, 0x0031, "Space", SPACE), // Spacebar |
112 USB_KEYMAP(0x07002d, 0x0014, 0x000c, 0x001b, "Minus", MINUS), // -_ | 112 USB_KEYMAP(0x07002d, 0x0014, 0x000c, 0x001b, "Minus", MINUS), // -_ |
113 USB_KEYMAP(0x07002e, 0x0015, 0x000d, 0x0018, "Equal", EQUAL), // =+ | 113 USB_KEYMAP(0x07002e, 0x0015, 0x000d, 0x0018, "Equal", EQUAL), // =+ |
114 USB_KEYMAP(0x07002f, 0x0022, 0x001a, 0x0021, "BracketLeft", BRACKET_LEFT), | 114 USB_KEYMAP(0x07002f, 0x0022, 0x001a, 0x0021, "BracketLeft", BRACKET_LEFT), |
115 | 115 |
116 USB_KEYMAP(0x070030, 0x0023, 0x001b, 0x001e, "BracketRight", BRACKET_RIGHT), | 116 USB_KEYMAP(0x070030, 0x0023, 0x001b, 0x001e, "BracketRight", BRACKET_RIGHT), |
117 USB_KEYMAP(0x070031, 0x0033, 0x002b, 0x002a, "Backslash", BACKSLASH), // \| | 117 USB_KEYMAP(0x070031, 0x0033, 0x002b, 0x002a, "Backslash", BACKSLASH), // \| |
118 // USB#070032 never appears on keyboards that have USB#070031. | 118 // USB#070032 never appears on keyboards that have USB#070031. |
119 // Platforms use the same scancode as for the two keys. | 119 // Platforms use the same scancode as for the two keys. |
120 // Hence this code can only be generated synthetically | |
121 // (e.g. in a DOM Level 3 KeyboardEvent). | |
120 // The keycap varies on international keyboards: | 122 // The keycap varies on international keyboards: |
121 // Dan: '* Dutch: <> Ger: #' UK: #~ | 123 // Dan: '* Dutch: <> Ger: #' UK: #~ |
122 // TODO(garykac): Verify Mac intl keyboard. | 124 // TODO(garykac): Verify Mac intl keyboard. |
123 //USB_KEYMAP(0x070032, 0x0033, 0x002b, 0x002a, "IntlHash", INTL_HASH), | 125 USB_KEYMAP(0x070032, 0x0000, 0x0000, 0xffff, "IntlHash", INTL_HASH), |
Wez
2015/05/05 00:16:00
Ick... I forgot that the platforms are munging the
kpschoedel
2015/05/05 18:47:02
Done for DomCodeToNativeKeycode() just by calling
| |
124 USB_KEYMAP(0x070033, 0x002f, 0x0027, 0x0029, "Semicolon", SEMICOLON), // ;: | 126 USB_KEYMAP(0x070033, 0x002f, 0x0027, 0x0029, "Semicolon", SEMICOLON), // ;: |
125 USB_KEYMAP(0x070034, 0x0030, 0x0028, 0x0027, "Quote", QUOTE), // '" | 127 USB_KEYMAP(0x070034, 0x0030, 0x0028, 0x0027, "Quote", QUOTE), // '" |
126 USB_KEYMAP(0x070035, 0x0031, 0x0029, 0x0032, "Backquote", BACKQUOTE), // `~ | 128 USB_KEYMAP(0x070035, 0x0031, 0x0029, 0x0032, "Backquote", BACKQUOTE), // `~ |
127 USB_KEYMAP(0x070036, 0x003b, 0x0033, 0x002b, "Comma", COMMA), // ,< | 129 USB_KEYMAP(0x070036, 0x003b, 0x0033, 0x002b, "Comma", COMMA), // ,< |
128 USB_KEYMAP(0x070037, 0x003c, 0x0034, 0x002f, "Period", PERIOD), // .> | 130 USB_KEYMAP(0x070037, 0x003c, 0x0034, 0x002f, "Period", PERIOD), // .> |
129 | 131 |
130 USB_KEYMAP(0x070038, 0x003d, 0x0035, 0x002c, "Slash", SLASH), // /? | 132 USB_KEYMAP(0x070038, 0x003d, 0x0035, 0x002c, "Slash", SLASH), // /? |
131 // TODO(garykac): CapsLock requires special handling for each platform. | 133 // TODO(garykac): CapsLock requires special handling for each platform. |
132 USB_KEYMAP(0x070039, 0x0042, 0x003a, 0x0039, "CapsLock", CAPS_LOCK), | 134 USB_KEYMAP(0x070039, 0x0042, 0x003a, 0x0039, "CapsLock", CAPS_LOCK), |
133 USB_KEYMAP(0x07003a, 0x0043, 0x003b, 0x007a, "F1", F1), | 135 USB_KEYMAP(0x07003a, 0x0043, 0x003b, 0x007a, "F1", F1), |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
473 // USB#0x0c0232: AC View Toggle | 475 // USB#0x0c0232: AC View Toggle |
474 USB_KEYMAP(0x0c0232, 0x0000, 0x0000, 0xffff, "ZoomToggle", ZOOM_TOGGLE), | 476 USB_KEYMAP(0x0c0232, 0x0000, 0x0000, 0xffff, "ZoomToggle", ZOOM_TOGGLE), |
475 // USB#0x0c0289: AC_Reply | 477 // USB#0x0c0289: AC_Reply |
476 USB_KEYMAP(0x0c0289, 0x00f0, 0x0000, 0xffff, "MailReply", MAIL_REPLY), | 478 USB_KEYMAP(0x0c0289, 0x00f0, 0x0000, 0xffff, "MailReply", MAIL_REPLY), |
477 // USB#0x0c028b: AC_ForwardMsg (MailForward) | 479 // USB#0x0c028b: AC_ForwardMsg (MailForward) |
478 USB_KEYMAP(0x0c028b, 0x00f1, 0x0000, 0xffff, "MailForward", MAIL_FORWARD), | 480 USB_KEYMAP(0x0c028b, 0x00f1, 0x0000, 0xffff, "MailForward", MAIL_FORWARD), |
479 // USB#0x0c028c: AC_Send | 481 // USB#0x0c028c: AC_Send |
480 USB_KEYMAP(0x0c028c, 0x00ef, 0x0000, 0xffff, "MailSend", MAIL_SEND), | 482 USB_KEYMAP(0x0c028c, 0x00ef, 0x0000, 0xffff, "MailSend", MAIL_SEND), |
481 }; | 483 }; |
482 | 484 |
OLD | NEW |