Add kaleidoscope::hid::getKeyboardLEDs()

This wraps Keyboard.getLEDs().

Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
pull/224/head
Gergely Nagy 7 years ago
parent 6d3828c134
commit 4f1d7a5670

@ -92,6 +92,10 @@ boolean wasModifierKeyActive(Key mappedKey) {
return Keyboard.wasModifierActive(mappedKey.keyCode);
}
uint8_t getKeyboardLEDs() {
return Keyboard.getLEDs();
}
void sendKeyboardReport() {
Keyboard.sendReport();

@ -20,6 +20,8 @@ void sendKeyboardReport();
boolean isModifierKeyActive(Key mappedKey);
boolean wasModifierKeyActive(Key mappedKey);
uint8_t getKeyboardLEDs();
void initializeConsumerControl();
void pressConsumerControl(Key mappedKey);

Loading…
Cancel
Save