aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/action_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'tmk_core/common/action_util.c')
-rw-r--r--tmk_core/common/action_util.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/tmk_core/common/action_util.c b/tmk_core/common/action_util.c
index 511649676..f76398fb9 100644
--- a/tmk_core/common/action_util.c
+++ b/tmk_core/common/action_util.c
@@ -136,38 +136,6 @@ void send_keyboard_report(void) {
136 host_keyboard_send(keyboard_report); 136 host_keyboard_send(keyboard_report);
137} 137}
138 138
139/* key */
140void add_key(uint8_t key)
141{
142#ifdef NKRO_ENABLE
143 if (keyboard_protocol && keymap_config.nkro) {
144 add_key_bit(keyboard_report, key);
145 return;
146 }
147#endif
148 add_key_byte(keyboard_report, key);
149}
150
151void del_key(uint8_t key)
152{
153#ifdef NKRO_ENABLE
154 if (keyboard_protocol && keymap_config.nkro) {
155 del_key_bit(keyboard_report, key);
156 return;
157 }
158#endif
159 del_key_byte(keyboard_report, key);
160}
161
162void clear_keys(void)
163{
164 // not clear mods
165 for (int8_t i = 1; i < KEYBOARD_REPORT_SIZE; i++) {
166 keyboard_report->raw[i] = 0;
167 }
168}
169
170
171/* modifier */ 139/* modifier */
172uint8_t get_mods(void) { return real_mods; } 140uint8_t get_mods(void) { return real_mods; }
173void add_mods(uint8_t mods) { real_mods |= mods; } 141void add_mods(uint8_t mods) { real_mods |= mods; }