aboutsummaryrefslogtreecommitdiff
path: root/tmk_core/common/action.h
diff options
context:
space:
mode:
authorJoe Wasson <jwasson+github@gmail.com>2018-03-12 10:22:49 -0700
committerJack Humbert <jack.humb@gmail.com>2018-03-16 16:33:43 -0400
commit5d771039adf23fe9cb8de5843a3d799dc73a2fc7 (patch)
tree043471b02358c3f7cbe848886fc5bcd850049fa7 /tmk_core/common/action.h
parent23ac2a02ef870dce91318a4d98e3c8ec5749bced (diff)
downloadqmk_firmware-5d771039adf23fe9cb8de5843a3d799dc73a2fc7.tar.gz
qmk_firmware-5d771039adf23fe9cb8de5843a3d799dc73a2fc7.zip
Fix swap-hands tapping.
This is an inelegant hack for #2522 but makes things work. Basically we give `action.c` a chance to handle the hold event early so that we can swap the keyboard for later keys. Later, to allow the hold to happen again quickly we nuke the key record so that tapping is reset. I tried to find a cleaner way, honestly.
Diffstat (limited to 'tmk_core/common/action.h')
-rw-r--r--tmk_core/common/action.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tmk_core/common/action.h b/tmk_core/common/action.h
index 87027dede..acc55c7d3 100644
--- a/tmk_core/common/action.h
+++ b/tmk_core/common/action.h
@@ -96,6 +96,10 @@ void clear_keyboard_but_mods(void);
96void layer_switch(uint8_t new_layer); 96void layer_switch(uint8_t new_layer);
97bool is_tap_key(keypos_t key); 97bool is_tap_key(keypos_t key);
98 98
99#ifndef NO_ACTION_TAPPING
100void process_record_tap_hint(keyrecord_t *record);
101#endif
102
99/* debug */ 103/* debug */
100void debug_event(keyevent_t event); 104void debug_event(keyevent_t event);
101void debug_record(keyrecord_t record); 105void debug_record(keyrecord_t record);