Skip to content

Instantly share code, notes, and snippets.

@fre-sch
Created May 8, 2014 07:19
Show Gist options
  • Save fre-sch/302fe577271f3851ee39 to your computer and use it in GitHub Desktop.
Save fre-sch/302fe577271f3851ee39 to your computer and use it in GitHub Desktop.
Macro for ALT/LGUI/etc combination
#define KEYS__ALT(name, value) \
void P(name) (void) { KF(press)(KEYBOARD__LeftAlt); \
KF(press)(value); } \
void R(name) (void) { KF(release)(value); \
KF(release)(KEYBOARD__LeftAlt); }
#define KEYS__LGUI(name, value) \
void P(name) (void) { KF(press)(KEYBOARD__LeftGUI); \
KF(press)(value); } \
void R(name) (void) { KF(release)(value); \
KF(release)(KEYBOARD__LeftGUI); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment