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 271d1a0f0..e31e33167 100644 --- a/docs/feature_tap_dance.md +++ b/docs/feature_tap_dance.md | |||
| @@ -187,9 +187,9 @@ enum { | |||
| 187 | SINGLE_TAP = 1, | 187 | SINGLE_TAP = 1, |
| 188 | SINGLE_HOLD = 2, | 188 | SINGLE_HOLD = 2, |
| 189 | DOUBLE_TAP = 3, | 189 | DOUBLE_TAP = 3, |
| 190 | DOUBLE_HOLD = 4, | 190 | DOUBLE_HOLD = 4, |
| 191 | DOUBLE_SINGLE_TAP = 5 //send SINGLE_TAP twice - NOT DOUBLE_TAP | 191 | DOUBLE_SINGLE_TAP = 5 //send SINGLE_TAP twice - NOT DOUBLE_TAP |
| 192 | // Add more enums here if you want for triple, quadruple, etc. | 192 | // Add more enums here if you want for triple, quadruple, etc. |
| 193 | }; | 193 | }; |
| 194 | 194 | ||
| 195 | typedef struct { | 195 | typedef struct { |
| @@ -209,14 +209,14 @@ int cur_dance (qk_tap_dance_state_t *state) { | |||
| 209 | if (state->interrupted) return DOUBLE_SINGLE_TAP; | 209 | if (state->interrupted) return DOUBLE_SINGLE_TAP; |
| 210 | else if (state->pressed) return DOUBLE_HOLD; | 210 | else if (state->pressed) return DOUBLE_HOLD; |
| 211 | else return DOUBLE_TAP; | 211 | else return DOUBLE_TAP; |
| 212 | } | 212 | } |
| 213 | else return 6; //magic number. At some point this method will expand to work for more presses | 213 | else return 6; //magic number. At some point this method will expand to work for more presses |
| 214 | } | 214 | } |
| 215 | 215 | ||
| 216 | //**************** Definitions needed for quad function to work *********************// | 216 | //**************** Definitions needed for quad function to work *********************// |
| 217 | 217 | ||
| 218 | //instanalize an instance of 'tap' for the 'x' tap dance. | 218 | //instanalize an instance of 'tap' for the 'x' tap dance. |
| 219 | static tap xtap_state = { | 219 | static tap xtap_state = { |
| 220 | .is_press_action = true, | 220 | .is_press_action = true, |
| 221 | .state = 0 | 221 | .state = 0 |
| 222 | }; | 222 | }; |
