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

Add getKeyswitchStateAtPosition wrappers #6

Merged
merged 1 commit into from
Jun 9, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge these, but they should have docs, sometime soon.

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