CamelCase of KeyIsPressed and KeyWasPressed

pull/141/head
Jesse Vincent 7 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;
// Key was just pressed, or is being held
if (key_is_pressed(keyState)) {
if (keyIsPressed(keyState)) {
return MACRO(Dr(mod), D(Tab), END);
}
// Key was just released

@ -10,14 +10,14 @@ static bool handle_synthetic_keyswitch_event(Key mappedKey, uint8_t keyState) {
if (mappedKey.flags & IS_INTERNAL) {
return false;
} else if (mappedKey.flags & IS_CONSUMER) {
if (key_is_pressed(keyState))
if (keyIsPressed(keyState))
ConsumerControl.press(mappedKey.keyCode);
else if (key_was_pressed(keyState))
else if (keyWasPressed(keyState))
ConsumerControl.release(mappedKey.keyCode);
} else if (mappedKey.flags & IS_SYSCTL) {
if (key_is_pressed(keyState))
if (keyIsPressed(keyState))
SystemControl.press(mappedKey.keyCode);
else if (key_was_pressed(keyState))
else if (keyWasPressed(keyState))
SystemControl.release();
} else if (mappedKey.flags & SWITCH_TO_KEYMAP) {
// 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) {
handle_synthetic_keyswitch_event(mappedKey, keyState);
} else if (key_is_pressed(keyState)) {
} else if (keyIsPressed(keyState)) {
press_key(mappedKey);
} else if (keyToggledOff(keyState) && (keyState & INJECTED)) {
release_key(mappedKey);

Loading…
Cancel
Save