diff options
| -rw-r--r-- | keyboards/frosty_flake/keymaps/nikchi/keymap.c | 9 | ||||
| -rw-r--r-- | keyboards/frosty_flake/keymaps/nikchi/variableTapDance.md | 7 |
2 files changed, 10 insertions, 6 deletions
diff --git a/keyboards/frosty_flake/keymaps/nikchi/keymap.c b/keyboards/frosty_flake/keymaps/nikchi/keymap.c index d522fdf1c..f9dcf4556 100644 --- a/keyboards/frosty_flake/keymaps/nikchi/keymap.c +++ b/keyboards/frosty_flake/keymaps/nikchi/keymap.c | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | #include "quantum.h" | 6 | #include "quantum.h" |
| 7 | 7 | ||
| 8 | #define _______ KC_TRNS | 8 | #define _______ KC_TRNS |
| 9 | #define EMOJIBLOCK 5 | ||
| 9 | 10 | ||
| 10 | 11 | ||
| 11 | //declarations for tap dancing emojis | 12 | //declarations for tap dancing emojis |
| @@ -189,7 +190,7 @@ void cycleEmojis(qk_tap_dance_state_t *state, void *user_data) { | |||
| 189 | register_hex32(pgm_read_dword(&unicode_map[state->count])); | 190 | register_hex32(pgm_read_dword(&unicode_map[state->count])); |
| 190 | unicode_input_finish(); | 191 | unicode_input_finish(); |
| 191 | } | 192 | } |
| 192 | else if(state->count <= 5) { | 193 | else if(state->count <= EMOJIBLOCK) { |
| 193 | tap(KC_BSPC); | 194 | tap(KC_BSPC); |
| 194 | unicode_input_start(); | 195 | unicode_input_start(); |
| 195 | register_hex32(pgm_read_dword(&unicode_map[state->count])); | 196 | register_hex32(pgm_read_dword(&unicode_map[state->count])); |
| @@ -203,7 +204,7 @@ void cycleAnimals(qk_tap_dance_state_t *state, void *user_data) { | |||
| 203 | register_hex32(pgm_read_dword(&unicode_map[state->count+5])); | 204 | register_hex32(pgm_read_dword(&unicode_map[state->count+5])); |
| 204 | unicode_input_finish(); | 205 | unicode_input_finish(); |
| 205 | } | 206 | } |
| 206 | else if(state->count <= 5) { | 207 | else if(state->count <= EMOJIBLOCK) { |
| 207 | tap(KC_BSPC); | 208 | tap(KC_BSPC); |
| 208 | unicode_input_start(); | 209 | unicode_input_start(); |
| 209 | register_hex32(pgm_read_dword(&unicode_map[state->count+5])); | 210 | register_hex32(pgm_read_dword(&unicode_map[state->count+5])); |
| @@ -217,7 +218,7 @@ void cycleHands(qk_tap_dance_state_t *state, void *user_data) { | |||
| 217 | register_hex32(pgm_read_dword(&unicode_map[state->count+10])); | 218 | register_hex32(pgm_read_dword(&unicode_map[state->count+10])); |
| 218 | unicode_input_finish(); | 219 | unicode_input_finish(); |
| 219 | } | 220 | } |
| 220 | else if(state->count <= 5) { | 221 | else if(state->count <= EMOJIBLOCK) { |
| 221 | tap(KC_BSPC); | 222 | tap(KC_BSPC); |
| 222 | unicode_input_start(); | 223 | unicode_input_start(); |
| 223 | register_hex32(pgm_read_dword(&unicode_map[state->count+10])); | 224 | register_hex32(pgm_read_dword(&unicode_map[state->count+10])); |
| @@ -231,7 +232,7 @@ void cycleMemes(qk_tap_dance_state_t *state, void *user_data) { | |||
| 231 | register_hex32(pgm_read_dword(&unicode_map[state->count+15])); | 232 | register_hex32(pgm_read_dword(&unicode_map[state->count+15])); |
| 232 | unicode_input_finish(); | 233 | unicode_input_finish(); |
| 233 | } | 234 | } |
| 234 | else if(state->count <= 5) { | 235 | else if(state->count <= EMOJIBLOCK) { |
| 235 | tap(KC_BSPC); | 236 | tap(KC_BSPC); |
| 236 | unicode_input_start(); | 237 | unicode_input_start(); |
| 237 | register_hex32(pgm_read_dword(&unicode_map[state->count+15])); | 238 | register_hex32(pgm_read_dword(&unicode_map[state->count+15])); |
diff --git a/keyboards/frosty_flake/keymaps/nikchi/variableTapDance.md b/keyboards/frosty_flake/keymaps/nikchi/variableTapDance.md index 7b9695a83..b2e504139 100644 --- a/keyboards/frosty_flake/keymaps/nikchi/variableTapDance.md +++ b/keyboards/frosty_flake/keymaps/nikchi/variableTapDance.md | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | # Tap Dancing to different beats. | 1 | # Tap Dancing to different beats. |
| 2 | Tap Dance is constrained normally by `TAPPING_TERM` defined in your keyboard's config.h This proves to be challenging to work with when sometimes you just need more time to tap out your dance. | 2 | Tap Dance is constrained normally by `TAPPING_TERM` defined in your keyboard's config.h This proves to be challenging to work with when sometimes you just need more time to tap out your dance, or even a different "beat". |
| 3 | |||
| 4 | |||
| 5 | |||
| 6 | - `ACTION_TAP_DANCE_FN_ADVANCED_TIME(user_fn_on_each_tap, user_fn_on_dance_finished, user_fn_on_dance_reset, tap_specific_tapping_term)` : This works the same as `ACTION_TAP_DANCE_FN_ADVANCED` just with the extra `tap_specific_tapping_term` arguement at the end. This way you can set a specific tap dance to have a longer or shorter tap in between your taps, giving you more, or less, time in between each tap. | ||
| 3 | 7 | ||
| 4 | - `ACTION_TAP_DANCE_FN_ADVANCED_TIME(user_fn_on_each_tap, user_fn_on_dance_finished, user_fn_on_dance_reset, tap_specific_tapping_term)` : This works the same as `ACTION_TAP_DANCE_FN_ADVANCED` just with the extra `tap_specific_tapping_term` arguement at the end. | ||
| 5 | 8 | ||
| 6 | `tap_specific_tapping_term` should be the same type and range of values that one would put into the `TAPPING_TERM` definition in the config.h file. | 9 | `tap_specific_tapping_term` should be the same type and range of values that one would put into the `TAPPING_TERM` definition in the config.h file. |
