|
|
@ -123,4 +123,10 @@ typedef union Key_ {
|
|
|
|
#define Key_LFN2 (Key) { KEY_LEFT_FN2, KEY_FLAGS }
|
|
|
|
#define Key_LFN2 (Key) { KEY_LEFT_FN2, KEY_FLAGS }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 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
|
|
|
|
|
|
|
|
use the 10 lsb as the HID Consumer code. If you need to get the keycode of a Consumer key
|
|
|
|
|
|
|
|
use the CONSUMER(key) macro this will return the 10bit keycode.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define CONSUMER(key) (key.raw & 0x03FF)
|
|
|
|
#define CONSUMER_KEY(code, flags) (Key) { .raw = (code) | ((flags | SYNTHETIC|IS_CONSUMER) << 8) }
|
|
|
|
#define CONSUMER_KEY(code, flags) (Key) { .raw = (code) | ((flags | SYNTHETIC|IS_CONSUMER) << 8) }
|
|
|
|