aboutsummaryrefslogtreecommitdiff
path: root/common/keycode.h
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2013-07-23 10:56:03 +0900
committertmk <nobody@nowhere>2013-07-23 10:56:03 +0900
commit2721022078c30dd00c1063e4a2f8199b2b53e0d5 (patch)
tree421f2d6bdaad59fb338b1dbaffe38b5468aa66bb /common/keycode.h
parent5b425731c5b662d107ba0f970a7ae7c7fe97d01b (diff)
downloadqmk_firmware-2721022078c30dd00c1063e4a2f8199b2b53e0d5.tar.gz
qmk_firmware-2721022078c30dd00c1063e4a2f8199b2b53e0d5.zip
Add mechanical locking switch support for NumLock and ScrollLock
Diffstat (limited to 'common/keycode.h')
-rw-r--r--common/keycode.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/keycode.h b/common/keycode.h
index 77d5b79ba..08c3cbf42 100644
--- a/common/keycode.h
+++ b/common/keycode.h
@@ -60,10 +60,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
60#define KC_DEL KC_DELETE 60#define KC_DEL KC_DELETE
61#define KC_INS KC_INSERT 61#define KC_INS KC_INSERT
62#define KC_CAPS KC_CAPSLOCK 62#define KC_CAPS KC_CAPSLOCK
63#define KC_CLCK KC_CAPSLOCK
63#define KC_RGHT KC_RIGHT 64#define KC_RGHT KC_RIGHT
64#define KC_PGDN KC_PGDOWN 65#define KC_PGDN KC_PGDOWN
65#define KC_PSCR KC_PSCREEN 66#define KC_PSCR KC_PSCREEN
66#define KC_SLCK KC_SCKLOCK 67#define KC_SLCK KC_SCROLLLOCK
67#define KC_PAUS KC_PAUSE 68#define KC_PAUS KC_PAUSE
68#define KC_BRK KC_PAUSE 69#define KC_BRK KC_PAUSE
69#define KC_NLCK KC_NUMLOCK 70#define KC_NLCK KC_NUMLOCK
@@ -82,6 +83,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
82#define KC_NUHS KC_NONUS_HASH 83#define KC_NUHS KC_NONUS_HASH
83#define KC_NUBS KC_NONUS_BSLASH 84#define KC_NUBS KC_NONUS_BSLASH
84#define KC_LCAP KC_LOCKING_CAPS 85#define KC_LCAP KC_LOCKING_CAPS
86#define KC_LNUM KC_LOCKING_NUM
87#define KC_LSCR KC_LOCKING_SCROLL
85#define KC_ERAS KC_ALT_ERASE, 88#define KC_ERAS KC_ALT_ERASE,
86#define KC_CLR KC_CLEAR 89#define KC_CLR KC_CLEAR
87/* Japanese specific */ 90/* Japanese specific */
@@ -230,7 +233,7 @@ enum hid_keyboard_keypad_usage {
230 KC_F11, 233 KC_F11,
231 KC_F12, 234 KC_F12,
232 KC_PSCREEN, 235 KC_PSCREEN,
233 KC_SCKLOCK, 236 KC_SCROLLLOCK,
234 KC_PAUSE, 237 KC_PAUSE,
235 KC_INSERT, 238 KC_INSERT,
236 KC_HOME, 239 KC_HOME,