refactor(app): replace zmk_key with zmk_key_t

Aligns with typedef _t convention.

PR: #531
This commit is contained in:
innovaker
2020-12-19 17:32:02 +00:00
committed by Pete Johanson
parent 4fc17e0b3a
commit 87179698b4
4 changed files with 11 additions and 11 deletions

View File

@@ -170,12 +170,12 @@ int zmk_hid_register_mod(zmk_mod modifier);
int zmk_hid_unregister_mod(zmk_mod modifier);
int zmk_hid_implicit_modifiers_press(zmk_mod_flags implicit_modifiers);
int zmk_hid_implicit_modifiers_release();
int zmk_hid_keyboard_press(zmk_key key);
int zmk_hid_keyboard_release(zmk_key key);
int zmk_hid_keyboard_press(zmk_key_t key);
int zmk_hid_keyboard_release(zmk_key_t key);
void zmk_hid_keyboard_clear();
int zmk_hid_consumer_press(zmk_key key);
int zmk_hid_consumer_release(zmk_key key);
int zmk_hid_consumer_press(zmk_key_t key);
int zmk_hid_consumer_release(zmk_key_t key);
void zmk_hid_consumer_clear();
struct zmk_hid_keyboard_report *zmk_hid_get_keyboard_report();

View File

@@ -9,13 +9,13 @@
#include <zephyr.h>
#include <dt-bindings/zmk/keys.h>
typedef uint32_t zmk_key;
typedef uint32_t zmk_key_t;
typedef uint8_t zmk_mod;
typedef uint8_t zmk_mod_flags;
struct zmk_key_event {
uint32_t column;
uint32_t row;
zmk_key key;
zmk_key_t key;
bool pressed;
};