Initial basic modifiers support.
This commit is contained in:
parent
5e34e7fec9
commit
585e062e87
5 changed files with 47 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
#include <dt-bindings/zmk/keys.h>
|
||||
|
||||
typedef u64_t zmk_key;
|
||||
typedef u8_t zmk_mod;
|
||||
|
||||
struct zmk_key_event
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue