1 /* Some modified from Keyboard Upgrade 0.3.0
5 * Keyboard Upgrade -- Firmware for homebrew computer keyboard controllers.
6 * Copyright (C) 2009 Robert Homann
8 * Based on RUMP (http://mg8.org/rump/), Copyright (C) 2008 Chris Lee
10 * Based on c64key (http://symlink.dk/projects/c64key/),
11 * Copyright (C) 2006-2007 Mikkel Holm Olsen
13 * Based on HID-Test by Christian Starkjohann, Objective Development
15 * This file is part of the Keyboard Upgrade package.
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 2 of the License, or
20 * (at your option) any later version.
22 * This program is distributed in the hope that it will be useful, but
23 * WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
27 * You should have received a copy of the GNU General Public License
28 * along with the Keyboard Upgrade package; if not, write to the
29 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
37 * The USB keycodes are enumerated here - the first part is simply
38 * an enumeration of the allowed scan-codes used for USB HID devices.
41 * see 10 Keyboard/Keypad Page(0x07)
42 * http://www.usb.org/developers/devclass_docs/Hut1_12.pdf
94 KB_BSLASH, /* \ (and |) */
95 KB_NONUS_HASH, /* Non-US # and ~ */
96 KB_SCOLON, /* ; (and :) */
97 KB_QUOTE, /* ' and " */
98 KB_GRAVE, /* Grave accent and tilde */
99 KB_COMMA, /* , and < */
100 KB_DOT, /* . and > */
101 KB_SLASH, /* / and ? */
145 KB_NONUS_BSLASH, /* Non-US \ and | */
175 KB_LOCKING_CAPS, /* locking Caps Lock */
176 KB_LOCKING_NUM, /* locking Num Lock */
177 KB_LOCKING_SCROLL, /* locking Scroll Lock */
179 KP_EQUAL_AS400, /* equal sign on AS/400 */
213 KB_THOUSANDS_SEPARATOR,
214 KB_DECIMAL_SEPARATOR,
219 KP_LCBRACKET, /* { */
220 KP_RCBRACKET, /* } */
259 KB_LCTRL = 0xE0, /* 0x01 */
260 KB_LSHIFT, /* 0x02 */
264 KB_RSHIFT, /* 0x20 */
275 #endif /* USBKEYCODES_H */