Add a new SYSTEM_KEY definition helper macro to match CONSUMER_KEY

pull/915/head
Michael Richters 4 years ago committed by Jesse Vincent
parent 455548b59a
commit ad5031f64a
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -255,6 +255,8 @@ typedef kaleidoscope::Key Key_;
#define KEY_LEFT_FN2 0xff #define KEY_LEFT_FN2 0xff
#define Key_LFN2 Key(KEY_LEFT_FN2, KEY_FLAGS) #define Key_LFN2 Key(KEY_LEFT_FN2, KEY_FLAGS)
#define SYSTEM_KEY(code, hid_type) \
Key(code, SYNTHETIC | IS_SYSCTL | (hid_type & HID_TYPE_MASK))
/* Most Consumer keys are more then 8bit, the highest Consumer hid code /* Most Consumer keys are more then 8bit, the highest Consumer hid code
uses 10bit. By using the 11bit as flag to indicate a consumer keys was activate we can uses 10bit. By using the 11bit as flag to indicate a consumer keys was activate we can

Loading…
Cancel
Save