diff options
author | Nick Brassel <[email protected]> | 2023-11-28 16:39:48 +1100 |
---|---|---|
committer | Nick Brassel <[email protected]> | 2023-11-28 16:40:47 +1100 |
commit | 0115951de12bd4c798a43a380651c34552552e85 (patch) | |
tree | 62999011ae782d93aa6dc9c889615db2a840cafc /users/ridingqwerty/tapdances.c | |
parent | 0379d1f59e58cefa18cdb72ba1b77507d1108ae6 (diff) | |
parent | 4d99e0a23cff02f4c6e55e093b5de08a9be0df7c (diff) | |
download | qmk_firmware-0.23.0.tar.gz qmk_firmware-0.23.0.zip |
`develop` -> `master`, 2023q4 edition0.23.0
Diffstat (limited to 'users/ridingqwerty/tapdances.c')
-rw-r--r-- | users/ridingqwerty/tapdances.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/users/ridingqwerty/tapdances.c b/users/ridingqwerty/tapdances.c deleted file mode 100644 index 0fdd941637..0000000000 --- a/users/ridingqwerty/tapdances.c +++ /dev/null @@ -1,33 +0,0 @@ -#include "ridingqwerty.h" -#include "tapdances.h" - -void braces_finished (tap_dance_state_t *state, void *user_data) { - if ((state->count == 1) || (state->count == 3)) { - register_code(KC_LSFT); - } -} - -void braces_reset (tap_dance_state_t *state, void *user_data) { - // two or three taps for "[]"/"{}" - if ((state->count == 2) || (state->count == 3)) { - tap_code(KC_LBRC); - tap_code(KC_RBRC); - } - // one tap for "()" - else if (state->count == 1) { - tap_code(KC_9); - tap_code(KC_0); - } - - // unregister the shift unconditionally - unregister_code(KC_LSFT); - - // move back one space, inside the braces - if (state->count <= 3) { - tap_code(KC_LEFT); - } -} - -tap_dance_action_t tap_dance_actions[] = { - [TD_BRACES] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, braces_finished, braces_reset) -}; |