Created
May 8, 2014 07:19
-
-
Save fre-sch/302fe577271f3851ee39 to your computer and use it in GitHub Desktop.
Macro for ALT/LGUI/etc combination
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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