summaryrefslogtreecommitdiff
path: root/src/usb_hid.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/usb_hid.h')
-rw-r--r--src/usb_hid.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/usb_hid.h b/src/usb_hid.h
new file mode 100644
index 0000000..5bcd8bf
--- /dev/null
+++ b/src/usb_hid.h
@@ -0,0 +1,14 @@
+#ifndef ZMK_USB_HID
+#define ZMK_USB_HID
+
+#include <usb/usb_device.h>
+#include <usb/class/usb_hid.h>
+
+int zmk_usb_hid_init();
+
+// TODO: Modifiers!
+
+int zmk_usb_hid_press_key(enum hid_kbd_code code);
+int zmk_usb_hid_release_key(enum hid_kbd_code code);
+
+#endif