press_key-> pressKey

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

@ -33,14 +33,14 @@ static bool handleKeyswitchEventDefault(Key mappedKey, byte row, byte col, uint8
if (mappedKey.flags & SYNTHETIC) {
handleSyntheticKeyswitchEvent(mappedKey, keyState);
} else if (keyIsPressed(keyState)) {
press_key(mappedKey);
pressKey(mappedKey);
} else if (keyToggledOff(keyState) && (keyState & INJECTED)) {
releaseKey(mappedKey);
}
return true;
}
void press_key(Key mappedKey) {
void pressKey(Key mappedKey) {
if (mappedKey.flags & SHIFT_HELD) {
Keyboard.press(Key_LeftShift.keyCode);
}

@ -44,5 +44,5 @@ extern const Key keymaps[][ROWS][COLS];
void handleKeyswitchEvent(Key mappedKey, byte row, byte col, uint8_t keyState);
// Internal use
void press_key(Key mappedKey);
void pressKey(Key mappedKey);
void releaseKey(Key mappedKey);

Loading…
Cancel
Save