CamelCase of KeyIsPressed and KeyWasPressed

pull/141/head
Jesse Vincent 8 years ago
parent 0f2bae7db7
commit 2582441523
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -34,7 +34,7 @@ const macro_t *macroAppSwitch(uint8_t keyState) {
mod = Key_LeftGui; mod = Key_LeftGui;
// Key was just pressed, or is being held // Key was just pressed, or is being held
if (key_is_pressed(keyState)) { if (keyIsPressed(keyState)) {
return MACRO(Dr(mod), D(Tab), END); return MACRO(Dr(mod), D(Tab), END);
} }
// Key was just released // Key was just released

@ -10,14 +10,14 @@ static bool handle_synthetic_keyswitch_event(Key mappedKey, uint8_t keyState) {
if (mappedKey.flags & IS_INTERNAL) { if (mappedKey.flags & IS_INTERNAL) {
return false; return false;
} else if (mappedKey.flags & IS_CONSUMER) { } else if (mappedKey.flags & IS_CONSUMER) {
if (key_is_pressed(keyState)) if (keyIsPressed(keyState))
ConsumerControl.press(mappedKey.keyCode); ConsumerControl.press(mappedKey.keyCode);
else if (key_was_pressed(keyState)) else if (keyWasPressed(keyState))
ConsumerControl.release(mappedKey.keyCode); ConsumerControl.release(mappedKey.keyCode);
} else if (mappedKey.flags & IS_SYSCTL) { } else if (mappedKey.flags & IS_SYSCTL) {
if (key_is_pressed(keyState)) if (keyIsPressed(keyState))
SystemControl.press(mappedKey.keyCode); SystemControl.press(mappedKey.keyCode);
else if (key_was_pressed(keyState)) else if (keyWasPressed(keyState))
SystemControl.release(); SystemControl.release();
} else if (mappedKey.flags & SWITCH_TO_KEYMAP) { } else if (mappedKey.flags & SWITCH_TO_KEYMAP) {
// Should not happen, handled elsewhere. // Should not happen, handled elsewhere.
@ -32,7 +32,7 @@ static bool handle_keyswitch_event_default(Key mappedKey, byte row, byte col, ui
if (mappedKey.flags & SYNTHETIC) { if (mappedKey.flags & SYNTHETIC) {
handle_synthetic_keyswitch_event(mappedKey, keyState); handle_synthetic_keyswitch_event(mappedKey, keyState);
} else if (key_is_pressed(keyState)) { } else if (keyIsPressed(keyState)) {
press_key(mappedKey); press_key(mappedKey);
} else if (keyToggledOff(keyState) && (keyState & INJECTED)) { } else if (keyToggledOff(keyState) && (keyState & INJECTED)) {
release_key(mappedKey); release_key(mappedKey);

Loading…
Cancel
Save