Merge pull request #64 from algernon/f/keydefs/on-the-fly-mods

key_defs: Helpers for holding mods with keys
pull/65/head
Jesse Vincent 8 years ago committed by GitHub
commit 373c89f95a

@ -249,4 +249,8 @@ typedef union {
#define Key_LEDEffectNext (Key) { KEY_FLAGS | SYNTHETIC | IS_INTERNAL, LED_TOGGLE }
#define LCTRL(k) (Key) { k.flags | CTRL_HELD, k.rawKey }
#define LALT(k) (Key) { k.flags | LALT_HELD, k.rawKey }
#define RALT(k) (Key) { k.flags | RALT_HELD, k.rawKey }
#define LSHIFT(k) (Key) { k.flags | SHIFT_HELD, k.rawKey }
#define LGUI(k) (Key) { k.flags | GUI_HELD, k.rawKey }

Loading…
Cancel
Save