Created
July 4, 2010 05:38
-
-
Save errzey/463180 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
switch (input_event.code) { | |
case KEY_RIGHTSHIFT: | |
case KEY_LEFTSHIFT: | |
kb->shift_mod = input_event.value; | |
return; | |
case KEY_RIGHTCTRL: | |
case KEY_LEFTCTRL: | |
/* I don't really care about ctrl chars */ | |
return; | |
case KEY_CAPSLOCK: | |
if (input_event.value == 1) { | |
if (kb->caps_mod) { | |
kb->caps_mod = 0; | |
} else { | |
kb->caps_mod = 1; | |
} | |
} | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment