diff options
author | Drashna Jaelre <[email protected]> | 2020-07-24 20:05:27 -0700 |
---|---|---|
committer | James Young <[email protected]> | 2020-08-29 14:30:02 -0700 |
commit | 9d3b26a47543d9898a2af2cee5f6ef53b4995e9f (patch) | |
tree | 934d032d2cdbb13c2223aa59ab854428407d5092 /quantum/process_keycode/process_tap_dance.c | |
parent | 3c74edbc691502228b2d2c4d42d5888311f0ca4c (diff) | |
download | qmk_firmware-9d3b26a47543d9898a2af2cee5f6ef53b4995e9f.tar.gz qmk_firmware-9d3b26a47543d9898a2af2cee5f6ef53b4995e9f.zip |
Update features to use Custom Tapping Term when appropriate (#6259)
* Update Space Cadet to use Custom Tapping Term functionality
* Detect correct keycode for space cadet tapping term
* Update tap dancing to use global custom tapping term
* Update documentation for Tap Dances
* formatting pass
* Apply suggestions from code review
Co-Authored-By: fauxpark <[email protected]>
* Update docs/feature_tap_dance.md
Co-authored-by: James Young <[email protected]>
* Update for future
* Update user keymaps for space cadet
* Fix typos
* Clean up tapping term stuff
* Fix compiler issue if NO_ACTION_TAPPING is enabled
Co-authored-by: fauxpark <[email protected]>
Co-authored-by: James Young <[email protected]>
Diffstat (limited to 'quantum/process_keycode/process_tap_dance.c')
-rw-r--r-- | quantum/process_keycode/process_tap_dance.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c index 16756e59c2..0c7b6353eb 100644 --- a/quantum/process_keycode/process_tap_dance.c +++ b/quantum/process_keycode/process_tap_dance.c @@ -16,10 +16,6 @@ #include "quantum.h" #include "action_tapping.h" -#ifndef TAPPING_TERM -# define TAPPING_TERM 200 -#endif - #ifndef NO_ACTION_ONESHOT uint8_t get_oneshot_mods(void); #endif @@ -171,7 +167,7 @@ void matrix_scan_tap_dance() { if (action->custom_tapping_term > 0) { tap_user_defined = action->custom_tapping_term; } else { - tap_user_defined = TAPPING_TERM; + tap_user_defined = get_tapping_term(action->state.keycode, NULL); } if (action->state.count && timer_elapsed(action->state.timer) > tap_user_defined) { process_tap_dance_action_on_dance_finished(action); |