Jody Foo 7 years ago committed by Jack Humbert
parent 750f8ec94e
commit f4949fdd32

@ -51,7 +51,7 @@ uint64_t key_state[4] = { 0x0, 0x0, 0x0, 0x0 };
bool watching = false; bool watching = false;
// Translate any OSM keycodes back to their unmasked versions. // Translate any OSM keycodes back to their unmasked versions.
uint16_t inline translate_keycode(uint16_t keycode) { static inline uint16_t translate_keycode(uint16_t keycode) {
if (keycode > QK_ONE_SHOT_MOD && keycode <= QK_ONE_SHOT_MOD_MAX) { if (keycode > QK_ONE_SHOT_MOD && keycode <= QK_ONE_SHOT_MOD_MAX) {
return keycode ^ QK_ONE_SHOT_MOD; return keycode ^ QK_ONE_SHOT_MOD;
} else { } else {

Loading…
Cancel
Save