diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-06-17 17:55:44 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2017-06-18 21:22:22 +0300 |
commit | fb95d86b39074b581455fb35a17477cce79a3738 (patch) | |
tree | 69832d2d4827afa1845c4c1fefa0bc304ba6545e /tmk_core/common/action_util.h | |
parent | 017458a07bda3f4b2604d079ec65ef607a1a1e57 (diff) |
Move functions for adding keys from to reports to report.h
Diffstat (limited to 'tmk_core/common/action_util.h')
-rw-r--r-- | tmk_core/common/action_util.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/tmk_core/common/action_util.h b/tmk_core/common/action_util.h index 8fb88c0f65..3458931514 100644 --- a/tmk_core/common/action_util.h +++ b/tmk_core/common/action_util.h @@ -29,9 +29,17 @@ extern report_keyboard_t *keyboard_report; void send_keyboard_report(void); /* key */ -void add_key(uint8_t key); -void del_key(uint8_t key); -void clear_keys(void); +inline void add_key(uint8_t key) { + add_key_to_report(keyboard_report, key); +} + +inline void del_key(uint8_t key) { + del_key_from_report(keyboard_report, key); +} + +inline void clear_keys(void) { + clear_keys_from_report(keyboard_report); +} /* modifier */ uint8_t get_mods(void); |