Update TapDance documentation

The code example was using an outdated header for `tapDanceAction` that used `row` and `col`.
Updated to use `key_addr` instead.

Solution found in this forum reply: https://community.keyboard.io/t/status-of-using-tapdance-with-chrysalis/4143/5

Signed-off-by: Pedro Diogo <158898+PedroDiogo@users.noreply.github.com>
pull/977/head
Pedro Diogo 4 years ago
parent a61765e630
commit 8b9db57957

@ -66,7 +66,7 @@ time an action is to be performed.
TD(0) TD(0)
// later in the Sketch: // later in the Sketch:
void tapDanceAction(uint8_t tap_dance_index, byte row, byte col, uint8_t tap_count, void tapDanceAction(uint8_t tap_dance_index, KeyAddr key_addr, uint8_t tap_count,
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:
@ -131,7 +131,7 @@ property only:
> how this function is called. > how this function is called.
> >
> The `tap_dance_index` and `tap_count` parameters help us choose which action > The `tap_dance_index` and `tap_count` parameters help us choose which action
> to perform. The `row` and `col` parameters tell us where the tap-dance key is > to perform. The `key_addr` parameter tells us where the tap-dance key is
> on the keyboard. > on the keyboard.
## Dependencies ## Dependencies

Loading…
Cancel
Save