From 1b2c72431a01724531c8b7d3739d66af8bc9e60b Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Tue, 1 Dec 2020 13:23:49 -0800 Subject: [PATCH] Import helper constants from KeyboardioHID Signed-off-by: Jesse Vincent --- src/kaleidoscope/key_defs.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/kaleidoscope/key_defs.h b/src/kaleidoscope/key_defs.h index 1b363287..341fb0c5 100644 --- a/src/kaleidoscope/key_defs.h +++ b/src/kaleidoscope/key_defs.h @@ -202,6 +202,13 @@ typedef kaleidoscope::Key Key_; #define ___ Key_Transparent #define XXX Key_NoKey +// ----------------------------------------------------------------------------- +// Constant keycode values +#define HID_FIRST_KEY HID_KEYBOARD_NO_EVENT +#define HID_LAST_KEY HID_KEYPAD_HEXADECIMAL +#define HID_KEYBOARD_FIRST_MODIFIER HID_KEYBOARD_LEFT_CONTROL +#define HID_KEYBOARD_LAST_MODIFIER HID_KEYBOARD_RIGHT_GUI + #define KEY_BACKLIGHT_DOWN 0xf1 #define KEY_BACKLIGHT_UP 0xf2 #define Key_BacklightDown Key(KEY_BACKLIGHT_DOWN, KEY_FLAGS)