diff options
author | Drashna Jaelre <drashna@live.com> | 2021-09-12 16:48:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 00:48:11 +0100 |
commit | ab34ecb66993f0cb7fc2a6aa960d0d0c4bafb773 (patch) | |
tree | fa071fa3cf2c1f982cb23a14295d129afeeffcce /quantum/process_keycode | |
parent | 10362777a56194bf830f144d893fbd2ade2c174e (diff) |
Apply `TAP_CODE_DELAY` to Tap Dance key sequences (#14412)
* Add support to tap dances
* Move default tap code defines to header file
Diffstat (limited to 'quantum/process_keycode')
-rw-r--r-- | quantum/process_keycode/process_tap_dance.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c index c8712d919f..225b36cd5f 100644 --- a/quantum/process_keycode/process_tap_dance.c +++ b/quantum/process_keycode/process_tap_dance.c @@ -44,6 +44,7 @@ void qk_tap_dance_pair_finished(qk_tap_dance_state_t *state, void *user_data) { void qk_tap_dance_pair_reset(qk_tap_dance_state_t *state, void *user_data) { qk_tap_dance_pair_t *pair = (qk_tap_dance_pair_t *)user_data; + wait_ms(TAP_CODE_DELAY); if (state->count == 1) { unregister_code16(pair->kc1); } else if (state->count == 2) { @@ -74,6 +75,7 @@ void qk_tap_dance_dual_role_reset(qk_tap_dance_state_t *state, void *user_data) qk_tap_dance_dual_role_t *pair = (qk_tap_dance_dual_role_t *)user_data; if (state->count == 1) { + wait_ms(TAP_CODE_DELAY); unregister_code16(pair->kc); } } |