diff options
Diffstat (limited to 'docs/feature_tap_dance.md')
-rw-r--r-- | docs/feature_tap_dance.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/feature_tap_dance.md b/docs/feature_tap_dance.md index 24cd2b440..57bbde6ea 100644 --- a/docs/feature_tap_dance.md +++ b/docs/feature_tap_dance.md | |||
@@ -1,4 +1,4 @@ | |||
1 | # Tap Dance: A single key can do 3, 5, or 100 different things | 1 | # Tap Dance: A Single Key Can Do 3, 5, or 100 Different Things |
2 | 2 | ||
3 | <!-- FIXME: Break this up into multiple sections --> | 3 | <!-- FIXME: Break this up into multiple sections --> |
4 | 4 | ||
@@ -78,7 +78,7 @@ enum { | |||
78 | X_TAP_DANCE | 78 | X_TAP_DANCE |
79 | }; | 79 | }; |
80 | ``` | 80 | ``` |
81 | ### Example 1: Send `:` on single tap, `;` on double tap | 81 | ### Example 1: Send `:` on Single Tap, `;` on Double Tap |
82 | ```c | 82 | ```c |
83 | void dance_cln_finished (qk_tap_dance_state_t *state, void *user_data) { | 83 | void dance_cln_finished (qk_tap_dance_state_t *state, void *user_data) { |
84 | if (state->count == 1) { | 84 | if (state->count == 1) { |
@@ -103,7 +103,7 @@ qk_tap_dance_action_t tap_dance_actions[] = { | |||
103 | [CT_CLN] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_cln_finished, dance_cln_reset) | 103 | [CT_CLN] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_cln_finished, dance_cln_reset) |
104 | }; | 104 | }; |
105 | ``` | 105 | ``` |
106 | ### Example 2: Send "Safety Dance!" after 100 taps | 106 | ### Example 2: Send "Safety Dance!" After 100 Taps |
107 | ```c | 107 | ```c |
108 | void dance_egg (qk_tap_dance_state_t *state, void *user_data) { | 108 | void dance_egg (qk_tap_dance_state_t *state, void *user_data) { |
109 | if (state->count >= 100) { | 109 | if (state->count >= 100) { |
@@ -117,7 +117,7 @@ qk_tap_dance_action_t tap_dance_actions[] = { | |||
117 | }; | 117 | }; |
118 | ``` | 118 | ``` |
119 | 119 | ||
120 | ### Example 3: Turn LED lights on then off, one at a time | 120 | ### Example 3: Turn LED Lights On Then Off, One at a Time |
121 | 121 | ||
122 | ```c | 122 | ```c |
123 | // on each tap, light up one led, from right to left | 123 | // on each tap, light up one led, from right to left |