CamelCase of KeyIsPressed and KeyWasPressed

pull/389/head
Jesse Vincent 7 years ago
parent d70059ce4a
commit 39dc5fe349
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -93,7 +93,7 @@ Key Leader::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_sta
if (key_state & INJECTED) if (key_state & INJECTED)
return mapped_key; return mapped_key;
if (!key_is_pressed(key_state) && !key_was_pressed(key_state)) { if (!keyIsPressed(key_state) && !keyWasPressed(key_state)) {
if (isLeader(mapped_key)) if (isLeader(mapped_key))
return Key_NoKey; return Key_NoKey;
return mapped_key; return mapped_key;
@ -132,7 +132,7 @@ Key Leader::eventHandlerHook(Key mapped_key, byte row, byte col, uint8_t key_sta
if (action_index >= 0) if (action_index >= 0)
return Key_NoKey; return Key_NoKey;
} else if (key_is_pressed(key_state)) { } else if (keyIsPressed(key_state)) {
// held, no need for anything here. // held, no need for anything here.
return Key_NoKey; return Key_NoKey;
} }

Loading…
Cancel
Save