From 83b6ef4ba33543b339007b1cf88e76557ef2f08a Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sat, 9 Jun 2018 13:22:05 +0200 Subject: [PATCH] Add getKeyswitchStateAtPosition wrappers Signed-off-by: Gergely Nagy --- src/kaleidoscope/hid.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/kaleidoscope/hid.cpp b/src/kaleidoscope/hid.cpp index 3edc6ab..981bf0d 100644 --- a/src/kaleidoscope/hid.cpp +++ b/src/kaleidoscope/hid.cpp @@ -140,6 +140,14 @@ boolean wasModifierKeyActive(Key mappedKey) { return Keyboard.wasModifierActive(mappedKey.keyCode); } +uint8_t getKeyswitchStateAtPosition(byte row, byte col) { + return KeyboardHardware.getKeyswitchStateAtPosition(row, col); +} + +uint8_t getKeyswitchStateAtPosition(uint8_t keyIndex) { + return KeyboardHardware.getKeyswitchStateAtPosition(keyIndex); +} + uint8_t getKeyboardLEDs() { WITH_BOOTKEYBOARD_PROTOCOL { return BootKeyboard.getLeds();