Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #6 from keyboardio/f/getKeyswitchStateAtPosition
Browse files Browse the repository at this point in the history
Add getKeyswitchStateAtPosition wrappers
  • Loading branch information
obra committed Jun 9, 2018
2 parents 2087ebe + 83b6ef4 commit 2a8e319
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/kaleidoscope/hid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2a8e319

Please sign in to comment.