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) | |
download | qmk_firmware-fb95d86b39074b581455fb35a17477cce79a3738.tar.gz qmk_firmware-fb95d86b39074b581455fb35a17477cce79a3738.zip |
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 8fb88c0f6..345893151 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; | |||
29 | void send_keyboard_report(void); | 29 | void send_keyboard_report(void); |
30 | 30 | ||
31 | /* key */ | 31 | /* key */ |
32 | void add_key(uint8_t key); | 32 | inline void add_key(uint8_t key) { |
33 | void del_key(uint8_t key); | 33 | add_key_to_report(keyboard_report, key); |
34 | void clear_keys(void); | 34 | } |
35 | |||
36 | inline void del_key(uint8_t key) { | ||
37 | del_key_from_report(keyboard_report, key); | ||
38 | } | ||
39 | |||
40 | inline void clear_keys(void) { | ||
41 | clear_keys_from_report(keyboard_report); | ||
42 | } | ||
35 | 43 | ||
36 | /* modifier */ | 44 | /* modifier */ |
37 | uint8_t get_mods(void); | 45 | uint8_t get_mods(void); |