From 4f1d7a5670b013521e990f2649197b8bb8288950 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 29 Oct 2017 22:20:06 +0100 Subject: [PATCH] Add kaleidoscope::hid::getKeyboardLEDs() This wraps Keyboard.getLEDs(). Signed-off-by: Gergely Nagy --- src/kaleidoscope/hid.cpp | 4 ++++ src/kaleidoscope/hid.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/kaleidoscope/hid.cpp b/src/kaleidoscope/hid.cpp index a2ca542d..7d6e88a9 100644 --- a/src/kaleidoscope/hid.cpp +++ b/src/kaleidoscope/hid.cpp @@ -92,6 +92,10 @@ boolean wasModifierKeyActive(Key mappedKey) { return Keyboard.wasModifierActive(mappedKey.keyCode); } +uint8_t getKeyboardLEDs() { + return Keyboard.getLEDs(); +} + void sendKeyboardReport() { Keyboard.sendReport(); diff --git a/src/kaleidoscope/hid.h b/src/kaleidoscope/hid.h index e9eb133e..3fac4cbe 100644 --- a/src/kaleidoscope/hid.h +++ b/src/kaleidoscope/hid.h @@ -20,6 +20,8 @@ void sendKeyboardReport(); boolean isModifierKeyActive(Key mappedKey); boolean wasModifierKeyActive(Key mappedKey); +uint8_t getKeyboardLEDs(); + void initializeConsumerControl(); void pressConsumerControl(Key mappedKey);