Merge pull request #336 from keyboardio/f/getKeyswitchStateAtPosition

Implement KEY_INDEX and add getKeyswitchStateAtPosition to the HID facade
pull/337/head
Jesse Vincent 7 years ago committed by GitHub
commit a54b139869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -40,6 +40,14 @@ See the [Kaleidoscope-USB-Quriks][plugin:USB-Quriks] plugin for a use-case.
[plugin:USB-Quirks]: https://github.com/keyboardio/Kaleidoscope-USB-Quirks
### The `RxCy` macros and peeking into the keyswitch state
The `RxCy` macros changed from being indexes into a per-hand bitmap to being an
index across the whole keyboard. This means they can no longer be `or`-ed
together to check against the keyswitch state of a given hand. Instead, the
`kaleidoscope::hid::getKeyswitchStateAtPosition()` method can be used to check
the state of a keyswitch at a given row and column; or at a given index.
### KALEIDOSCOPE_API_VERSION bump
`KALEIDOSCOPE_API_VERSION` has been bumped to **2** due to the plugin API

@ -20,6 +20,9 @@ extern void sendKeyboardReport();
extern boolean isModifierKeyActive(Key mappedKey);
extern boolean wasModifierKeyActive(Key mappedKey);
extern uint8_t getKeyswitchStateAtPosition(byte row, byte col);
extern uint8_t getKeyswitchStateAtPosition(uint8_t keyIndex);
extern uint8_t getKeyboardLEDs();
extern void initializeConsumerControl();

Loading…
Cancel
Save