]> git.friedersdorff.com Git - max/tmk_keyboard.git/blobdiff - usb_keycodes.h
Change MCU to atmega328p in hhkb/Makeilfe.vusb.
[max/tmk_keyboard.git] / usb_keycodes.h
index 8b8d4d35009405f75dc058e34daf7bf312977a6e..9b6cce1532959ee11228549ef072fba50853fa05 100644 (file)
@@ -16,7 +16,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
 /* 
- * Key codes from HID Keyboard/Keypad Page
+ * Key codes: HID Keyboard/Keypad Page(0x07)
  * http://www.usb.org/developers/devclass_docs/Hut1_12.pdf
  */
 #ifndef USB_KEYCODES_H
@@ -51,7 +51,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define KB_PGDN KB_PGDOWN
 #define KB_PSCR KB_PSCREEN
 #define KB_SLCK KB_SCKLOCK
-#define KB_BRK  KB_BREAK
+#define KB_PAUS KB_PAUSE
+#define KB_BRK  KB_PAUSE
 #define KB_NLCK KB_NUMLOCK
 #define KB_SPC  KB_SPACE
 #define KB_MINS KB_MINUS
@@ -67,13 +68,15 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define KB_APP  KB_APPLICATION
 #define KB_NUHS KB_NONUS_HASH
 #define KB_NUBS KB_NONUS_BSLASH
+#define KB_ERAS KB_ALT_ERASE,
+#define KB_CLR  KB_CLEAR
 /* for Japanese */
+#define KB_ZKHK KB_GRAVE
 #define KB_RO   KB_INT1
 #define KB_KANA KB_INT2
 #define KB_JYEN KB_INT3
 #define KB_HENK KB_INT4
 #define KB_MHEN KB_INT5
-#define KB_ZEHA KB_GRAVE
 /* Keypad */
 #define KB_P1   KB_KP_1
 #define KB_P2   KB_KP_2
@@ -86,6 +89,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define KB_P9   KB_KP_9
 #define KB_P0   KB_KP_0
 #define KB_PDOT KB_KP_DOT
+#define KB_PCMM KB_KP_COMMA
 #define KB_PSLS KB_KP_SLASH
 #define KB_PAST KB_KP_ASTERISK
 #define KB_PMNS KB_KP_MINUS
@@ -259,7 +263,7 @@ enum keycodes {
     KB_F12,
     KB_PSCREEN,
     KB_SCKLOCK,
-    KB_BREAK,
+    KB_PAUSE,
     KB_INSERT,
     KB_HOME,
     KB_PGUP,
@@ -353,7 +357,8 @@ enum keycodes {
     KB_CRSEL,
     KB_EXSEL,
 
-    /* NOTE: uses 0xB0-DF for special keycodes */
+    /* NOTE: 0xB0-DF are used as special_keycodes */
+#if 0
     KB_KP_00 = 0xB0,
     KB_KP_000,
     KB_THOUSANDS_SEPARATOR,
@@ -400,6 +405,7 @@ enum keycodes {
     KB_KP_OCTAL,
     KB_KP_DECIMAL,
     KB_KP_HEXADECIMAL,
+#endif
 
     /* Modifiers */
     KB_LCTRL = 0xE0,
@@ -411,7 +417,7 @@ enum keycodes {
     KB_RALT,
     KB_RGUI,
 
-    /* NOTE: uses 0xE8-FF for special keycodes */
+    /* NOTE: 0xE8-FF are used as special_keycodes */
 };
 
 #endif /* USB_KEYCODES_H */