release_key->releaseKey

pull/141/head
Jesse Vincent 7 years ago
parent e29e220416
commit 396ae22a67
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -35,7 +35,7 @@ static bool handleKeyswitchEventDefault(Key mappedKey, byte row, byte col, uint8
} else if (keyIsPressed(keyState)) {
press_key(mappedKey);
} else if (keyToggledOff(keyState) && (keyState & INJECTED)) {
release_key(mappedKey);
releaseKey(mappedKey);
}
return true;
}
@ -60,7 +60,7 @@ void press_key(Key mappedKey) {
}
void release_key(Key mappedKey) {
void releaseKey(Key mappedKey) {
if (mappedKey.flags & SHIFT_HELD) {
Keyboard.release(Key_LeftShift.keyCode);
}

@ -45,4 +45,4 @@ void handleKeyswitchEvent(Key mappedKey, byte row, byte col, uint8_t keyState);
// Internal use
void press_key(Key mappedKey);
void release_key(Key mappedKey);
void releaseKey(Key mappedKey);

Loading…
Cancel
Save