diff options
| author | Joel Challis <git@zvecr.com> | 2023-12-24 06:52:41 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-24 06:52:41 +0000 |
| commit | b824faca71e1db86c158a0e09f225410c1e7e0a8 (patch) | |
| tree | 21a77608c53feb71dea650714cf794cc42e4a4ae /tests | |
| parent | 03848bb3aae551b11dd3da5ee33a41f2f1543a33 (diff) | |
Align location of tap dance keycode (#22742)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tap_dance/examples.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tap_dance/examples.c b/tests/tap_dance/examples.c index 13086bbb4b..5377b397d3 100644 --- a/tests/tap_dance/examples.c +++ b/tests/tap_dance/examples.c | |||
| @@ -83,7 +83,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
| 83 | 83 | ||
| 84 | switch (keycode) { | 84 | switch (keycode) { |
| 85 | case TD(CT_CLN): | 85 | case TD(CT_CLN): |
| 86 | action = &tap_dance_actions[TD_INDEX(keycode)]; | 86 | action = &tap_dance_actions[QK_TAP_DANCE_GET_INDEX(keycode)]; |
| 87 | if (!record->event.pressed && action->state.count && !action->state.finished) { | 87 | if (!record->event.pressed && action->state.count && !action->state.finished) { |
| 88 | tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)action->user_data; | 88 | tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)action->user_data; |
| 89 | tap_code16(tap_hold->tap); | 89 | tap_code16(tap_hold->tap); |
