From 87179698b42a627f4ab7653749377001cb090fed Mon Sep 17 00:00:00 2001 From: innovaker <66737976+innovaker@users.noreply.github.com> Date: Sat, 19 Dec 2020 17:32:02 +0000 Subject: refactor(app): replace zmk_key with zmk_key_t Aligns with typedef _t convention. PR: #531 --- app/include/zmk/hid.h | 8 ++++---- app/include/zmk/keys.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'app/include/zmk') 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 #include -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 -- cgit v1.2.3