X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=usb_keycodes.h;h=6cc98682ba3d61832ea6706d7a7f2273d8c25f5a;hb=3f0289e66678af8c2d1f001ccb9cb34ccfba7c5c;hp=bdec953910d769486effe59a07960cb842108de7;hpb=6d45e05ede8ea1a96df9a04d58a7d7ede51afd9b;p=max%2Ftmk_keyboard.git diff --git a/usb_keycodes.h b/usb_keycodes.h index bdec9539..6cc98682 100644 --- a/usb_keycodes.h +++ b/usb_keycodes.h @@ -1,5 +1,22 @@ +/* +Copyright 2011 Jun Wako + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 2 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program. If not, see . +*/ + /* - * 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,12 +68,12 @@ #define KB_NUHS KB_NONUS_HASH #define KB_NUBS KB_NONUS_BSLASH /* 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 @@ -91,9 +108,26 @@ #define KB_WH_R KB_MS_WH_RIGHT /* Sytem Control & Consumer usage */ #define KB_PWR KB_SYSTEM_POWER +#define KB_SLEP KB_SYSTEM_SLEEP +#define KB_WAKE KB_SYSTEM_WAKE #define KB_MUTE KB_AUDIO_MUTE #define KB_VOLU KB_AUDIO_VOL_UP #define KB_VOLD KB_AUDIO_VOL_DOWN +#define KB_MNXT KB_MEDIA_NEXT_TRACK +#define KB_MPRV KB_MEDIA_PREV_TRACK +#define KB_MSTP KB_MEDIA_STOP +#define KB_MPLY KB_MEDIA_PLAY_PAUSE +#define KB_MSEL KB_MEDIA_SELECT +#define KB_MAIL KB_MAIL +#define KB_CALC KB_CALCULATOR +#define KB_MYCM KB_MY_COMPUTER +#define KB_WSCH KB_WWW_SEARCH +#define KB_WHOM KB_WWW_HOME +#define KB_WBAK KB_WWW_BACK +#define KB_WFWD KB_WWW_FORWARD +#define KB_WSTP KB_WWW_STOP +#define KB_WREF KB_WWW_REFRESH +#define KB_WFAV KB_WWW_FAVORITES /* Special keycode */ @@ -319,7 +353,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, @@ -366,6 +401,7 @@ enum keycodes { KB_KP_OCTAL, KB_KP_DECIMAL, KB_KP_HEXADECIMAL, +#endif /* Modifiers */ KB_LCTRL = 0xE0, @@ -377,7 +413,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 */