From 396ae22a67061284e18f12892e1c32686657a510 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 24 Jul 2017 15:54:02 -0700 Subject: [PATCH] release_key->releaseKey --- src/key_events.cpp | 4 ++-- src/key_events.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/key_events.cpp b/src/key_events.cpp index acc2ce4a..31c76221 100644 --- a/src/key_events.cpp +++ b/src/key_events.cpp @@ -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); } diff --git a/src/key_events.h b/src/key_events.h index 3c490fab..87fd48e1 100644 --- a/src/key_events.h +++ b/src/key_events.h @@ -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);