Initial basic modifiers support.

This commit is contained in:
Pete Johanson 2020-05-18 23:34:36 -04:00
parent 5e34e7fec9
commit 585e062e87
5 changed files with 47 additions and 5 deletions

View file

@ -101,6 +101,8 @@ struct zmk_hid_report
u8_t keys[13];
} __packed;
int zmk_hid_register_mod(zmk_mod modifier);
int zmk_hid_unregister_mod(zmk_mod modifier);
int zmk_hid_press_key(zmk_key key);
int zmk_hid_release_key(zmk_key key);

View file

@ -4,6 +4,7 @@
#include <dt-bindings/zmk/keys.h>
typedef u64_t zmk_key;
typedef u8_t zmk_mod;
struct zmk_key_event
{