diff options
author | Pete Johanson <peter@peterjohanson.com> | 2020-05-05 16:09:05 -0400 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-05-05 16:09:05 -0400 |
commit | a63a773983e8e575778ba2e3b326b3f2e63ce26e (patch) | |
tree | a61249a25554e95062334b72e3f5e6706dcaa1e9 /src/usb_hid.h | |
parent | fe961d54a351a793c9037f78a42ae07eddec7d69 (diff) |
Get *basic* USB report sending working.
Diffstat (limited to 'src/usb_hid.h')
-rw-r--r-- | src/usb_hid.h | 14 |
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 |