From f777960c7255b469f3daaec89b9808844f13bb88 Mon Sep 17 00:00:00 2001 From: tmk Date: Thu, 16 Sep 2010 21:05:15 +0900 Subject: simple keymap layers. --- usbkeycodes.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'usbkeycodes.h') diff --git a/usbkeycodes.h b/usbkeycodes.h index ca2082743f..b0e7058363 100644 --- a/usbkeycodes.h +++ b/usbkeycodes.h @@ -255,11 +255,7 @@ enum keycodes { KP_DECIMAL, KP_HEXADECIMAL, - /* - * These are NOT standard USB HID - handled specially in decoding, - * so they will be mapped to the modifier byte in the USB report. - */ - MOD_START = 0xE0, + /* modifiers */ KB_LCTRL = 0xE0, /* 0x01 */ KB_LSHIFT, /* 0x02 */ KB_LALT, /* 0x04 */ @@ -268,6 +264,12 @@ enum keycodes { KB_RSHIFT, /* 0x20 */ KB_RALT, /* 0x40 */ KB_RGUI, /* 0x80 */ + + /* function keys */ + FN_0 = 0xF0, + FN_1, + FN_2, + FN_3, }; #endif /* USBKEYCODES_H */ -- cgit v1.2.3