From 25e940a611f92c90c245a66552e518a870dcf249 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 10 Jun 2018 13:01:11 +0200 Subject: [PATCH] Remove the getKeyswitchStateAtPosition wrapper This is sufficiently low-level that it is OK to use `KeyboardHardware` for it. It's not a HID thing, either. Signed-off-by: Gergely Nagy --- src/kaleidoscope/hid.h | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/kaleidoscope/hid.h b/src/kaleidoscope/hid.h index c07dae47..56e5eb54 100644 --- a/src/kaleidoscope/hid.h +++ b/src/kaleidoscope/hid.h @@ -20,34 +20,6 @@ extern void sendKeyboardReport(); extern boolean isModifierKeyActive(Key mappedKey); extern boolean wasModifierKeyActive(Key mappedKey); -/** - * Check the state of a key at a given position. - * - * This is a hardware-agnostic, portable way to peek into the keyswitch states. - * Implemented by the hardware plugins under the hood, we provide a wrapper here - * for user code. - * - * @param row is the row the key is located at in the matrix. - * @param col is the column the key is located at in the matrix. - * - * @returns zero if the key is not pressed, non-zero otherwise. - */ -extern uint8_t getKeyswitchStateAtPosition(byte row, byte col); -/** - * Check the state of a key at a given position. - * - * This is a hardware-agnostic, portable way to peek into the keyswitch states. - * Implemented by the hardware plugins under the hood, we provide a wrapper here - * for user code. - * - * @param keyIndex is the key index, as calculated by `keyIndex`. - * - * @note Key indexes start at 1, not 0! - * - * @returns zero if the key is not pressed, non-zero otherwise. - */ -extern uint8_t getKeyswitchStateAtPosition(uint8_t keyIndex); - extern uint8_t getKeyboardLEDs(); extern void initializeConsumerControl();