aboutsummaryrefslogtreecommitdiffstats
path: root/src/hid.h
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2022-12-28 00:37:12 +0100
committerLouis Burda <quent.burda@gmail.com>2022-12-28 00:37:12 +0100
commit11f93b19cc46f445531145b197bb7ef8cce26cf6 (patch)
tree634779f22df9d8957eae28d2961dddafb5710442 /src/hid.h
parent1fd341eb6445264cb3dffec83cfc22192a7a7c4e (diff)
downloadsxkbd-11f93b19cc46f445531145b197bb7ef8cce26cf6.tar.gz
sxkbd-11f93b19cc46f445531145b197bb7ef8cce26cf6.zip
stash getting hid keyboard proto working
Diffstat (limited to 'src/hid.h')
-rw-r--r--src/hid.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/hid.h b/src/hid.h
index 16ac53e..64536e3 100644
--- a/src/hid.h
+++ b/src/hid.h
@@ -7,16 +7,23 @@
#define MACRO_HOLD_MAX 32
-#define REPORT_ID_MIN REPORT_ID_KEYBOARD
+#define REPORT_ID_NONE 0
+
+#define REPORT_ID_MIN 1
+
enum {
- REPORT_ID_KEYBOARD = 1,
- REPORT_ID_CONSUMER,
+ REPORT_ID_CONSUMER = REPORT_ID_MIN,
REPORT_ID_SYSTEM,
REPORT_ID_MOUSE,
REPORT_ID_GAMEPAD,
REPORT_ID_MAX
};
+enum {
+ INST_HID_KBD,
+ INST_HID_MISC
+};
+
void hid_init(void);
void hid_force_release(uint x, uint y);
void hid_switch_layer_with_key(uint8_t layer, uint x, uint y);