diff options
author | innovaker <66737976+innovaker@users.noreply.github.com> | 2020-12-19 17:32:02 +0000 |
---|---|---|
committer | Pete Johanson <peter@peterjohanson.com> | 2020-12-28 10:20:12 -0500 |
commit | 87179698b42a627f4ab7653749377001cb090fed (patch) | |
tree | e98e40fc8dd73ba63aa54ab7b856b7b923fbc0a0 /app/include | |
parent | 4fc17e0b3a32096923790f28226a15beffacc686 (diff) |
refactor(app): replace zmk_key with zmk_key_t
Aligns with typedef _t convention.
PR: #531
Diffstat (limited to 'app/include')
-rw-r--r-- | app/include/zmk/hid.h | 8 | ||||
-rw-r--r-- | app/include/zmk/keys.h | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/include/zmk/hid.h b/app/include/zmk/hid.h index 1f755aa..c664082 100644 --- a/app/include/zmk/hid.h +++ b/app/include/zmk/hid.h @@ -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(); diff --git a/app/include/zmk/keys.h b/app/include/zmk/keys.h index 204de9c..330f0ad 100644 --- a/app/include/zmk/keys.h +++ b/app/include/zmk/keys.h @@ -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; };
\ No newline at end of file |