Created
September 6, 2009 21:01
-
-
Save JensAyton/181978 to your computer and use it in GitHub Desktop.
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
enum | |
{ | |
kVKC_Shift = 56, | |
kVKC_Option = 58, | |
kVKC_Control = 59, | |
kVKC_rShift = 60, /* Right-hand modifiers; not implemented */ | |
kVKC_rOption = 61, | |
kVKC_rControl = 62, | |
kVKC_Command = 55, | |
} | |
#define KEYMAP_GET(m, index) ((((uint8_t*)(m))[(index) >> 3] & (1L << ((index) & 7))) ? 1 : 0) | |
KeyMap map; | |
GetKeys(map); | |
return KEYMAP_GET(map, kVKC_Shift) || KEYMAP_GET(map, kVKC_rShift); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment