aboutsummaryrefslogtreecommitdiffstats
path: root/usbkeycodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'usbkeycodes.h')
-rw-r--r--usbkeycodes.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/usbkeycodes.h b/usbkeycodes.h
index ca2082743..b0e705836 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 */