diff options
Diffstat (limited to 'src/endpoints.c')
-rw-r--r-- | src/endpoints.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/endpoints.c b/src/endpoints.c new file mode 100644 index 0000000..c4cd416 --- /dev/null +++ b/src/endpoints.c @@ -0,0 +1,17 @@ + +#include "endpoints.h" +#include "usb_hid.h" + +int zmk_endpoints_send_key_event(struct zmk_key_event key_event) +{ + if (key_event.pressed) + { + zmk_usb_hid_press_key(key_event.key); + } + else + { + zmk_usb_hid_release_key(key_event.key); + } + + return 0; +}
\ No newline at end of file |