Update TapDance hold timeout testcase

This testcase is for a version of TapDance that distinguishes between a "tap"
timeout and a "hold" timeout, allowing for two different `Key` values for the
same tap count.

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1111/head
Michael Richters 3 years ago
parent a4f327df7a
commit 38988df273
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -46,8 +46,13 @@ void tapDanceAction(uint8_t tap_dance_index,
kaleidoscope::plugin::TapDance::ActionType tap_dance_action) { kaleidoscope::plugin::TapDance::ActionType tap_dance_action) {
switch (tap_dance_index) { switch (tap_dance_index) {
case 0: case 0:
return tapDanceActionKeys(tap_count, tap_dance_action, if (tap_dance_action == TapDance.Hold) {
Key_A, Key_B, Key_C); return tapDanceActionKeys(tap_count, tap_dance_action,
Key_A, Key_H, Key_C);
} else {
return tapDanceActionKeys(tap_count, tap_dance_action,
Key_A, Key_B, Key_C);
}
default: default:
break; break;
} }

@ -89,7 +89,7 @@ RUN 10 ms
PRESS TD_0 PRESS TD_0
RUN 1 cycle RUN 1 cycle
RUN 25 ms RUN 25 ms
EXPECT keyboard-report Key_B # The report should contain `B` EXPECT keyboard-report Key_H # The report should contain `H`
RUN 10 ms RUN 10 ms
RELEASE TD_0 RELEASE TD_0

Loading…
Cancel
Save