aboutsummaryrefslogtreecommitdiffstats
path: root/src/hid.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2022-12-18 14:53:27 +0100
committerLouis Burda <quent.burda@gmail.com>2022-12-18 14:53:27 +0100
commit4995cfc61e7d2d0c05cf493959456b5bc9a74f19 (patch)
tree2c8b21d211340f7e74ae9ceaeb8dbd685051b157 /src/hid.h
parent8e8c972cbec56d8de31847981149cde4a8fc16cd (diff)
downloadsxkbd-4995cfc61e7d2d0c05cf493959456b5bc9a74f19.tar.gz
sxkbd-4995cfc61e7d2d0c05cf493959456b5bc9a74f19.zip
Rename matrix to keymat and refactor key matrix access
Diffstat (limited to 'src/hid.h')
-rw-r--r--src/hid.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/hid.h b/src/hid.h
index 65efb01..79e0348 100644
--- a/src/hid.h
+++ b/src/hid.h
@@ -3,6 +3,13 @@
#include <stdbool.h>
#include <stdint.h>
+#define REPORT_ID_MIN REPORT_ID_KEYBOARD
+enum {
+ REPORT_ID_KEYBOARD = 1,
+ REPORT_ID_MOUSE,
+ REPORT_ID_CONSUMER_CONTROL,
+ REPORT_ID_MAX
+};
+
void hid_init(void);
-bool hid_gen_report(uint8_t *keycode);
void hid_task(void);