From f7179fca7f62f447d33467bdd6873d637ff69d73 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 8 Jun 2021 14:48:13 +0200 Subject: [PATCH] driver::hid::base: Add isKeyPressed() to the NoKeyboard classes Other parts of Kaleidoscope require the NKRO and Boot keyboard classes to have an `isKeyPressed()` method, which our base classes did not provide - until now. Signed-off-by: Gergely Nagy --- src/kaleidoscope/driver/hid/base/Keyboard.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/kaleidoscope/driver/hid/base/Keyboard.h b/src/kaleidoscope/driver/hid/base/Keyboard.h index 0b2a02cb..0f44b9f5 100644 --- a/src/kaleidoscope/driver/hid/base/Keyboard.h +++ b/src/kaleidoscope/driver/hid/base/Keyboard.h @@ -54,6 +54,9 @@ class NoBootKeyboard { bool wasAnyModifierActive() { return false; } + bool isKeyPressed(uint8_t code) { + return false; + } uint8_t getLeds() { return 0; @@ -83,6 +86,9 @@ class NoNKROKeyboard { bool wasAnyModifierActive() { return false; } + bool isKeyPressed(uint8_t code) { + return false; + } uint8_t getLeds() { return 0;