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 <algernon@keyboard.io>
pull/1052/head
Gergely Nagy 3 years ago
parent faee52553f
commit f7179fca7f
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -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;

Loading…
Cancel
Save