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);