diff options
Diffstat (limited to 'app/include/zmk/keys.h')
-rw-r--r-- | app/include/zmk/keys.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/app/include/zmk/keys.h b/app/include/zmk/keys.h new file mode 100644 index 0000000..6966bba --- /dev/null +++ b/app/include/zmk/keys.h @@ -0,0 +1,17 @@ +#pragma once + +#include <zephyr.h> +#include <dt-bindings/zmk/keys.h> + +typedef u32_t zmk_key; +typedef u8_t zmk_action; +typedef u8_t zmk_mod; +typedef u8_t zmk_mod_flags; + +struct zmk_key_event +{ + u32_t column; + u32_t row; + zmk_key key; + bool pressed; +};
\ No newline at end of file |