summaryrefslogtreecommitdiff
path: root/hid/lib/drivers/keyboard.h
diff options
context:
space:
mode:
Diffstat (limited to 'hid/lib/drivers/keyboard.h')
-rw-r--r--hid/lib/drivers/keyboard.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/hid/lib/drivers/keyboard.h b/hid/lib/drivers/keyboard.h
index 39517f68..2e902818 100644
--- a/hid/lib/drivers/keyboard.h
+++ b/hid/lib/drivers/keyboard.h
@@ -19,20 +19,21 @@
# #
*****************************************************************************/
+
#pragma once
#include <stdint.h>
+
#include "driver.h"
-namespace DRIVERS {
+namespace DRIVERS {
typedef struct {
bool caps;
bool scroll;
bool num;
} KeyboardLedsState;
-
struct Keyboard : public Driver {
using Driver::Driver;
@@ -55,10 +56,12 @@ namespace DRIVERS {
/**
* False if online or unknown. Otherwise true.
*/
- virtual bool isOffline() { return false; }
+ virtual bool isOffline() {
+ return false;
+ }
virtual KeyboardLedsState getLeds() {
- KeyboardLedsState result = {};
+ KeyboardLedsState result = {0};
return result;
}