diff options
author | Fred Sundvik <[email protected]> | 2017-06-17 17:55:44 +0300 |
---|---|---|
committer | Fred Sundvik <[email protected]> | 2017-06-18 21:22:22 +0300 |
commit | fb95d86b39074b581455fb35a17477cce79a3738 (patch) | |
tree | 69832d2d4827afa1845c4c1fefa0bc304ba6545e /tmk_core/common/action_util.c | |
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.c')
-rw-r--r-- | tmk_core/common/action_util.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/tmk_core/common/action_util.c b/tmk_core/common/action_util.c index 511649676f..f76398fb92 100644 --- a/tmk_core/common/action_util.c +++ b/tmk_core/common/action_util.c @@ -136,38 +136,6 @@ void send_keyboard_report(void) { host_keyboard_send(keyboard_report); } -/* key */ -void add_key(uint8_t key) -{ -#ifdef NKRO_ENABLE - if (keyboard_protocol && keymap_config.nkro) { - add_key_bit(keyboard_report, key); - return; - } -#endif - add_key_byte(keyboard_report, key); -} - -void del_key(uint8_t key) -{ -#ifdef NKRO_ENABLE - if (keyboard_protocol && keymap_config.nkro) { - del_key_bit(keyboard_report, key); - return; - } -#endif - del_key_byte(keyboard_report, key); -} - -void clear_keys(void) -{ - // not clear mods - for (int8_t i = 1; i < KEYBOARD_REPORT_SIZE; i++) { - keyboard_report->raw[i] = 0; - } -} - - /* modifier */ uint8_t get_mods(void) { return real_mods; } void add_mods(uint8_t mods) { real_mods |= mods; } |