summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2022-12-15 07:40:25 +1100
committerGitHub <noreply@github.com>2022-12-14 12:40:25 -0800
commit1978007faefc0fb3af809ddf0d2ff1274e540570 (patch)
tree76e3d5ce69f8f4892602c5cfb6b54374642e7c55
parent83e8e5845a7136ade68bad82c156c70c071f9bf7 (diff)
Tap Dance: remove `qk_` prefix (#19313)
-rw-r--r--docs/feature_tap_dance.md64
-rw-r--r--keyboards/1k/keymaps/tap_dance/keymap.c2
-rw-r--r--keyboards/1upkeyboards/sweet16/keymaps/ridingintraffic/keymap.c10
-rw-r--r--keyboards/40percentclub/gherkin/keymaps/mjt/keymap.c2
-rw-r--r--keyboards/40percentclub/half_n_half/keymaps/Boy_314/keymap.c6
-rw-r--r--keyboards/40percentclub/sixpack/keymaps/fkeys/keymap.c2
-rw-r--r--keyboards/9key/keymaps/tap_dance/keymap.c2
-rw-r--r--keyboards/adelheid/keymaps/floookay/keymap.c2
-rw-r--r--keyboards/arisu/keymaps/fate/keymap.c2
-rw-r--r--keyboards/atreus62/keymaps/194h/keymap.c2
-rw-r--r--keyboards/b_sides/rev41lp/keymaps/namnlos/keymap.c2
-rw-r--r--keyboards/basekeys/slice/rev1/keymaps/2moons/keymap.c2
-rw-r--r--keyboards/basekeys/slice/rev1_rgb/keymaps/2moons_rgb/keymap.c2
-rw-r--r--keyboards/bpiphany/pegasushoof/keymaps/citadel/keymap.c2
-rw-r--r--keyboards/contra/keymaps/erovia/keymap.c2
-rw-r--r--keyboards/contra/keymaps/ryanm101/keymap.c18
-rw-r--r--keyboards/converter/usb_usb/keymaps/chriskopher/tap_dance.c16
-rw-r--r--keyboards/crkbd/keymaps/colemad/tap_dances.c2
-rw-r--r--keyboards/crkbd/keymaps/nimishgautam/keymap.c6
-rw-r--r--keyboards/crkbd/keymaps/thunderbird2086/tap_dances.c2
-rw-r--r--keyboards/dz60/keymaps/LEdiodes/keymap.c2
-rw-r--r--keyboards/dz60/keymaps/jdelkins/keymap.c12
-rw-r--r--keyboards/emptystring/nqg/keymaps/default/keymap.c2
-rwxr-xr-xkeyboards/ergodox_ez/keymaps/bepo_tm_style/keymap.c4
-rw-r--r--keyboards/ergodox_ez/keymaps/bpruitt-goddard/keymap.c4
-rw-r--r--keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/dot_comm.c4
-rw-r--r--keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/h_mouse_gui.c4
-rw-r--r--keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/j_media_meh.c4
-rw-r--r--keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/k_numpad_hyper.c4
-rw-r--r--keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/m_chords_hyper.c4
-rw-r--r--keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/none_lead.c4
-rw-r--r--keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/quot_dquot.c4
-rw-r--r--keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/scln_coln.c4
-rw-r--r--keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/u_arrows_gui.c4
-rw-r--r--keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/w_media_meh.c4
-rw-r--r--keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/tap_dance_actions.c2
-rw-r--r--keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/tap_dance_setup.c2
-rw-r--r--keyboards/ergodox_ez/keymaps/nathanvercaemert/keymap.c32
-rw-r--r--keyboards/ergodox_ez/keymaps/pvinis/keymap.c10
-rw-r--r--keyboards/eyeohdesigns/babyv/keymaps/melonbred/keymap.c2
-rw-r--r--keyboards/ferris/keymaps/madhatter/keymap.c2
-rw-r--r--keyboards/flehrad/bigswitch/keymaps/333fred/keymap.c6
-rw-r--r--keyboards/gboards/gergoplex/keymaps/georgepetri/keymap.c14
-rw-r--r--keyboards/gh60/satan/keymaps/dkrieger/keymap.c8
-rw-r--r--keyboards/gh60/satan/keymaps/lepa/keymap.c8
-rw-r--r--keyboards/gmmk/pro/rev1/ansi/keymaps/coryginsberg/keymap.c4
-rw-r--r--keyboards/h0oni/deskpad/keymaps/default/keymap.c22
-rw-r--r--keyboards/h0oni/deskpad/keymaps/via/keymap.c22
-rw-r--r--keyboards/halokeys/elemental75/keymaps/default/keymap.c4
-rw-r--r--keyboards/halokeys/elemental75/keymaps/via/keymap.c4
-rw-r--r--keyboards/handwired/2x5keypad/keymaps/default_tapdance/keymap.c18
-rw-r--r--keyboards/handwired/concertina/64key/keymaps/default/keymap.c2
-rw-r--r--keyboards/handwired/jscotto/scotto36/keymaps/default/keymap.c6
-rw-r--r--keyboards/handwired/jscotto/scottocmd/keymaps/default/keymap.c6
-rw-r--r--keyboards/handwired/k_numpad17/keymaps/karlssn/keymap.c2
-rw-r--r--keyboards/handwired/lagrange/keymaps/dpapavas/keymap.c6
-rw-r--r--keyboards/handwired/myskeeb/keymaps/default/keymap.c10
-rw-r--r--keyboards/handwired/onekey/keymaps/backlight/keymap.c6
-rw-r--r--keyboards/handwired/onekey/keymaps/oled/keymap.c4
-rw-r--r--keyboards/handwired/ortho5x14/keymaps/2u/keymap.c56
-rw-r--r--keyboards/handwired/ortho5x14/keymaps/default/keymap.c4
-rw-r--r--keyboards/handwired/ortho5x14/keymaps/split1/keymap.c40
-rw-r--r--keyboards/handwired/space_oddity/keymaps/default/keymap.c2
-rwxr-xr-xkeyboards/hub16/keymaps/macro/keymap.c6
-rw-r--r--keyboards/hub20/keymaps/macro/keymap.c6
-rw-r--r--keyboards/idobao/id75/keymaps/egstad/keymap.c2
-rw-r--r--keyboards/jones/v03/keymaps/default_jp/keymap.c14
-rw-r--r--keyboards/jones/v03_1/keymaps/default_ansi/keymap.c14
-rw-r--r--keyboards/jones/v03_1/keymaps/default_jp/keymap.c14
-rw-r--r--keyboards/kbdfans/kbd67/mkii_soldered/keymaps/adamdehaven/keymap.c2
-rw-r--r--keyboards/kbdfans/kbd6x/keymaps/othi/keymap.c18
-rw-r--r--keyboards/kbdfans/kbd75/keymaps/adamdehaven/keymap.c2
-rw-r--r--keyboards/kbdfans/kbd75/keymaps/noroadsleft/keymap.c2
-rw-r--r--keyboards/kbdfans/kbdpad/mk2/keymaps/iracing_replay/keymap.c6
-rw-r--r--keyboards/keebio/bdn9/keymaps/brandonschlack/keymap.c2
-rw-r--r--keyboards/keebio/bdn9/keymaps/eosti/keymap.c14
-rw-r--r--keyboards/keebio/bfo9000/keymaps/insertsnideremarks/keymap.c6
-rw-r--r--keyboards/keebio/bfo9000/keymaps/tuesdayjohn/keymap.c6
-rw-r--r--keyboards/keebio/iris/keymaps/adamgate/keymap.c2
-rw-r--r--keyboards/keebio/iris/keymaps/boo/keymap.c2
-rw-r--r--keyboards/keebio/iris/keymaps/davidrambo/keymap.c6
-rw-r--r--keyboards/keebio/iris/keymaps/khord/keymap.c2
-rw-r--r--keyboards/keebio/iris/keymaps/omgvee/keymap.c2
-rw-r--r--keyboards/keebio/iris/keymaps/sq5rix/keymap.c2
-rw-r--r--keyboards/keebio/iris/keymaps/two_knob/keymap.c2
-rw-r--r--keyboards/keebio/rorschach/keymaps/insertsnideremarks/keymap.c6
-rw-r--r--keyboards/keebio/rorschach/keymaps/tuesdayjohn/keymap.c6
-rw-r--r--keyboards/keyboardio/atreus/keymaps/kkokdae/keymap.c6
-rw-r--r--keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_mac_caps.c4
-rw-r--r--keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_mac_caps.h4
-rw-r--r--keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_setup.c2
-rw-r--r--keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_setup.h2
-rw-r--r--keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_user.c2
-rw-r--r--keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_win_caps.c4
-rw-r--r--keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_win_caps.h4
-rw-r--r--keyboards/keyhive/navi10/keymaps/default/keymap.c14
-rw-r--r--keyboards/keyhive/navi10/keymaps/devdev/keymap.c14
-rw-r--r--keyboards/keyhive/navi10/keymaps/emdarcher/keymap.c14
-rw-r--r--keyboards/keyhive/opus/keymaps/thefoxcodes/keymap.c2
-rw-r--r--keyboards/keyhive/ut472/keymaps/stefanopace/keymap.c2
-rw-r--r--keyboards/kinesis/keymaps/farmergreg/keymap.c2
-rw-r--r--keyboards/kinesis/keymaps/insertsnideremarks/keymap.c6
-rw-r--r--keyboards/kinesis/keymaps/tuesdayjohn/keymap.c6
-rw-r--r--keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c4
-rw-r--r--keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c4
-rw-r--r--keyboards/knops/mini/keymaps/mverteuil/keymap.c10
-rw-r--r--keyboards/kprepublic/bm40hsrgb/keymaps/dan/keymap.c2
-rwxr-xr-xkeyboards/kprepublic/bm40hsrgb/keymaps/gabustoledo/keymap.c2
-rw-r--r--keyboards/kprepublic/bm40hsrgb/keymaps/signynt/keymap.c2
-rw-r--r--keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_loud/keymap.c2
-rw-r--r--keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_quiet/keymap.c2
-rw-r--r--keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c2
-rw-r--r--keyboards/kprepublic/bm65hsrgb_iso/rev1/keymaps/deadolus/keymap.c2
-rw-r--r--keyboards/kprepublic/jj40/keymaps/stevexyz/keymap.c2
-rw-r--r--keyboards/kprepublic/jj50/keymaps/archetype/keymap.c16
-rw-r--r--keyboards/late9/rev1/keymaps/multitap/keymap.c24
-rw-r--r--keyboards/lets_split/keymaps/adam/keymap.c4
-rw-r--r--keyboards/lets_split/keymaps/cpeters1982/keymap.c2
-rw-r--r--keyboards/lets_split/keymaps/geripgeri/keymap.c14
-rw-r--r--keyboards/lets_split/keymaps/heartrobotninja/keymap.c2
-rw-r--r--keyboards/lets_split/keymaps/khord/keymap.c2
-rw-r--r--keyboards/lets_split/keymaps/mbsurfer/keymap.c2
-rw-r--r--keyboards/lets_split/keymaps/tylerwince/keymap.c2
-rw-r--r--keyboards/lfkeyboards/lfk78/keymaps/ca178858/keymap.c10
-rw-r--r--keyboards/lfkeyboards/lfk87/keymaps/ca178858/keymap.c6
-rw-r--r--keyboards/lfkeyboards/mini1800/keymaps/ca178858/keymap.c6
-rw-r--r--keyboards/maple_computing/launchpad/keymaps/brandonschlack/keymap.c2
-rw-r--r--keyboards/maple_computing/minidox/keymaps/dustypomerleau/keymap.c46
-rw-r--r--keyboards/marksard/treadstone32/keymaps/default/keymap.c2
-rw-r--r--keyboards/marksard/treadstone32/keymaps/like_jis/keymap.c2
-rw-r--r--keyboards/massdrop/alt/keymaps/jdelkins/keymap.c8
-rw-r--r--keyboards/massdrop/ctrl/keymaps/endgame/keymap.c2
-rw-r--r--keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c8
-rw-r--r--keyboards/massdrop/ctrl/keymaps/xanimos/keymap.h6
-rw-r--r--keyboards/matrix/noah/keymaps/blockader/keymap.c2
-rwxr-xr-xkeyboards/mechkeys/mechmini/v2/keymaps/lbibass_625_space/keymap.c2
-rw-r--r--keyboards/mechkeys/mechmini/v2/keymaps/wsturgiss/keymap.c2
-rw-r--r--keyboards/mechwild/bde/lefty/keymaps/fancy/keymap.c14
-rw-r--r--keyboards/mechwild/mercutio/keymaps/fearless_spiff/keymap.c2
-rw-r--r--keyboards/mechwild/mercutio/keymaps/fearless_spiff_en/keymap.c2
-rw-r--r--keyboards/minimacro5/keymaps/devdev/keymap.c2
-rw-r--r--keyboards/mt/mt980/keymaps/walker/keymap.c14
-rw-r--r--keyboards/nasu/keymaps/mariocs/keymap.c2
-rw-r--r--keyboards/numatreus/keymaps/like_jis/keymap.c2
-rw-r--r--keyboards/planck/keymaps/altgr/common/keycode_functions.h62
-rw-r--r--keyboards/planck/keymaps/ariccb/keymap.c18
-rw-r--r--keyboards/planck/keymaps/circuit/keymap.c2
-rw-r--r--keyboards/planck/keymaps/copface/keymap.c2
-rw-r--r--keyboards/planck/keymaps/corvec/tapdance.c16
-rw-r--r--keyboards/planck/keymaps/davidrambo/keymap.c6
-rw-r--r--keyboards/planck/keymaps/dc/keymap.c2
-rw-r--r--keyboards/planck/keymaps/dodger/keymap.c2
-rw-r--r--keyboards/planck/keymaps/dr_notsokind/keymap.c2
-rw-r--r--keyboards/planck/keymaps/dvorak2space/keymap.c12
-rw-r--r--keyboards/planck/keymaps/hiea/common/keycode_functions.h62
-rw-r--r--keyboards/planck/keymaps/hieax/common/keycode_functions.h62
-rw-r--r--keyboards/planck/keymaps/jdelkins/keymap.c12
-rw-r--r--keyboards/planck/keymaps/jweickm/keymap.c16
-rw-r--r--keyboards/planck/keymaps/mjuma/keymap.c2
-rw-r--r--keyboards/planck/keymaps/roguepullrequest/keymap.c30
-rw-r--r--keyboards/planck/keymaps/rootiest/keymap.c40
-rw-r--r--keyboards/planck/keymaps/sdothum/common/keycode_functions.h62
-rw-r--r--keyboards/planck/keymaps/snowkuma/keymap.c8
-rw-r--r--keyboards/planck/keymaps/tylerwince/keymap.c2
-rw-r--r--keyboards/planck/keymaps/unagi/keymap.c2
-rw-r--r--keyboards/planck/keymaps/zach/zach_common_functions.c16
-rw-r--r--keyboards/preonic/keymaps/choromanski/keymap.c2
-rwxr-xr-xkeyboards/preonic/keymaps/davidrambo/keymap.c6
-rw-r--r--keyboards/preonic/keymaps/egstad/keymap.c2
-rw-r--r--keyboards/preonic/keymaps/era1112/keymap.c14
-rw-r--r--keyboards/preonic/keymaps/mverteuil/keymap.c54
-rw-r--r--keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c40
-rw-r--r--keyboards/preonic/keymaps/zach/zach_common_functions.c16
-rw-r--r--keyboards/primekb/prime_e/keymaps/brandonschlack/keymap.c2
-rw-r--r--keyboards/primekb/prime_o/keymaps/reasonsandreasons/keymap.c2
-rw-r--r--keyboards/recompile_keys/nomu30/keymaps/center_sprit/keymap.c2
-rw-r--r--keyboards/recompile_keys/nomu30/keymaps/like_jis/keymap.c2
-rw-r--r--keyboards/redox/keymaps/finex/keymap.c14
-rw-r--r--keyboards/reviung/reviung41/keymaps/ciutadellla/keymap.c4
-rw-r--r--keyboards/rgbkb/zen/rev1/keymaps/starcalleramethyst/keymap.c2
-rw-r--r--keyboards/salicylic_acid3/7skb/keymaps/salicylic/keymap.c2
-rw-r--r--keyboards/salicylic_acid3/7splus/keymaps/salicylic/keymap.c2
-rw-r--r--keyboards/salicylic_acid3/ajisai74/keymaps/jis/keymap.c2
-rw-r--r--keyboards/salicylic_acid3/ajisai74/keymaps/salicylic/keymap.c2
-rw-r--r--keyboards/salicylic_acid3/jisplit89/keymaps/salicylic/keymap.c2
-rw-r--r--keyboards/salicylic_acid3/naked60/keymaps/salicylic/keymap.c2
-rw-r--r--keyboards/salicylic_acid3/naked60/keymaps/salicylic_with_nafuda/keymap.c2
-rw-r--r--keyboards/salicylic_acid3/naked60/keymaps/salicylic_with_setta21/keymap.c2
-rw-r--r--keyboards/salicylic_acid3/naked64/keymaps/salicylic/keymap.c2
-rw-r--r--keyboards/salicylic_acid3/naked64/keymaps/salicylic_with_setta21/keymap.c2
-rw-r--r--keyboards/sofle/keymaps/flare576/keymap.c2
-rw-r--r--keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/keymap.c6
-rw-r--r--keyboards/spaceman/2_milk/keymaps/emoji/keymap.c6
-rw-r--r--keyboards/spacetime/keymaps/kyleterry/keymap.c6
-rw-r--r--keyboards/splitkb/kyria/keymaps/artflag/keymap.c6
-rw-r--r--keyboards/splitkb/kyria/keymaps/lms_ace01/keymap.c14
-rw-r--r--keyboards/tada68/keymaps/abishalom/keymap.c2
-rw-r--r--keyboards/tada68/keymaps/sm0g/keymap.c2
-rw-r--r--keyboards/tada68/keymaps/trashcat/keymap.c2
-rw-r--r--keyboards/the_royal/liminal/keymaps/default/keymap.c4
-rw-r--r--keyboards/the_royal/liminal/keymaps/default_iso/keymap.c4
-rw-r--r--keyboards/the_royal/schwann/keymaps/default/keymap.c4
-rw-r--r--keyboards/thevankeyboards/minivan/keymaps/belak/keymap.c10
-rw-r--r--keyboards/thevankeyboards/minivan/keymaps/like_jis/keymap.c2
-rw-r--r--keyboards/tunks/ergo33/keymaps/prpro/keymap.c2
-rw-r--r--keyboards/ungodly/launch_pad/keymaps/warzone/keymap.c2
-rw-r--r--keyboards/unikeyboard/diverge3/keymaps/default/keymap.c8
-rwxr-xr-xkeyboards/woodkeys/bigseries/1key/keymaps/dudeofawesome/keymap.c4
-rwxr-xr-xkeyboards/woodkeys/bigseries/1key/keymaps/leddance/keymap.c4
-rw-r--r--keyboards/work_louder/work_board/keymaps/default/keymap.c6
-rw-r--r--keyboards/work_louder/work_board/keymaps/via/keymap.c6
-rw-r--r--keyboards/wsk/gothic50/keymaps/default/keymap.c2
-rw-r--r--keyboards/wsk/gothic70/keymaps/default/keymap.c2
-rw-r--r--keyboards/xiudi/xd002/keymaps/tap_dance/keymap.c2
-rw-r--r--keyboards/xiudi/xd60/keymaps/Jos/keymap.c8
-rw-r--r--keyboards/xiudi/xd75/keymaps/davidrambo/keymap.c6
-rw-r--r--keyboards/xiudi/xd75/keymaps/dyn_macro_tap_dance/keymap.c4
-rw-r--r--keyboards/xiudi/xd75/keymaps/germanized/keymap.c2
-rw-r--r--keyboards/xiudi/xd75/keymaps/hybrid/keymap.c26
-rw-r--r--keyboards/xiudi/xd75/keymaps/odyssey/keymap.c14
-rw-r--r--keyboards/xiudi/xd75/keymaps/tdl-jturner/keymap.c2
-rw-r--r--keyboards/yatara/drink_me/keymaps/queen/keymap.c10
-rw-r--r--keyboards/ymdk/ymd96/keymaps/hgoel89/keymap.c2
-rw-r--r--keyboards/zfrontier/big_switch/keymaps/longtap/keymap.c6
-rw-r--r--layouts/community/ergodox/belak/keymap.c14
-rw-r--r--layouts/community/ergodox/haegin/keymap.c10
-rw-r--r--layouts/community/ergodox/meagerfindings/keymap.c2
-rw-r--r--layouts/community/ergodox/videck/keymap.c6
-rw-r--r--layouts/community/ortho_5x12/riblee/keymap.c2
-rw-r--r--quantum/process_keycode/process_tap_dance.c44
-rw-r--r--quantum/process_keycode/process_tap_dance.h42
-rw-r--r--tests/tap_dance/examples.c22
-rw-r--r--tests/tap_dance/tap_dance_layers/tap_dance_defs.c8
-rw-r--r--users/333fred/333fred.c8
-rw-r--r--users/333fred/333fred.h4
-rw-r--r--users/billypython/tap_dance.c12
-rw-r--r--users/brandonschlack/tap_dances.c22
-rw-r--r--users/brandonschlack/tap_dances.h10
-rw-r--r--users/curry/tap_dances.c2
-rw-r--r--users/d4mation/tap-dance.c2
-rw-r--r--users/danielo515/tap_dance.c22
-rw-r--r--users/danielo515/tap_dance.h22
-rw-r--r--users/draevin/draevin.c2
-rw-r--r--users/drashna/keyrecords/tap_dance.md4
-rw-r--r--users/drashna/keyrecords/tap_dances.c4
-rw-r--r--users/dvorak_42_key/dvorak_42_key.c8
-rw-r--r--users/edvorakjp/edvorakjp_tap_dance.c12
-rwxr-xr-xusers/ericgebhart/extensions/keycodes.h6
-rwxr-xr-xusers/ericgebhart/extensions/tap_dances.c14
-rw-r--r--users/greatwizard/tap_dances.c12
-rw-r--r--users/greatwizard/tap_dances.h10
-rw-r--r--users/hvp/tap_dances.c22
-rw-r--r--users/imchipwood/imchipwood.c16
-rw-r--r--users/imchipwood/imchipwood.h16
-rw-r--r--users/jdelkins/jdelkins.c4
-rw-r--r--users/jdelkins/jdelkins.h4
-rw-r--r--users/jonavin/jonavin.c6
-rw-r--r--users/klackygears/tap_dances.c28
-rw-r--r--users/konstantin/tap_dance.c34
-rw-r--r--users/kuatsure/kuatsure.c2
-rw-r--r--users/kuchosauronad0/tap_dances.c6
-rw-r--r--users/kuchosauronad0/tap_dances.h2
-rw-r--r--users/losinggeneration/losinggeneration-keymap.h12
-rw-r--r--users/manna-harbour_miryoku/manna-harbour_miryoku.c6
-rw-r--r--users/mnil/mnil.c12
-rw-r--r--users/muppetjones/features/dancelayers.c6
-rw-r--r--users/muppetjones/features/dancelayers.h8
-rw-r--r--users/ninjonas/tap_dances.c12
-rw-r--r--users/nstickney/nstickney.c8
-rw-r--r--users/pvinis/pvinis.c2
-rw-r--r--users/riblee/riblee.c10
-rw-r--r--users/riblee/riblee.h10
-rw-r--r--users/ridingqwerty/tapdances.c6
-rw-r--r--users/rmeli/keyrecords/tap_dances.c12
-rw-r--r--users/rmeli/keyrecords/tap_dances.h10
-rw-r--r--users/rmw/tapdances.c44
-rw-r--r--users/rmw/tapdances.h42
-rw-r--r--users/romus/romus.c2
-rw-r--r--users/sethBarberee/tap_dance.c8
-rw-r--r--users/stanrc85/stanrc85.c10
-rw-r--r--users/stanrc85/stanrc85.h6
-rw-r--r--users/talljoe/tapdance/actions/td.function.c4
-rw-r--r--users/talljoe/tapdance/actions/td.grave.c4
-rw-r--r--users/talljoe/tapdance/actions/td.lock.c4
-rw-r--r--users/talljoe/tapdance/actions/td.semicolon.c6
-rw-r--r--users/talljoe/tapdance/tapdance_actions.c2
-rw-r--r--users/talljoe/tapdance/td_setup.c4
-rw-r--r--users/talljoe/tapdance/td_setup.h4
-rw-r--r--users/tominabox1/tominabox1.c6
-rw-r--r--users/wanleg/tapdances.c28
-rw-r--r--users/xulkal/custom_tap_dance.c2
-rw-r--r--users/yet-another-developer/tap_dances.c6
-rw-r--r--users/yet-another-developer/tap_dances.h2
-rw-r--r--users/zer09/tap_dance.c28
-rw-r--r--users/zer09/tap_dance.h26
-rw-r--r--users/zigotica/tapdances.c4
-rw-r--r--users/zyber/zyber.c18
-rw-r--r--users/zyber/zyber.h16
298 files changed, 1328 insertions, 1328 deletions
diff --git a/docs/feature_tap_dance.md b/docs/feature_tap_dance.md
index 1062e32243..b7d8a5528f 100644
--- a/docs/feature_tap_dance.md
+++ b/docs/feature_tap_dance.md
@@ -64,7 +64,7 @@ enum {
64}; 64};
65 65
66// Tap Dance definitions 66// Tap Dance definitions
67qk_tap_dance_action_t tap_dance_actions[] = { 67tap_dance_action_t tap_dance_actions[] = {
68 // Tap once for Escape, twice for Caps Lock 68 // Tap once for Escape, twice for Caps Lock
69 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS), 69 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS),
70}; 70};
@@ -96,14 +96,14 @@ enum {
96#### Example 1: Send "Safety Dance!" After 100 Taps :id=example-1 96#### Example 1: Send "Safety Dance!" After 100 Taps :id=example-1
97 97
98```c 98```c
99void dance_egg(qk_tap_dance_state_t *state, void *user_data) { 99void dance_egg(tap_dance_state_t *state, void *user_data) {
100 if (state->count >= 100) { 100 if (state->count >= 100) {
101 SEND_STRING("Safety dance!"); 101 SEND_STRING("Safety dance!");
102 reset_tap_dance(state); 102 reset_tap_dance(state);
103 } 103 }
104} 104}
105 105
106qk_tap_dance_action_t tap_dance_actions[] = { 106tap_dance_action_t tap_dance_actions[] = {
107 [CT_EGG] = ACTION_TAP_DANCE_FN(dance_egg), 107 [CT_EGG] = ACTION_TAP_DANCE_FN(dance_egg),
108}; 108};
109``` 109```
@@ -113,7 +113,7 @@ qk_tap_dance_action_t tap_dance_actions[] = {
113```c 113```c
114// On each tap, light up one LED, from right to left 114// On each tap, light up one LED, from right to left
115// On the fourth tap, turn them off from right to left 115// On the fourth tap, turn them off from right to left
116void dance_flsh_each(qk_tap_dance_state_t *state, void *user_data) { 116void dance_flsh_each(tap_dance_state_t *state, void *user_data) {
117 switch (state->count) { 117 switch (state->count) {
118 case 1: 118 case 1:
119 ergodox_right_led_3_on(); 119 ergodox_right_led_3_on();
@@ -134,14 +134,14 @@ void dance_flsh_each(qk_tap_dance_state_t *state, void *user_data) {
134} 134}
135 135
136// On the fourth tap, set the keyboard on flash state 136// On the fourth tap, set the keyboard on flash state
137void dance_flsh_finished(qk_tap_dance_state_t *state, void *user_data) { 137void dance_flsh_finished(tap_dance_state_t *state, void *user_data) {
138 if (state->count >= 4) { 138 if (state->count >= 4) {
139 reset_keyboard(); 139 reset_keyboard();
140 } 140 }
141} 141}
142 142
143// If the flash state didn't happen, then turn off LEDs, left to right 143// If the flash state didn't happen, then turn off LEDs, left to right
144void dance_flsh_reset(qk_tap_dance_state_t *state, void *user_data) { 144void dance_flsh_reset(tap_dance_state_t *state, void *user_data) {
145 ergodox_right_led_1_off(); 145 ergodox_right_led_1_off();
146 wait_ms(50); 146 wait_ms(50);
147 ergodox_right_led_2_off(); 147 ergodox_right_led_2_off();
@@ -150,7 +150,7 @@ void dance_flsh_reset(qk_tap_dance_state_t *state, void *user_data) {
150} 150}
151 151
152// All tap dances now put together. Example 2 is "CT_FLSH" 152// All tap dances now put together. Example 2 is "CT_FLSH"
153qk_tap_dance_action_t tap_dance_actions[] = { 153tap_dance_action_t tap_dance_actions[] = {
154 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS), 154 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS),
155 [CT_EGG] = ACTION_TAP_DANCE_FN(dance_egg), 155 [CT_EGG] = ACTION_TAP_DANCE_FN(dance_egg),
156 [CT_FLSH] = ACTION_TAP_DANCE_FN_ADVANCED(dance_flsh_each, dance_flsh_finished, dance_flsh_reset) 156 [CT_FLSH] = ACTION_TAP_DANCE_FN_ADVANCED(dance_flsh_each, dance_flsh_finished, dance_flsh_reset)
@@ -169,7 +169,7 @@ typedef struct {
169} tap_dance_tap_hold_t; 169} tap_dance_tap_hold_t;
170 170
171bool process_record_user(uint16_t keycode, keyrecord_t *record) { 171bool process_record_user(uint16_t keycode, keyrecord_t *record) {
172 qk_tap_dance_action_t *action; 172 tap_dance_action_t *action;
173 173
174 switch (keycode) { 174 switch (keycode) {
175 case TD(CT_CLN): // list all tap dance keycodes with tap-hold configurations 175 case TD(CT_CLN): // list all tap dance keycodes with tap-hold configurations
@@ -182,7 +182,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
182 return true; 182 return true;
183} 183}
184 184
185void tap_dance_tap_hold_finished(qk_tap_dance_state_t *state, void *user_data) { 185void tap_dance_tap_hold_finished(tap_dance_state_t *state, void *user_data) {
186 tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)user_data; 186 tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)user_data;
187 187
188 if (state->pressed) { 188 if (state->pressed) {
@@ -200,7 +200,7 @@ void tap_dance_tap_hold_finished(qk_tap_dance_state_t *state, void *user_data) {
200 } 200 }
201} 201}
202 202
203void tap_dance_tap_hold_reset(qk_tap_dance_state_t *state, void *user_data) { 203void tap_dance_tap_hold_reset(tap_dance_state_t *state, void *user_data) {
204 tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)user_data; 204 tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)user_data;
205 205
206 if (tap_hold->held) { 206 if (tap_hold->held) {
@@ -212,7 +212,7 @@ void tap_dance_tap_hold_reset(qk_tap_dance_state_t *state, void *user_data) {
212#define ACTION_TAP_DANCE_TAP_HOLD(tap, hold) \ 212#define ACTION_TAP_DANCE_TAP_HOLD(tap, hold) \
213 { .fn = {NULL, tap_dance_tap_hold_finished, tap_dance_tap_hold_reset}, .user_data = (void *)&((tap_dance_tap_hold_t){tap, hold, 0}), } 213 { .fn = {NULL, tap_dance_tap_hold_finished, tap_dance_tap_hold_reset}, .user_data = (void *)&((tap_dance_tap_hold_t){tap, hold, 0}), }
214 214
215qk_tap_dance_action_t tap_dance_actions[] = { 215tap_dance_action_t tap_dance_actions[] = {
216 [CT_CLN] = ACTION_TAP_DANCE_TAP_HOLD(KC_COLN, KC_SCLN), 216 [CT_CLN] = ACTION_TAP_DANCE_TAP_HOLD(KC_COLN, KC_SCLN),
217}; 217};
218``` 218```
@@ -256,11 +256,11 @@ enum {
256 SOME_OTHER_DANCE 256 SOME_OTHER_DANCE
257}; 257};
258 258
259td_state_t cur_dance(qk_tap_dance_state_t *state); 259td_state_t cur_dance(tap_dance_state_t *state);
260 260
261// For the x tap dance. Put it here so it can be used in any keymap 261// For the x tap dance. Put it here so it can be used in any keymap
262void x_finished(qk_tap_dance_state_t *state, void *user_data); 262void x_finished(tap_dance_state_t *state, void *user_data);
263void x_reset(qk_tap_dance_state_t *state, void *user_data); 263void x_reset(tap_dance_state_t *state, void *user_data);
264``` 264```
265 265
266Now, at the bottom of your `keymap.c` file, you'll need to add the following: 266Now, at the bottom of your `keymap.c` file, you'll need to add the following:
@@ -293,7 +293,7 @@ Now, at the bottom of your `keymap.c` file, you'll need to add the following:
293 * For the third point, there does exist the 'TD_DOUBLE_SINGLE_TAP', however this is not fully tested 293 * For the third point, there does exist the 'TD_DOUBLE_SINGLE_TAP', however this is not fully tested
294 * 294 *
295 */ 295 */
296td_state_t cur_dance(qk_tap_dance_state_t *state) { 296td_state_t cur_dance(tap_dance_state_t *state) {
297 if (state->count == 1) { 297 if (state->count == 1) {
298 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP; 298 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP;
299 // Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'. 299 // Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'.
@@ -322,7 +322,7 @@ static td_tap_t xtap_state = {
322 .state = TD_NONE 322 .state = TD_NONE
323}; 323};
324 324
325void x_finished(qk_tap_dance_state_t *state, void *user_data) { 325void x_finished(tap_dance_state_t *state, void *user_data) {
326 xtap_state.state = cur_dance(state); 326 xtap_state.state = cur_dance(state);
327 switch (xtap_state.state) { 327 switch (xtap_state.state) {
328 case TD_SINGLE_TAP: register_code(KC_X); break; 328 case TD_SINGLE_TAP: register_code(KC_X); break;
@@ -337,7 +337,7 @@ void x_finished(qk_tap_dance_state_t *state, void *user_data) {
337 } 337 }
338} 338}
339 339
340void x_reset(qk_tap_dance_state_t *state, void *user_data) { 340void x_reset(tap_dance_state_t *state, void *user_data) {
341 switch (xtap_state.state) { 341 switch (xtap_state.state) {
342 case TD_SINGLE_TAP: unregister_code(KC_X); break; 342 case TD_SINGLE_TAP: unregister_code(KC_X); break;
343 case TD_SINGLE_HOLD: unregister_code(KC_LCTL); break; 343 case TD_SINGLE_HOLD: unregister_code(KC_LCTL); break;
@@ -349,7 +349,7 @@ void x_reset(qk_tap_dance_state_t *state, void *user_data) {
349 xtap_state.state = TD_NONE; 349 xtap_state.state = TD_NONE;
350} 350}
351 351
352qk_tap_dance_action_t tap_dance_actions[] = { 352tap_dance_action_t tap_dance_actions[] = {
353 [X_CTL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, x_finished, x_reset) 353 [X_CTL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, x_finished, x_reset)
354}; 354};
355``` 355```
@@ -385,18 +385,18 @@ static td_state_t td_state;
385// Declare your tapdance functions: 385// Declare your tapdance functions:
386 386
387// Function to determine the current tapdance state 387// Function to determine the current tapdance state
388td_state_t cur_dance(qk_tap_dance_state_t *state); 388td_state_t cur_dance(tap_dance_state_t *state);
389 389
390// `finished` and `reset` functions for each tapdance keycode 390// `finished` and `reset` functions for each tapdance keycode
391void altlp_finished(qk_tap_dance_state_t *state, void *user_data); 391void altlp_finished(tap_dance_state_t *state, void *user_data);
392void altlp_reset(qk_tap_dance_state_t *state, void *user_data); 392void altlp_reset(tap_dance_state_t *state, void *user_data);
393``` 393```
394 394
395Below your `LAYOUT`, define each of the tapdance functions: 395Below your `LAYOUT`, define each of the tapdance functions:
396 396
397```c 397```c
398// Determine the tapdance state to return 398// Determine the tapdance state to return
399td_state_t cur_dance(qk_tap_dance_state_t *state) { 399td_state_t cur_dance(tap_dance_state_t *state) {
400 if (state->count == 1) { 400 if (state->count == 1) {
401 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP; 401 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP;
402 else return TD_SINGLE_HOLD; 402 else return TD_SINGLE_HOLD;
@@ -408,7 +408,7 @@ td_state_t cur_dance(qk_tap_dance_state_t *state) {
408 408
409// Handle the possible states for each tapdance keycode you define: 409// Handle the possible states for each tapdance keycode you define:
410 410
411void altlp_finished(qk_tap_dance_state_t *state, void *user_data) { 411void altlp_finished(tap_dance_state_t *state, void *user_data) {
412 td_state = cur_dance(state); 412 td_state = cur_dance(state);
413 switch (td_state) { 413 switch (td_state) {
414 case TD_SINGLE_TAP: 414 case TD_SINGLE_TAP:
@@ -426,7 +426,7 @@ void altlp_finished(qk_tap_dance_state_t *state, void *user_data) {
426 } 426 }
427} 427}
428 428
429void altlp_reset(qk_tap_dance_state_t *state, void *user_data) { 429void altlp_reset(tap_dance_state_t *state, void *user_data) {
430 switch (td_state) { 430 switch (td_state) {
431 case TD_SINGLE_TAP: 431 case TD_SINGLE_TAP:
432 unregister_code16(KC_LPRN); 432 unregister_code16(KC_LPRN);
@@ -443,7 +443,7 @@ void altlp_reset(qk_tap_dance_state_t *state, void *user_data) {
443} 443}
444 444
445// Define `ACTION_TAP_DANCE_FN_ADVANCED()` for each tapdance keycode, passing in `finished` and `reset` functions 445// Define `ACTION_TAP_DANCE_FN_ADVANCED()` for each tapdance keycode, passing in `finished` and `reset` functions
446qk_tap_dance_action_t tap_dance_actions[] = { 446tap_dance_action_t tap_dance_actions[] = {
447 [ALT_LP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altlp_finished, altlp_reset) 447 [ALT_LP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altlp_finished, altlp_reset)
448}; 448};
449``` 449```
@@ -478,18 +478,18 @@ enum {
478// Declare the functions to be used with your tap dance key(s) 478// Declare the functions to be used with your tap dance key(s)
479 479
480// Function associated with all tap dances 480// Function associated with all tap dances
481td_state_t cur_dance(qk_tap_dance_state_t *state); 481td_state_t cur_dance(tap_dance_state_t *state);
482 482
483// Functions associated with individual tap dances 483// Functions associated with individual tap dances
484void ql_finished(qk_tap_dance_state_t *state, void *user_data); 484void ql_finished(tap_dance_state_t *state, void *user_data);
485void ql_reset(qk_tap_dance_state_t *state, void *user_data); 485void ql_reset(tap_dance_state_t *state, void *user_data);
486``` 486```
487 487
488Towards the bottom of your `keymap.c`, include the following code: 488Towards the bottom of your `keymap.c`, include the following code:
489 489
490```c 490```c
491// Determine the current tap dance state 491// Determine the current tap dance state
492td_state_t cur_dance(qk_tap_dance_state_t *state) { 492td_state_t cur_dance(tap_dance_state_t *state) {
493 if (state->count == 1) { 493 if (state->count == 1) {
494 if (!state->pressed) return TD_SINGLE_TAP; 494 if (!state->pressed) return TD_SINGLE_TAP;
495 else return TD_SINGLE_HOLD; 495 else return TD_SINGLE_HOLD;
@@ -504,7 +504,7 @@ static td_tap_t ql_tap_state = {
504}; 504};
505 505
506// Functions that control what our tap dance key does 506// Functions that control what our tap dance key does
507void ql_finished(qk_tap_dance_state_t *state, void *user_data) { 507void ql_finished(tap_dance_state_t *state, void *user_data) {
508 ql_tap_state.state = cur_dance(state); 508 ql_tap_state.state = cur_dance(state);
509 switch (ql_tap_state.state) { 509 switch (ql_tap_state.state) {
510 case TD_SINGLE_TAP: 510 case TD_SINGLE_TAP:
@@ -528,7 +528,7 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
528 } 528 }
529} 529}
530 530
531void ql_reset(qk_tap_dance_state_t *state, void *user_data) { 531void ql_reset(tap_dance_state_t *state, void *user_data) {
532 // If the key was held down and now is released then switch off the layer 532 // If the key was held down and now is released then switch off the layer
533 if (ql_tap_state.state == TD_SINGLE_HOLD) { 533 if (ql_tap_state.state == TD_SINGLE_HOLD) {
534 layer_off(_MY_LAYER); 534 layer_off(_MY_LAYER);
@@ -537,7 +537,7 @@ void ql_reset(qk_tap_dance_state_t *state, void *user_data) {
537} 537}
538 538
539// Associate our tap dance key with its functionality 539// Associate our tap dance key with its functionality
540qk_tap_dance_action_t tap_dance_actions[] = { 540tap_dance_action_t tap_dance_actions[] = {
541 [QUOT_LAYR] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset) 541 [QUOT_LAYR] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset)
542}; 542};
543 543
diff --git a/keyboards/1k/keymaps/tap_dance/keymap.c b/keyboards/1k/keymaps/tap_dance/keymap.c
index c2a8cf1aea..1044924978 100644
--- a/keyboards/1k/keymaps/tap_dance/keymap.c
+++ b/keyboards/1k/keymaps/tap_dance/keymap.c
@@ -11,7 +11,7 @@ enum {
11 TD_AB = 0 11 TD_AB = 0
12}; 12};
13 13
14qk_tap_dance_action_t tap_dance_actions[] = { 14tap_dance_action_t tap_dance_actions[] = {
15 [TD_AB] = ACTION_TAP_DANCE_DOUBLE(KC_A, KC_B) 15 [TD_AB] = ACTION_TAP_DANCE_DOUBLE(KC_A, KC_B)
16}; 16};
17 17
diff --git a/keyboards/1upkeyboards/sweet16/keymaps/ridingintraffic/keymap.c b/keyboards/1upkeyboards/sweet16/keymaps/ridingintraffic/keymap.c
index eeca552657..2e7505ec1c 100644
--- a/keyboards/1upkeyboards/sweet16/keymaps/ridingintraffic/keymap.c
+++ b/keyboards/1upkeyboards/sweet16/keymaps/ridingintraffic/keymap.c
@@ -155,32 +155,32 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
155 155
156 156
157/* tap dance time */ 157/* tap dance time */
158void tdexample1(qk_tap_dance_state_t *state, void *user_data) { 158void tdexample1(tap_dance_state_t *state, void *user_data) {
159 if (state->count >= 2) { 159 if (state->count >= 2) {
160 SEND_STRING(EXAMPLESTRING1); 160 SEND_STRING(EXAMPLESTRING1);
161 reset_tap_dance (state); 161 reset_tap_dance (state);
162 } 162 }
163} 163}
164void tdexample2(qk_tap_dance_state_t *state, void *user_data) { 164void tdexample2(tap_dance_state_t *state, void *user_data) {
165 if (state->count >= 2) { 165 if (state->count >= 2) {
166 SEND_STRING(EXAMPLESTRING2); 166 SEND_STRING(EXAMPLESTRING2);
167 reset_tap_dance (state); 167 reset_tap_dance (state);
168 } 168 }
169} 169}
170void tdexample3(qk_tap_dance_state_t *state, void *user_data) { 170void tdexample3(tap_dance_state_t *state, void *user_data) {
171 if (state->count >= 2) { 171 if (state->count >= 2) {
172 SEND_STRING(EXAMPLESTRING3); 172 SEND_STRING(EXAMPLESTRING3);
173 reset_tap_dance (state); 173 reset_tap_dance (state);
174 } 174 }
175} 175}
176void tdexample4(qk_tap_dance_state_t *state, void *user_data) { 176void tdexample4(tap_dance_state_t *state, void *user_data) {
177 if (state->count >= 2) { 177 if (state->count >= 2) {
178 SEND_STRING(EXAMPLESTRING4); 178 SEND_STRING(EXAMPLESTRING4);
179 reset_tap_dance (state); 179 reset_tap_dance (state);
180 } 180 }
181} 181}
182 182
183qk_tap_dance_action_t tap_dance_actions[] = { 183tap_dance_action_t tap_dance_actions[] = {
184 [TD_EXAMPLE1] = ACTION_TAP_DANCE_FN(tdexample1), 184 [TD_EXAMPLE1] = ACTION_TAP_DANCE_FN(tdexample1),
185 [TD_EXAMPLE2] = ACTION_TAP_DANCE_FN(tdexample2), 185 [TD_EXAMPLE2] = ACTION_TAP_DANCE_FN(tdexample2),
186 [TD_EXAMPLE3] = ACTION_TAP_DANCE_FN(tdexample3), 186 [TD_EXAMPLE3] = ACTION_TAP_DANCE_FN(tdexample3),
diff --git a/keyboards/40percentclub/gherkin/keymaps/mjt/keymap.c b/keyboards/40percentclub/gherkin/keymaps/mjt/keymap.c
index f17cc50a7b..312fbfaf57 100644
--- a/keyboards/40percentclub/gherkin/keymaps/mjt/keymap.c
+++ b/keyboards/40percentclub/gherkin/keymaps/mjt/keymap.c
@@ -203,7 +203,7 @@ void matrix_scan_user(void) {
203} 203}
204 204
205//Tap Dance Definitions 205//Tap Dance Definitions
206qk_tap_dance_action_t tap_dance_actions[] = { 206tap_dance_action_t tap_dance_actions[] = {
207 //Tap once for Esc, twice for Caps Lock 207 //Tap once for Esc, twice for Caps Lock
208 [TD_Z_LCTL] = ACTION_TAP_DANCE_DOUBLE(KC_Z, KC_LCTL), 208 [TD_Z_LCTL] = ACTION_TAP_DANCE_DOUBLE(KC_Z, KC_LCTL),
209 [TD_X_LGUI] = ACTION_TAP_DANCE_DOUBLE(KC_X, KC_LGUI), 209 [TD_X_LGUI] = ACTION_TAP_DANCE_DOUBLE(KC_X, KC_LGUI),
diff --git a/keyboards/40percentclub/half_n_half/keymaps/Boy_314/keymap.c b/keyboards/40percentclub/half_n_half/keymaps/Boy_314/keymap.c
index e874cc3fea..128802ca59 100644
--- a/keyboards/40percentclub/half_n_half/keymaps/Boy_314/keymap.c
+++ b/keyboards/40percentclub/half_n_half/keymaps/Boy_314/keymap.c
@@ -108,7 +108,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
108 ) 108 )
109}; 109};
110 110
111void tap_dance_choose_layer (qk_tap_dance_state_t *state, void *user_data) { 111void tap_dance_choose_layer (tap_dance_state_t *state, void *user_data) {
112 switch (state->count) { 112 switch (state->count) {
113 case 1: 113 case 1:
114 layer_on(_LOWER); 114 layer_on(_LOWER);
@@ -119,7 +119,7 @@ void tap_dance_choose_layer (qk_tap_dance_state_t *state, void *user_data) {
119 } 119 }
120} 120}
121 121
122void tap_dance_choose_layer_reset (qk_tap_dance_state_t *state, void *user_data) { 122void tap_dance_choose_layer_reset (tap_dance_state_t *state, void *user_data) {
123 switch (state->count) { 123 switch (state->count) {
124 case 1: 124 case 1:
125 layer_off(_LOWER); 125 layer_off(_LOWER);
@@ -138,7 +138,7 @@ void tap_dance_choose_layer_reset (qk_tap_dance_state_t *state, void *user_data)
138 } 138 }
139} 139}
140 140
141qk_tap_dance_action_t tap_dance_actions[] = { 141tap_dance_action_t tap_dance_actions[] = {
142 [TD_SWAP_LAYERS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_dance_choose_layer, tap_dance_choose_layer_reset) 142 [TD_SWAP_LAYERS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_dance_choose_layer, tap_dance_choose_layer_reset)
143}; 143};
144 144
diff --git a/keyboards/40percentclub/sixpack/keymaps/fkeys/keymap.c b/keyboards/40percentclub/sixpack/keymaps/fkeys/keymap.c
index 8ca5a5a27b..4164620b5c 100644
--- a/keyboards/40percentclub/sixpack/keymaps/fkeys/keymap.c
+++ b/keyboards/40percentclub/sixpack/keymaps/fkeys/keymap.c
@@ -26,7 +26,7 @@ enum {
26}; 26};
27 27
28// Tap Dance definitions 28// Tap Dance definitions
29qk_tap_dance_action_t tap_dance_actions[] = { 29tap_dance_action_t tap_dance_actions[] = {
30 // Tap once for F13 to F18, twice for F19 to F24 30 // Tap once for F13 to F18, twice for F19 to F24
31 [F13F19] = ACTION_TAP_DANCE_DOUBLE(KC_F13, KC_F19), [F14F20] = ACTION_TAP_DANCE_DOUBLE(KC_F14, KC_F20), [F15F21] = ACTION_TAP_DANCE_DOUBLE(KC_F15, KC_F21), 31 [F13F19] = ACTION_TAP_DANCE_DOUBLE(KC_F13, KC_F19), [F14F20] = ACTION_TAP_DANCE_DOUBLE(KC_F14, KC_F20), [F15F21] = ACTION_TAP_DANCE_DOUBLE(KC_F15, KC_F21),
32 [F16F22] = ACTION_TAP_DANCE_DOUBLE(KC_F16, KC_F22), [F17F23] = ACTION_TAP_DANCE_DOUBLE(KC_F17, KC_F23), [F18F24] = ACTION_TAP_DANCE_DOUBLE(KC_F18, KC_F24) 32 [F16F22] = ACTION_TAP_DANCE_DOUBLE(KC_F16, KC_F22), [F17F23] = ACTION_TAP_DANCE_DOUBLE(KC_F17, KC_F23), [F18F24] = ACTION_TAP_DANCE_DOUBLE(KC_F18, KC_F24)
diff --git a/keyboards/9key/keymaps/tap_dance/keymap.c b/keyboards/9key/keymaps/tap_dance/keymap.c
index dc9b49f9af..d8b2945dc5 100644
--- a/keyboards/9key/keymaps/tap_dance/keymap.c
+++ b/keyboards/9key/keymaps/tap_dance/keymap.c
@@ -45,7 +45,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
45 45
46}; 46};
47 47
48qk_tap_dance_action_t tap_dance_actions[] = { 48tap_dance_action_t tap_dance_actions[] = {
49 [ENT_5] = ACTION_TAP_DANCE_DOUBLE(KC_5, KC_ENT), 49 [ENT_5] = ACTION_TAP_DANCE_DOUBLE(KC_5, KC_ENT),
50 [ZERO_7] = ACTION_TAP_DANCE_DOUBLE(KC_7, KC_0) 50 [ZERO_7] = ACTION_TAP_DANCE_DOUBLE(KC_7, KC_0)
51}; 51};
diff --git a/keyboards/adelheid/keymaps/floookay/keymap.c b/keyboards/adelheid/keymaps/floookay/keymap.c
index 607ee58bb6..3abe75e023 100644
--- a/keyboards/adelheid/keymaps/floookay/keymap.c
+++ b/keyboards/adelheid/keymaps/floookay/keymap.c
@@ -64,7 +64,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
64 64
65 65
66// Tap Dance Definitions 66// Tap Dance Definitions
67qk_tap_dance_action_t tap_dance_actions[] = { 67tap_dance_action_t tap_dance_actions[] = {
68 // Tap once for first parameter, twice for second 68 // Tap once for first parameter, twice for second
69 [_TD_CTGU] = ACTION_TAP_DANCE_DOUBLE(KC_LCTL, KC_LGUI), 69 [_TD_CTGU] = ACTION_TAP_DANCE_DOUBLE(KC_LCTL, KC_LGUI),
70 [_TD_PGUP] = ACTION_TAP_DANCE_DOUBLE(KC_PGUP, LCTL(KC_PGUP)), 70 [_TD_PGUP] = ACTION_TAP_DANCE_DOUBLE(KC_PGUP, LCTL(KC_PGUP)),
diff --git a/keyboards/arisu/keymaps/fate/keymap.c b/keyboards/arisu/keymaps/fate/keymap.c
index 55de2dc86f..9db8fcdbd1 100644
--- a/keyboards/arisu/keymaps/fate/keymap.c
+++ b/keyboards/arisu/keymaps/fate/keymap.c
@@ -59,7 +59,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
59}; 59};
60 60
61// Tap Dance Definitions 61// Tap Dance Definitions
62qk_tap_dance_action_t tap_dance_actions[] = { 62tap_dance_action_t tap_dance_actions[] = {
63 // Tap once for L-Alt, twice for L-GUI 63 // Tap once for L-Alt, twice for L-GUI
64 [TD_LALT_LGUI] = ACTION_TAP_DANCE_DOUBLE(KC_LALT, KC_LGUI), 64 [TD_LALT_LGUI] = ACTION_TAP_DANCE_DOUBLE(KC_LALT, KC_LGUI),
65 // Tap once for R-Alt, twice for R-GUI 65 // Tap once for R-Alt, twice for R-GUI
diff --git a/keyboards/atreus62/keymaps/194h/keymap.c b/keyboards/atreus62/keymaps/194h/keymap.c
index 31d286bfff..557b43cd8c 100644
--- a/keyboards/atreus62/keymaps/194h/keymap.c
+++ b/keyboards/atreus62/keymaps/194h/keymap.c
@@ -84,7 +84,7 @@ enum {
84}; 84};
85 85
86//Tap Dance Definitions 86//Tap Dance Definitions
87qk_tap_dance_action_t tap_dance_actions[] = { 87tap_dance_action_t tap_dance_actions[] = {
88 //Tap once for semicolon, twice for ø 88 //Tap once for semicolon, twice for ø
89 [SCLN_OE] = ACTION_TAP_DANCE_DOUBLE(NO_SCLN, NO_OE), 89 [SCLN_OE] = ACTION_TAP_DANCE_DOUBLE(NO_SCLN, NO_OE),
90 //Tap once for single quote, twice for æ 90 //Tap once for single quote, twice for æ
diff --git a/keyboards/b_sides/rev41lp/keymaps/namnlos/keymap.c b/keyboards/b_sides/rev41lp/keymaps/namnlos/keymap.c
index f942cd3484..0642cdc333 100644
--- a/keyboards/b_sides/rev41lp/keymaps/namnlos/keymap.c
+++ b/keyboards/b_sides/rev41lp/keymaps/namnlos/keymap.c
@@ -101,7 +101,7 @@ enum dances {
101 TD_DASH_USCR, 101 TD_DASH_USCR,
102}; 102};
103 103
104qk_tap_dance_action_t tap_dance_actions[] = { 104tap_dance_action_t tap_dance_actions[] = {
105 // Tap once for Shift, twice for Caps Lock 105 // Tap once for Shift, twice for Caps Lock
106 [TD_SHFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), 106 [TD_SHFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
107 [TD_COM_SCL] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, SE_SCLN), 107 [TD_COM_SCL] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, SE_SCLN),
diff --git a/keyboards/basekeys/slice/rev1/keymaps/2moons/keymap.c b/keyboards/basekeys/slice/rev1/keymaps/2moons/keymap.c
index ea7c329bd2..7d84ce3ae0 100644
--- a/keyboards/basekeys/slice/rev1/keymaps/2moons/keymap.c
+++ b/keyboards/basekeys/slice/rev1/keymaps/2moons/keymap.c
@@ -45,7 +45,7 @@ enum tapdances{
45 TD_ESQW, 45 TD_ESQW,
46}; 46};
47 47
48qk_tap_dance_action_t tap_dance_actions[] = { 48tap_dance_action_t tap_dance_actions[] = {
49 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK), 49 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK),
50 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY), 50 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY),
51}; 51};
diff --git a/keyboards/basekeys/slice/rev1_rgb/keymaps/2moons_rgb/keymap.c b/keyboards/basekeys/slice/rev1_rgb/keymaps/2moons_rgb/keymap.c
index 39ba3bb9c6..220b319ff6 100644
--- a/keyboards/basekeys/slice/rev1_rgb/keymaps/2moons_rgb/keymap.c
+++ b/keyboards/basekeys/slice/rev1_rgb/keymaps/2moons_rgb/keymap.c
@@ -38,7 +38,7 @@ enum tapdances{
38 TD_ESQW, 38 TD_ESQW,
39}; 39};
40 40
41qk_tap_dance_action_t tap_dance_actions[] = { 41tap_dance_action_t tap_dance_actions[] = {
42 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK), 42 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK),
43 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY), 43 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY),
44}; 44};
diff --git a/keyboards/bpiphany/pegasushoof/keymaps/citadel/keymap.c b/keyboards/bpiphany/pegasushoof/keymaps/citadel/keymap.c
index 552dbb5a11..bcce86973c 100644
--- a/keyboards/bpiphany/pegasushoof/keymaps/citadel/keymap.c
+++ b/keyboards/bpiphany/pegasushoof/keymaps/citadel/keymap.c
@@ -112,7 +112,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
112 _______,_______,_______, _______, _______,_______,_______,_______, _______,_______,_______), 112 _______,_______,_______, _______, _______,_______,_______,_______, _______,_______,_______),
113}; 113};
114 114
115qk_tap_dance_action_t tap_dance_actions[] = { 115tap_dance_action_t tap_dance_actions[] = {
116 /* Tap once: nothing. Tap twice: Alt+F4 */ 116 /* Tap once: nothing. Tap twice: Alt+F4 */
117 [AF4] = ACTION_TAP_DANCE_DOUBLE(XXXXXXX,A(F4)), 117 [AF4] = ACTION_TAP_DANCE_DOUBLE(XXXXXXX,A(F4)),
118}; 118};
diff --git a/keyboards/contra/keymaps/erovia/keymap.c b/keyboards/contra/keymaps/erovia/keymap.c
index 7063a85509..ed7c2873c6 100644
--- a/keyboards/contra/keymaps/erovia/keymap.c
+++ b/keyboards/contra/keymaps/erovia/keymap.c
@@ -22,7 +22,7 @@ enum {
22 TD_SPACE_CADET_ENTER = 1 22 TD_SPACE_CADET_ENTER = 1
23}; 23};
24 24
25qk_tap_dance_action_t tap_dance_actions[] = { 25tap_dance_action_t tap_dance_actions[] = {
26 [TD_SPACE_CADET_SHIFT] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_LPRN), 26 [TD_SPACE_CADET_SHIFT] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_LPRN),
27 [TD_SPACE_CADET_ENTER] = ACTION_TAP_DANCE_DOUBLE(KC_ENT, KC_RPRN) 27 [TD_SPACE_CADET_ENTER] = ACTION_TAP_DANCE_DOUBLE(KC_ENT, KC_RPRN)
28}; 28};
diff --git a/keyboards/contra/keymaps/ryanm101/keymap.c b/keyboards/contra/keymaps/ryanm101/keymap.c
index 27c12bfa44..ff33043632 100644
--- a/keyboards/contra/keymaps/ryanm101/keymap.c
+++ b/keyboards/contra/keymaps/ryanm101/keymap.c
@@ -141,7 +141,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
141}; 141};
142 142
143// Parantheses 143// Parantheses
144void paranthesis_dance (qk_tap_dance_state_t *state, void *user_data) { 144void paranthesis_dance (tap_dance_state_t *state, void *user_data) {
145 if (state->count == 1) { 145 if (state->count == 1) {
146 SEND_STRING("()"); register_code(KC_LEFT); unregister_code(KC_LEFT); 146 SEND_STRING("()"); register_code(KC_LEFT); unregister_code(KC_LEFT);
147 } else if (state->count == 2) { 147 } else if (state->count == 2) {
@@ -151,7 +151,7 @@ void paranthesis_dance (qk_tap_dance_state_t *state, void *user_data) {
151 } 151 }
152} 152}
153 153
154void curly_dance (qk_tap_dance_state_t *state, void *user_data) { 154void curly_dance (tap_dance_state_t *state, void *user_data) {
155 if (state->count == 1) { 155 if (state->count == 1) {
156 SEND_STRING("{}"); register_code(KC_LEFT); unregister_code(KC_LEFT); 156 SEND_STRING("{}"); register_code(KC_LEFT); unregister_code(KC_LEFT);
157 } else if (state->count == 2) { 157 } else if (state->count == 2) {
@@ -161,7 +161,7 @@ void curly_dance (qk_tap_dance_state_t *state, void *user_data) {
161 } 161 }
162} 162}
163 163
164void square_dance (qk_tap_dance_state_t *state, void *user_data) { 164void square_dance (tap_dance_state_t *state, void *user_data) {
165 if (state->count == 1) { 165 if (state->count == 1) {
166 SEND_STRING("[]"); register_code(KC_LEFT); unregister_code(KC_LEFT); 166 SEND_STRING("[]"); register_code(KC_LEFT); unregister_code(KC_LEFT);
167 } else if (state->count == 2) { 167 } else if (state->count == 2) {
@@ -171,7 +171,7 @@ void square_dance (qk_tap_dance_state_t *state, void *user_data) {
171 } 171 }
172} 172}
173 173
174void angular_dance (qk_tap_dance_state_t *state, void *user_data) { 174void angular_dance (tap_dance_state_t *state, void *user_data) {
175 if (state->count == 1) { 175 if (state->count == 1) {
176 SEND_STRING("<>"); register_code(KC_LEFT); unregister_code(KC_LEFT); 176 SEND_STRING("<>"); register_code(KC_LEFT); unregister_code(KC_LEFT);
177 } else if (state->count == 2) { 177 } else if (state->count == 2) {
@@ -181,7 +181,7 @@ void angular_dance (qk_tap_dance_state_t *state, void *user_data) {
181 } 181 }
182} 182}
183 183
184void tmux_dance (qk_tap_dance_state_t *state, void *user_data) { 184void tmux_dance (tap_dance_state_t *state, void *user_data) {
185 if (state->count == 1) { 185 if (state->count == 1) {
186 SEND_STRING("tmux"); register_code(KC_ENT); unregister_code(KC_ENT); 186 SEND_STRING("tmux"); register_code(KC_ENT); unregister_code(KC_ENT);
187 } else if (state->count == 2) { 187 } else if (state->count == 2) {
@@ -194,7 +194,7 @@ void tmux_dance (qk_tap_dance_state_t *state, void *user_data) {
194 } 194 }
195} 195}
196 196
197void cmd_dance (qk_tap_dance_state_t *state, void *user_data) { 197void cmd_dance (tap_dance_state_t *state, void *user_data) {
198 if (state->count == 1) { 198 if (state->count == 1) {
199 register_mods(MOD_BIT(KC_LCTL)); 199 register_mods(MOD_BIT(KC_LCTL));
200 register_mods(MOD_BIT(KC_LALT)); 200 register_mods(MOD_BIT(KC_LALT));
@@ -219,7 +219,7 @@ void cmd_dance (qk_tap_dance_state_t *state, void *user_data) {
219 } 219 }
220} 220}
221 221
222void cmd_sft_slash_pipe_down (qk_tap_dance_state_t *state, void *user_data) { 222void cmd_sft_slash_pipe_down (tap_dance_state_t *state, void *user_data) {
223 if (state->count == 1) { 223 if (state->count == 1) {
224 if (state->interrupted || state->pressed==0) { 224 if (state->interrupted || state->pressed==0) {
225 register_code (KC_NONUS_BACKSLASH); 225 register_code (KC_NONUS_BACKSLASH);
@@ -232,7 +232,7 @@ void cmd_sft_slash_pipe_down (qk_tap_dance_state_t *state, void *user_data) {
232 } 232 }
233} 233}
234 234
235void cmd_sft_slash_pipe_up (qk_tap_dance_state_t *state, void *user_data) { 235void cmd_sft_slash_pipe_up (tap_dance_state_t *state, void *user_data) {
236 if (state->count == 1) { 236 if (state->count == 1) {
237 if (keyboard_report->mods & MOD_BIT(KC_LSFT)) { 237 if (keyboard_report->mods & MOD_BIT(KC_LSFT)) {
238 unregister_code (KC_LSFT); 238 unregister_code (KC_LSFT);
@@ -246,7 +246,7 @@ void cmd_sft_slash_pipe_up (qk_tap_dance_state_t *state, void *user_data) {
246} 246}
247 247
248 //All tap dance functions would go here. Only showing this one. 248 //All tap dance functions would go here. Only showing this one.
249 qk_tap_dance_action_t tap_dance_actions[] = { 249 tap_dance_action_t tap_dance_actions[] = {
250 [CLN] = ACTION_TAP_DANCE_DOUBLE (KC_SCLN, S(KC_SCLN )) 250 [CLN] = ACTION_TAP_DANCE_DOUBLE (KC_SCLN, S(KC_SCLN ))
251 ,[QUOT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOT, S(KC_2)) 251 ,[QUOT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOT, S(KC_2))
252 ,[CAD_CAE] = ACTION_TAP_DANCE_FN_ADVANCED( NULL, NULL, cmd_dance ) 252 ,[CAD_CAE] = ACTION_TAP_DANCE_FN_ADVANCED( NULL, NULL, cmd_dance )
diff --git a/keyboards/converter/usb_usb/keymaps/chriskopher/tap_dance.c b/keyboards/converter/usb_usb/keymaps/chriskopher/tap_dance.c
index 8600d83996..51a677a588 100644
--- a/keyboards/converter/usb_usb/keymaps/chriskopher/tap_dance.c
+++ b/keyboards/converter/usb_usb/keymaps/chriskopher/tap_dance.c
@@ -31,7 +31,7 @@ static int espc_r_tap_state = 0;
31static int scln_cln_tap_state = 0; 31static int scln_cln_tap_state = 0;
32 32
33// Watch the state of the tap dance 33// Watch the state of the tap dance
34int cur_dance(qk_tap_dance_state_t *state) { 34int cur_dance(tap_dance_state_t *state) {
35 if (state->pressed) { 35 if (state->pressed) {
36 return SINGLE_HOLD; 36 return SINGLE_HOLD;
37 } 37 }
@@ -49,7 +49,7 @@ int cur_dance(qk_tap_dance_state_t *state) {
49} 49}
50 50
51// Extended Space Cadet Shift - Left ================================== 51// Extended Space Cadet Shift - Left ==================================
52void espc_l_finished(qk_tap_dance_state_t *state, void *user_data) { 52void espc_l_finished(tap_dance_state_t *state, void *user_data) {
53 espc_l_tap_state = cur_dance(state); 53 espc_l_tap_state = cur_dance(state);
54 switch (espc_l_tap_state) { 54 switch (espc_l_tap_state) {
55 case SINGLE_TAP: // ( 55 case SINGLE_TAP: // (
@@ -69,7 +69,7 @@ void espc_l_finished(qk_tap_dance_state_t *state, void *user_data) {
69 } 69 }
70} 70}
71 71
72void espc_l_reset(qk_tap_dance_state_t *state, void *user_data) { 72void espc_l_reset(tap_dance_state_t *state, void *user_data) {
73 switch (espc_l_tap_state) { 73 switch (espc_l_tap_state) {
74 case SINGLE_TAP: // ( 74 case SINGLE_TAP: // (
75 unregister_code16(LSFT(KC_9)); 75 unregister_code16(LSFT(KC_9));
@@ -89,7 +89,7 @@ void espc_l_reset(qk_tap_dance_state_t *state, void *user_data) {
89// ====================================================================// 89// ====================================================================//
90 90
91// Extended Space Cadet Shift - Right ================================== 91// Extended Space Cadet Shift - Right ==================================
92void espc_r_finished(qk_tap_dance_state_t *state, void *user_data) { 92void espc_r_finished(tap_dance_state_t *state, void *user_data) {
93 espc_r_tap_state = cur_dance(state); 93 espc_r_tap_state = cur_dance(state);
94 switch (espc_r_tap_state) { 94 switch (espc_r_tap_state) {
95 case SINGLE_TAP: // ) 95 case SINGLE_TAP: // )
@@ -109,7 +109,7 @@ void espc_r_finished(qk_tap_dance_state_t *state, void *user_data) {
109 } 109 }
110} 110}
111 111
112void espc_r_reset(qk_tap_dance_state_t *state, void *user_data) { 112void espc_r_reset(tap_dance_state_t *state, void *user_data) {
113 switch (espc_r_tap_state) { 113 switch (espc_r_tap_state) {
114 case SINGLE_TAP: // ) 114 case SINGLE_TAP: // )
115 unregister_code16(LSFT(KC_0)); 115 unregister_code16(LSFT(KC_0));
@@ -129,7 +129,7 @@ void espc_r_reset(qk_tap_dance_state_t *state, void *user_data) {
129// ====================================================================// 129// ====================================================================//
130 130
131// Semicolon - Colon ================================================== 131// Semicolon - Colon ==================================================
132void scln_cln_finished(qk_tap_dance_state_t *state, void *user_data) { 132void scln_cln_finished(tap_dance_state_t *state, void *user_data) {
133 scln_cln_tap_state = cur_dance(state); 133 scln_cln_tap_state = cur_dance(state);
134 switch (scln_cln_tap_state) { 134 switch (scln_cln_tap_state) {
135 case SINGLE_TAP: // ; 135 case SINGLE_TAP: // ;
@@ -141,7 +141,7 @@ void scln_cln_finished(qk_tap_dance_state_t *state, void *user_data) {
141 } 141 }
142} 142}
143 143
144void scln_cln_reset(qk_tap_dance_state_t *state, void *user_data) { 144void scln_cln_reset(tap_dance_state_t *state, void *user_data) {
145 switch (scln_cln_tap_state) { 145 switch (scln_cln_tap_state) {
146 case SINGLE_TAP: // ; 146 case SINGLE_TAP: // ;
147 unregister_code16(KC_SCLN); 147 unregister_code16(KC_SCLN);
@@ -154,7 +154,7 @@ void scln_cln_reset(qk_tap_dance_state_t *state, void *user_data) {
154// ====================================================================// 154// ====================================================================//
155 155
156// Associate tap dance with defined functionality 156// Associate tap dance with defined functionality
157qk_tap_dance_action_t tap_dance_actions[] = { 157tap_dance_action_t tap_dance_actions[] = {
158 // Extended space cadet shift left: Hold - Shift, One - (, Two - {, Three - [ 158 // Extended space cadet shift left: Hold - Shift, One - (, Two - {, Three - [
159 [ESPC_L] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, espc_l_finished, espc_l_reset), 159 [ESPC_L] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, espc_l_finished, espc_l_reset),
160 // Extended space cadet shift right: Hold - Shift, One - ), Two - }, Three - ] 160 // Extended space cadet shift right: Hold - Shift, One - ), Two - }, Three - ]
diff --git a/keyboards/crkbd/keymaps/colemad/tap_dances.c b/keyboards/crkbd/keymaps/colemad/tap_dances.c
index fc47cfd8d1..c0d83b94d0 100644
--- a/keyboards/crkbd/keymaps/colemad/tap_dances.c
+++ b/keyboards/crkbd/keymaps/colemad/tap_dances.c
@@ -2,6 +2,6 @@
2// SPDX-License-Identifier: GPL-2.0-or-later 2// SPDX-License-Identifier: GPL-2.0-or-later
3#include "tap_dances.h" 3#include "tap_dances.h"
4 4
5qk_tap_dance_action_t tap_dance_actions[] = { 5tap_dance_action_t tap_dance_actions[] = {
6 [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS) 6 [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS)
7}; 7};
diff --git a/keyboards/crkbd/keymaps/nimishgautam/keymap.c b/keyboards/crkbd/keymaps/nimishgautam/keymap.c
index e8a476cfc5..0c0a3e3544 100644
--- a/keyboards/crkbd/keymaps/nimishgautam/keymap.c
+++ b/keyboards/crkbd/keymaps/nimishgautam/keymap.c
@@ -375,7 +375,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
375 return true; 375 return true;
376} 376}
377 377
378void dance_left_finished (qk_tap_dance_state_t *state, void *user_data) { 378void dance_left_finished (tap_dance_state_t *state, void *user_data) {
379 if (state->count == 1) { //1 tap, move to line left 379 if (state->count == 1) { //1 tap, move to line left
380 keymap_config.raw = eeconfig_read_keymap(); 380 keymap_config.raw = eeconfig_read_keymap();
381 if(keymap_config.swap_lctl_lgui){ //Linux 381 if(keymap_config.swap_lctl_lgui){ //Linux
@@ -388,7 +388,7 @@ void dance_left_finished (qk_tap_dance_state_t *state, void *user_data) {
388 } 388 }
389} 389}
390 390
391void dance_right_finished (qk_tap_dance_state_t *state, void *user_data) { 391void dance_right_finished (tap_dance_state_t *state, void *user_data) {
392 if (state->count == 1) { // 1 tap, move line right 392 if (state->count == 1) { // 1 tap, move line right
393 keymap_config.raw = eeconfig_read_keymap(); 393 keymap_config.raw = eeconfig_read_keymap();
394 if(keymap_config.swap_lctl_lgui){ //Linux 394 if(keymap_config.swap_lctl_lgui){ //Linux
@@ -402,7 +402,7 @@ void dance_right_finished (qk_tap_dance_state_t *state, void *user_data) {
402} 402}
403 403
404//Tap Dance Definitions 404//Tap Dance Definitions
405qk_tap_dance_action_t tap_dance_actions[] = { 405tap_dance_action_t tap_dance_actions[] = {
406 [TD_MOVE_BEGIN_LINE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_left_finished, NULL), 406 [TD_MOVE_BEGIN_LINE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_left_finished, NULL),
407 [TD_MOVE_END_LINE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_right_finished, NULL), 407 [TD_MOVE_END_LINE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_right_finished, NULL),
408 [TD_PERIOD_COMMA] = ACTION_TAP_DANCE_DOUBLE(KC_DOT, KC_COMMA), 408 [TD_PERIOD_COMMA] = ACTION_TAP_DANCE_DOUBLE(KC_DOT, KC_COMMA),
diff --git a/keyboards/crkbd/keymaps/thunderbird2086/tap_dances.c b/keyboards/crkbd/keymaps/thunderbird2086/tap_dances.c
index 1cf6fdf092..dbfe3c5b3d 100644
--- a/keyboards/crkbd/keymaps/thunderbird2086/tap_dances.c
+++ b/keyboards/crkbd/keymaps/thunderbird2086/tap_dances.c
@@ -4,7 +4,7 @@
4#include QMK_KEYBOARD_H 4#include QMK_KEYBOARD_H
5#include "tap_dances.h" 5#include "tap_dances.h"
6 6
7qk_tap_dance_action_t tap_dance_actions[] = { 7tap_dance_action_t tap_dance_actions[] = {
8 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS), 8 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS),
9 [TD_TAB_CTRLTAB] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, LCTL(KC_TAB)), 9 [TD_TAB_CTRLTAB] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, LCTL(KC_TAB)),
10 [TD_GRV_CTRLGRV] = ACTION_TAP_DANCE_DOUBLE(KC_GRV, LGUI(KC_GRV)), 10 [TD_GRV_CTRLGRV] = ACTION_TAP_DANCE_DOUBLE(KC_GRV, LGUI(KC_GRV)),
diff --git a/keyboards/dz60/keymaps/LEdiodes/keymap.c b/keyboards/dz60/keymaps/LEdiodes/keymap.c
index cec6e859f5..79f0133d5d 100644
--- a/keyboards/dz60/keymaps/LEdiodes/keymap.c
+++ b/keyboards/dz60/keymaps/LEdiodes/keymap.c
@@ -101,7 +101,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
101}; 101};
102 102
103//Tap Dance Definitions 103//Tap Dance Definitions
104qk_tap_dance_action_t tap_dance_actions[] = { 104tap_dance_action_t tap_dance_actions[] = {
105 105
106 //Tap once for space, tap twice for enter 106 //Tap once for space, tap twice for enter
107 [TD_SPC_ENT] = ACTION_TAP_DANCE_DOUBLE(KC_SPC, KC_ENT), 107 [TD_SPC_ENT] = ACTION_TAP_DANCE_DOUBLE(KC_SPC, KC_ENT),
diff --git a/keyboards/dz60/keymaps/jdelkins/keymap.c b/keyboards/dz60/keymaps/jdelkins/keymap.c
index 786d3afa3e..5555a0113f 100644
--- a/keyboards/dz60/keymaps/jdelkins/keymap.c
+++ b/keyboards/dz60/keymaps/jdelkins/keymap.c
@@ -35,7 +35,7 @@ enum {
35 35
36int ctl_state = 0; 36int ctl_state = 0;
37 37
38void ctl_finished(qk_tap_dance_state_t *state, void *user_data) { 38void ctl_finished(tap_dance_state_t *state, void *user_data) {
39 ctl_state = cur_dance(state); 39 ctl_state = cur_dance(state);
40 switch (ctl_state) { 40 switch (ctl_state) {
41 case SINGLE_TAP: leader_start(); break; 41 case SINGLE_TAP: leader_start(); break;
@@ -47,7 +47,7 @@ void ctl_finished(qk_tap_dance_state_t *state, void *user_data) {
47 } 47 }
48} 48}
49 49
50void ctl_reset(qk_tap_dance_state_t *state, void *user_data) { 50void ctl_reset(tap_dance_state_t *state, void *user_data) {
51 switch (ctl_state) { 51 switch (ctl_state) {
52 case SINGLE_HOLD: unregister_code(KC_LCTL); break; 52 case SINGLE_HOLD: unregister_code(KC_LCTL); break;
53 case DOUBLE_HOLD: 53 case DOUBLE_HOLD:
@@ -56,7 +56,7 @@ void ctl_reset(qk_tap_dance_state_t *state, void *user_data) {
56 ctl_state = 0; 56 ctl_state = 0;
57} 57}
58 58
59void g_finished(qk_tap_dance_state_t *state, void *user_data) { 59void g_finished(tap_dance_state_t *state, void *user_data) {
60 switch (cur_dance(state)) { 60 switch (cur_dance(state)) {
61 case SINGLE_TAP: 61 case SINGLE_TAP:
62 tap_code16(C(KC_END)); 62 tap_code16(C(KC_END));
@@ -69,7 +69,7 @@ void g_finished(qk_tap_dance_state_t *state, void *user_data) {
69 69
70int kp_state = 0; 70int kp_state = 0;
71 71
72void kp_finished(qk_tap_dance_state_t *state, void *user_data) { 72void kp_finished(tap_dance_state_t *state, void *user_data) {
73 kp_state = hold_cur_dance(state); 73 kp_state = hold_cur_dance(state);
74 switch (kp_state) { 74 switch (kp_state) {
75 case SINGLE_TAP: 75 case SINGLE_TAP:
@@ -81,7 +81,7 @@ void kp_finished(qk_tap_dance_state_t *state, void *user_data) {
81 } 81 }
82} 82}
83 83
84void kp_reset(qk_tap_dance_state_t *state, void *user_data) { 84void kp_reset(tap_dance_state_t *state, void *user_data) {
85 switch (kp_state) { 85 switch (kp_state) {
86 case SINGLE_HOLD: 86 case SINGLE_HOLD:
87 case DOUBLE_HOLD: 87 case DOUBLE_HOLD:
@@ -97,7 +97,7 @@ enum {
97 TD_KP, 97 TD_KP,
98}; 98};
99 99
100qk_tap_dance_action_t tap_dance_actions[] = { 100tap_dance_action_t tap_dance_actions[] = {
101 [TD_LDCTL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctl_finished, ctl_reset), 101 [TD_LDCTL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctl_finished, ctl_reset),
102 [TD_G] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, g_finished, NULL), 102 [TD_G] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, g_finished, NULL),
103 [TD_KP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, kp_finished, kp_reset), 103 [TD_KP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, kp_finished, kp_reset),
diff --git a/keyboards/emptystring/nqg/keymaps/default/keymap.c b/keyboards/emptystring/nqg/keymaps/default/keymap.c
index eec249187b..9b87225f19 100644
--- a/keyboards/emptystring/nqg/keymaps/default/keymap.c
+++ b/keyboards/emptystring/nqg/keymaps/default/keymap.c
@@ -29,7 +29,7 @@ enum tapdances{
29#define KC_ESLO LT(_LOWER, KC_ESC) 29#define KC_ESLO LT(_LOWER, KC_ESC)
30 30
31 31
32qk_tap_dance_action_t tap_dance_actions[] = { 32tap_dance_action_t tap_dance_actions[] = {
33 [TD_SCCL] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_QUOT), 33 [TD_SCCL] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_QUOT),
34 [TD_ENSL] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, KC_ENT), 34 [TD_ENSL] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, KC_ENT),
35 [TD_N0BS] = ACTION_TAP_DANCE_DOUBLE(KC_0, KC_BSLS), 35 [TD_N0BS] = ACTION_TAP_DANCE_DOUBLE(KC_0, KC_BSLS),
diff --git a/keyboards/ergodox_ez/keymaps/bepo_tm_style/keymap.c b/keyboards/ergodox_ez/keymaps/bepo_tm_style/keymap.c
index 6949261980..45a101ec81 100755
--- a/keyboards/ergodox_ez/keymaps/bepo_tm_style/keymap.c
+++ b/keyboards/ergodox_ez/keymaps/bepo_tm_style/keymap.c
@@ -196,7 +196,7 @@ layer_state_t layer_state_set_user(layer_state_t state);
196// Method called at the end of the tap dance on the TAP_MACRO key. That key is 196// Method called at the end of the tap dance on the TAP_MACRO key. That key is
197// used to start recording a macro (double tap or more), to stop recording (any 197// used to start recording a macro (double tap or more), to stop recording (any
198// number of tap), or to play the recorded macro (1 tap). 198// number of tap), or to play the recorded macro (1 tap).
199void macro_tapdance_fn(qk_tap_dance_state_t *state, void *user_data) { 199void macro_tapdance_fn(tap_dance_state_t *state, void *user_data) {
200 uint16_t keycode; 200 uint16_t keycode;
201 keyrecord_t record; 201 keyrecord_t record;
202 dprintf("macro_tap_dance_fn %d\n", state->count); 202 dprintf("macro_tap_dance_fn %d\n", state->count);
@@ -219,7 +219,7 @@ void macro_tapdance_fn(qk_tap_dance_state_t *state, void *user_data) {
219} 219}
220 220
221// The definition of the tap dance actions: 221// The definition of the tap dance actions:
222qk_tap_dance_action_t tap_dance_actions[] = { 222tap_dance_action_t tap_dance_actions[] = {
223 // This Tap dance plays the macro 1 on TAP and records it on double tap. 223 // This Tap dance plays the macro 1 on TAP and records it on double tap.
224 [TAP_MACRO] = ACTION_TAP_DANCE_FN(macro_tapdance_fn), 224 [TAP_MACRO] = ACTION_TAP_DANCE_FN(macro_tapdance_fn),
225}; 225};
diff --git a/keyboards/ergodox_ez/keymaps/bpruitt-goddard/keymap.c b/keyboards/ergodox_ez/keymaps/bpruitt-goddard/keymap.c
index b2065bca83..87ad7e63e4 100644
--- a/keyboards/ergodox_ez/keymaps/bpruitt-goddard/keymap.c
+++ b/keyboards/ergodox_ez/keymaps/bpruitt-goddard/keymap.c
@@ -104,7 +104,7 @@ layer_state_t layer_state_set_user(layer_state_t state);
104// Method called at the end of the tap dance on the TAP_MACRO key. That key is 104// Method called at the end of the tap dance on the TAP_MACRO key. That key is
105// used to start recording a macro (double tap or more), to stop recording (any 105// used to start recording a macro (double tap or more), to stop recording (any
106// number of tap), or to play the recorded macro (1 tap). 106// number of tap), or to play the recorded macro (1 tap).
107void macro_tapdance_fn(qk_tap_dance_state_t *state, void *user_data) { 107void macro_tapdance_fn(tap_dance_state_t *state, void *user_data) {
108 uint16_t keycode; 108 uint16_t keycode;
109 keyrecord_t record; 109 keyrecord_t record;
110 dprintf("macro_tap_dance_fn %d\n", state->count); 110 dprintf("macro_tap_dance_fn %d\n", state->count);
@@ -127,7 +127,7 @@ void macro_tapdance_fn(qk_tap_dance_state_t *state, void *user_data) {
127} 127}
128 128
129// The definition of the tap dance actions: 129// The definition of the tap dance actions:
130qk_tap_dance_action_t tap_dance_actions[] = { 130tap_dance_action_t tap_dance_actions[] = {
131 // This Tap dance plays the macro 1 on TAP and records it on double tap. 131 // This Tap dance plays the macro 1 on TAP and records it on double tap.
132 [TAP_MACRO] = ACTION_TAP_DANCE_FN(macro_tapdance_fn) 132 [TAP_MACRO] = ACTION_TAP_DANCE_FN(macro_tapdance_fn)
133}; 133};
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/dot_comm.c b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/dot_comm.c
index cbfbcdaf9f..e96c7c275e 100644
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/dot_comm.c
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/dot_comm.c
@@ -4,7 +4,7 @@ static tap dot_comm_state = {
4 .state = 0 4 .state = 0
5}; 5};
6 6
7void dot_comm_finished(qk_tap_dance_state_t *state, void *user_data) { 7void dot_comm_finished(tap_dance_state_t *state, void *user_data) {
8 dot_comm_state.state = current_dance(state); 8 dot_comm_state.state = current_dance(state);
9 switch (dot_comm_state.state) { 9 switch (dot_comm_state.state) {
10 case SINGLE_TAP: 10 case SINGLE_TAP:
@@ -22,7 +22,7 @@ void dot_comm_finished(qk_tap_dance_state_t *state, void *user_data) {
22 } 22 }
23} 23}
24 24
25void dot_comm_reset(qk_tap_dance_state_t *state, void *user_data) { 25void dot_comm_reset(tap_dance_state_t *state, void *user_data) {
26 switch (dot_comm_state.state) { 26 switch (dot_comm_state.state) {
27 case SINGLE_TAP: 27 case SINGLE_TAP:
28 unregister_code(KC_DOT); 28 unregister_code(KC_DOT);
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/h_mouse_gui.c b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/h_mouse_gui.c
index 76dda6eb32..0589128a58 100644
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/h_mouse_gui.c
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/h_mouse_gui.c
@@ -4,7 +4,7 @@ static tap h_mouse_gui_state = {
4 .state = 0 4 .state = 0
5}; 5};
6 6
7void h_mouse_gui_finished(qk_tap_dance_state_t *state, void *user_data) { 7void h_mouse_gui_finished(tap_dance_state_t *state, void *user_data) {
8 h_mouse_gui_state.state = current_dance(state); 8 h_mouse_gui_state.state = current_dance(state);
9 switch (h_mouse_gui_state.state) { 9 switch (h_mouse_gui_state.state) {
10 case SINGLE_TAP: 10 case SINGLE_TAP:
@@ -21,7 +21,7 @@ void h_mouse_gui_finished(qk_tap_dance_state_t *state, void *user_data) {
21 } 21 }
22} 22}
23 23
24void h_mouse_gui_reset(qk_tap_dance_state_t *state, void *user_data) { 24void h_mouse_gui_reset(tap_dance_state_t *state, void *user_data) {
25 switch (h_mouse_gui_state.state) { 25 switch (h_mouse_gui_state.state) {
26 case SINGLE_TAP: 26 case SINGLE_TAP:
27 unregister_code(KC_H); 27 unregister_code(KC_H);
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/j_media_meh.c b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/j_media_meh.c
index daf7be1f6f..a1400236dc 100644
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/j_media_meh.c
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/j_media_meh.c
@@ -4,7 +4,7 @@ static tap j_media_meh_state = {
4 .state = 0 4 .state = 0
5}; 5};
6 6
7void j_media_meh_finished(qk_tap_dance_state_t *state, void *user_data) { 7void j_media_meh_finished(tap_dance_state_t *state, void *user_data) {
8 j_media_meh_state.state = current_dance(state); 8 j_media_meh_state.state = current_dance(state);
9 switch (j_media_meh_state.state) { 9 switch (j_media_meh_state.state) {
10 case SINGLE_TAP: 10 case SINGLE_TAP:
@@ -23,7 +23,7 @@ void j_media_meh_finished(qk_tap_dance_state_t *state, void *user_data) {
23 } 23 }
24} 24}
25 25
26void j_media_meh_reset(qk_tap_dance_state_t *state, void *user_data) { 26void j_media_meh_reset(tap_dance_state_t *state, void *user_data) {
27 switch (j_media_meh_state.state) { 27 switch (j_media_meh_state.state) {
28 case SINGLE_TAP: 28 case SINGLE_TAP:
29 unregister_code(KC_J); 29 unregister_code(KC_J);
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/k_numpad_hyper.c b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/k_numpad_hyper.c
index 609e9f5539..c405e65091 100644
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/k_numpad_hyper.c
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/k_numpad_hyper.c
@@ -4,7 +4,7 @@ static tap k_numpad_hyper_state = {
4 .state = 0 4 .state = 0
5}; 5};
6 6
7void k_numpad_hyper_finished(qk_tap_dance_state_t *state, void *user_data) { 7void k_numpad_hyper_finished(tap_dance_state_t *state, void *user_data) {
8 k_numpad_hyper_state.state = current_dance(state); 8 k_numpad_hyper_state.state = current_dance(state);
9 switch (k_numpad_hyper_state.state) { 9 switch (k_numpad_hyper_state.state) {
10 case SINGLE_TAP: 10 case SINGLE_TAP:
@@ -24,7 +24,7 @@ void k_numpad_hyper_finished(qk_tap_dance_state_t *state, void *user_data) {
24 } 24 }
25} 25}
26 26
27void k_numpad_hyper_reset(qk_tap_dance_state_t *state, void *user_data) { 27void k_numpad_hyper_reset(tap_dance_state_t *state, void *user_data) {
28 switch (k_numpad_hyper_state.state) { 28 switch (k_numpad_hyper_state.state) {
29 case SINGLE_TAP: 29 case SINGLE_TAP:
30 unregister_code(KC_K); 30 unregister_code(KC_K);
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/m_chords_hyper.c b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/m_chords_hyper.c
index e7df3aef14..736074e751 100644
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/m_chords_hyper.c
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/m_chords_hyper.c
@@ -4,7 +4,7 @@ static tap m_chords_hyper_state = {
4 .state = 0 4 .state = 0
5}; 5};
6 6
7void m_chords_hyper_finished(qk_tap_dance_state_t *state, void *user_data) { 7void m_chords_hyper_finished(tap_dance_state_t *state, void *user_data) {
8 m_chords_hyper_state.state = current_dance(state); 8 m_chords_hyper_state.state = current_dance(state);
9 switch (m_chords_hyper_state.state) { 9 switch (m_chords_hyper_state.state) {
10 case SINGLE_TAP: 10 case SINGLE_TAP:
@@ -24,7 +24,7 @@ void m_chords_hyper_finished(qk_tap_dance_state_t *state, void *user_data) {
24 } 24 }
25} 25}
26 26
27void m_chords_hyper_reset(qk_tap_dance_state_t *state, void *user_data) { 27void m_chords_hyper_reset(tap_dance_state_t *state, void *user_data) {
28 switch (m_chords_hyper_state.state) { 28 switch (m_chords_hyper_state.state) {
29 case SINGLE_TAP: 29 case SINGLE_TAP:
30 unregister_code(KC_M); 30 unregister_code(KC_M);
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/none_lead.c b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/none_lead.c
index 3550067993..a553f874cc 100644
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/none_lead.c
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/none_lead.c
@@ -4,7 +4,7 @@ static tap none_lead_state = {
4 .state = 0 4 .state = 0
5}; 5};
6 6
7void none_lead_finished(qk_tap_dance_state_t *state, void *user_data) { 7void none_lead_finished(tap_dance_state_t *state, void *user_data) {
8 none_lead_state.state = current_dance(state); 8 none_lead_state.state = current_dance(state);
9 switch (none_lead_state.state) { 9 switch (none_lead_state.state) {
10 case SINGLE_TAP: 10 case SINGLE_TAP:
@@ -22,7 +22,7 @@ void none_lead_finished(qk_tap_dance_state_t *state, void *user_data) {
22 } 22 }
23} 23}
24 24
25void none_lead_reset(qk_tap_dance_state_t *state, void *user_data) { 25void none_lead_reset(tap_dance_state_t *state, void *user_data) {
26 switch (none_lead_state.state) { 26 switch (none_lead_state.state) {
27 case SINGLE_TAP: 27 case SINGLE_TAP:
28 unregister_code(KC_NO); 28 unregister_code(KC_NO);
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/quot_dquot.c b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/quot_dquot.c
index ac6da9e00e..8b1af61cac 100644
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/quot_dquot.c
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/quot_dquot.c
@@ -4,7 +4,7 @@ static tap quot_dquot_state = {
4 .state = 0 4 .state = 0
5}; 5};
6 6
7void quot_dquot_finished(qk_tap_dance_state_t *state, void *user_data) { 7void quot_dquot_finished(tap_dance_state_t *state, void *user_data) {
8 quot_dquot_state.state = current_dance(state); 8 quot_dquot_state.state = current_dance(state);
9 switch (quot_dquot_state.state) { 9 switch (quot_dquot_state.state) {
10 case SINGLE_TAP: 10 case SINGLE_TAP:
@@ -22,7 +22,7 @@ void quot_dquot_finished(qk_tap_dance_state_t *state, void *user_data) {
22 } 22 }
23} 23}
24 24
25void quot_dquot_reset(qk_tap_dance_state_t *state, void *user_data) { 25void quot_dquot_reset(tap_dance_state_t *state, void *user_data) {
26 switch (quot_dquot_state.state) { 26 switch (quot_dquot_state.state) {
27 case SINGLE_TAP: 27 case SINGLE_TAP:
28 unregister_code(KC_QUOT); 28 unregister_code(KC_QUOT);
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/scln_coln.c b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/scln_coln.c
index 513c932663..8cc3b6dfe1 100644
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/scln_coln.c
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/scln_coln.c
@@ -4,7 +4,7 @@ static tap scln_coln_state = {
4 .state = 0 4 .state = 0
5}; 5};
6 6
7void scln_coln_finished(qk_tap_dance_state_t *state, void *user_data) { 7void scln_coln_finished(tap_dance_state_t *state, void *user_data) {
8 scln_coln_state.state = current_dance(state); 8 scln_coln_state.state = current_dance(state);
9 switch (scln_coln_state.state) { 9 switch (scln_coln_state.state) {
10 case SINGLE_TAP: 10 case SINGLE_TAP:
@@ -23,7 +23,7 @@ void scln_coln_finished(qk_tap_dance_state_t *state, void *user_data) {
23 } 23 }
24} 24}
25 25
26void scln_coln_reset(qk_tap_dance_state_t *state, void *user_data) { 26void scln_coln_reset(tap_dance_state_t *state, void *user_data) {
27 switch (scln_coln_state.state) { 27 switch (scln_coln_state.state) {
28 case SINGLE_TAP: 28 case SINGLE_TAP:
29 unregister_code(KC_SCLN); 29 unregister_code(KC_SCLN);
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/u_arrows_gui.c b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/u_arrows_gui.c
index e57502a790..b9a213ef08 100644
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/u_arrows_gui.c
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/u_arrows_gui.c
@@ -4,7 +4,7 @@ static tap u_arrows_gui_state = {
4 .state = 0 4 .state = 0
5}; 5};
6 6
7void u_arrows_gui_finished(qk_tap_dance_state_t *state, void *user_data) { 7void u_arrows_gui_finished(tap_dance_state_t *state, void *user_data) {
8 u_arrows_gui_state.state = current_dance(state); 8 u_arrows_gui_state.state = current_dance(state);
9 switch (u_arrows_gui_state.state) { 9 switch (u_arrows_gui_state.state) {
10 case SINGLE_TAP: 10 case SINGLE_TAP:
@@ -21,7 +21,7 @@ void u_arrows_gui_finished(qk_tap_dance_state_t *state, void *user_data) {
21 } 21 }
22} 22}
23 23
24void u_arrows_gui_reset(qk_tap_dance_state_t *state, void *user_data) { 24void u_arrows_gui_reset(tap_dance_state_t *state, void *user_data) {
25 switch (u_arrows_gui_state.state) { 25 switch (u_arrows_gui_state.state) {
26 case SINGLE_TAP: 26 case SINGLE_TAP:
27 unregister_code(KC_U); 27 unregister_code(KC_U);
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/w_media_meh.c b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/w_media_meh.c
index c26980526c..5f2bb2a69a 100644
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/w_media_meh.c
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/mod_tap_layer_dances/w_media_meh.c
@@ -4,7 +4,7 @@ static tap w_media_meh_state = {
4 .state = 0 4 .state = 0
5}; 5};
6 6
7void w_media_meh_finished(qk_tap_dance_state_t *state, void *user_data) { 7void w_media_meh_finished(tap_dance_state_t *state, void *user_data) {
8 w_media_meh_state.state = current_dance(state); 8 w_media_meh_state.state = current_dance(state);
9 switch (w_media_meh_state.state) { 9 switch (w_media_meh_state.state) {
10 case SINGLE_TAP: 10 case SINGLE_TAP:
@@ -23,7 +23,7 @@ void w_media_meh_finished(qk_tap_dance_state_t *state, void *user_data) {
23 } 23 }
24} 24}
25 25
26void w_media_meh_reset(qk_tap_dance_state_t *state, void *user_data) { 26void w_media_meh_reset(tap_dance_state_t *state, void *user_data) {
27 switch (w_media_meh_state.state) { 27 switch (w_media_meh_state.state) {
28 case SINGLE_TAP: 28 case SINGLE_TAP:
29 unregister_code(KC_W); 29 unregister_code(KC_W);
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/tap_dance_actions.c b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/tap_dance_actions.c
index 1d5e1cee00..fe13023d45 100644
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/tap_dance_actions.c
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/tap_dance_actions.c
@@ -1,5 +1,5 @@
1// Register the double tap dances: 1// Register the double tap dances:
2qk_tap_dance_action_t tap_dance_actions[] = { 2tap_dance_action_t tap_dance_actions[] = {
3 [EQL_PLUS] = ACTION_TAP_DANCE_DOUBLE(KC_EQL, KC_PLUS), 3 [EQL_PLUS] = ACTION_TAP_DANCE_DOUBLE(KC_EQL, KC_PLUS),
4 [MINS_UNDS] = ACTION_TAP_DANCE_DOUBLE(KC_MINS, KC_UNDS), 4 [MINS_UNDS] = ACTION_TAP_DANCE_DOUBLE(KC_MINS, KC_UNDS),
5 [SLSH_BSLS] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, KC_BSLS), 5 [SLSH_BSLS] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, KC_BSLS),
diff --git a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/tap_dance_setup.c b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/tap_dance_setup.c
index 340ccca133..d733123230 100644
--- a/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/tap_dance_setup.c
+++ b/keyboards/ergodox_ez/keymaps/hacker_dvorak/tap_dance/tap_dance_setup.c
@@ -41,7 +41,7 @@ enum {
41 * For the third point, there does exist the 'DOUBLE_SINGLE_TAP', however this is not fully tested 41 * For the third point, there does exist the 'DOUBLE_SINGLE_TAP', however this is not fully tested
42 * 42 *
43 */ 43 */
44int current_dance(qk_tap_dance_state_t *state) { 44int current_dance(tap_dance_state_t *state) {
45 int current_state = 0; 45 int current_state = 0;
46 if (state->count == 1) { 46 if (state->count == 1) {
47 if (state->interrupted || !state->pressed) { 47 if (state->interrupted || !state->pressed) {
diff --git a/keyboards/ergodox_ez/keymaps/nathanvercaemert/keymap.c b/keyboards/ergodox_ez/keymaps/nathanvercaemert/keymap.c
index a568ce30fc..6d466cc0de 100644
--- a/keyboards/ergodox_ez/keymaps/nathanvercaemert/keymap.c
+++ b/keyboards/ergodox_ez/keymaps/nathanvercaemert/keymap.c
@@ -53,15 +53,15 @@ static td_state_t td_state;
53// declare your tapdance functions: 53// declare your tapdance functions:
54 54
55// function to determine the current tapdance state 55// function to determine the current tapdance state
56int cur_dance (qk_tap_dance_state_t *state); 56int cur_dance (tap_dance_state_t *state);
57 57
58// `finished` and `reset` functions for each tapdance keycode 58// `finished` and `reset` functions for each tapdance keycode
59void ctrlto12_finished (qk_tap_dance_state_t *state, void *user_data); 59void ctrlto12_finished (tap_dance_state_t *state, void *user_data);
60void ctrlto12_reset (qk_tap_dance_state_t *state, void *user_data); 60void ctrlto12_reset (tap_dance_state_t *state, void *user_data);
61void altto11_finished (qk_tap_dance_state_t *state, void *user_data); 61void altto11_finished (tap_dance_state_t *state, void *user_data);
62void altto11_reset (qk_tap_dance_state_t *state, void *user_data); 62void altto11_reset (tap_dance_state_t *state, void *user_data);
63void shiftto13_finished (qk_tap_dance_state_t *state, void *user_data); 63void shiftto13_finished (tap_dance_state_t *state, void *user_data);
64void shiftto13_reset (qk_tap_dance_state_t *state, void *user_data); 64void shiftto13_reset (tap_dance_state_t *state, void *user_data);
65 65
66 66
67const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 67const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
@@ -257,7 +257,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
257}; 257};
258 258
259// determine the tapdance state to return 259// determine the tapdance state to return
260int cur_dance (qk_tap_dance_state_t *state) { 260int cur_dance (tap_dance_state_t *state) {
261 if (state->count == 1) { 261 if (state->count == 1) {
262 if (state->interrupted && state->pressed && state->interrupting_keycode == KC_MS_BTN1) {return SINGLE_HOLD;} 262 if (state->interrupted && state->pressed && state->interrupting_keycode == KC_MS_BTN1) {return SINGLE_HOLD;}
263 if (state->interrupted && state->pressed && state->interrupting_keycode == 22273) {return SINGLE_HOLD;} 263 if (state->interrupted && state->pressed && state->interrupting_keycode == 22273) {return SINGLE_HOLD;}
@@ -277,7 +277,7 @@ int cur_dance (qk_tap_dance_state_t *state) {
277 else { return 2; } // any number higher than the maximum state value you return above 277 else { return 2; } // any number higher than the maximum state value you return above
278} 278}
279// /* Backup in case previous code is hard to piece together. */ 279// /* Backup in case previous code is hard to piece together. */
280// int cur_dance (qk_tap_dance_state_t *state) { 280// int cur_dance (tap_dance_state_t *state) {
281// if (state->count == 1) { 281// if (state->count == 1) {
282// if (state->interrupted || !state->pressed) { return SINGLE_TAP; } 282// if (state->interrupted || !state->pressed) { return SINGLE_TAP; }
283// else { return SINGLE_HOLD; } 283// else { return SINGLE_HOLD; }
@@ -285,7 +285,7 @@ int cur_dance (qk_tap_dance_state_t *state) {
285// else { return 2; } // any number higher than the maximum state value you return above 285// else { return 2; } // any number higher than the maximum state value you return above
286// } 286// }
287 287
288void ctrlto12_finished (qk_tap_dance_state_t *state, void *user_data) { 288void ctrlto12_finished (tap_dance_state_t *state, void *user_data) {
289 td_state = cur_dance(state); 289 td_state = cur_dance(state);
290 switch (td_state) { 290 switch (td_state) {
291 case SINGLE_TAP: 291 case SINGLE_TAP:
@@ -304,7 +304,7 @@ void ctrlto12_finished (qk_tap_dance_state_t *state, void *user_data) {
304 } 304 }
305} 305}
306 306
307void ctrlto12_reset (qk_tap_dance_state_t *state, void *user_data) { 307void ctrlto12_reset (tap_dance_state_t *state, void *user_data) {
308 switch (td_state) { 308 switch (td_state) {
309 case SINGLE_TAP: 309 case SINGLE_TAP:
310 break; 310 break;
@@ -321,7 +321,7 @@ void ctrlto12_reset (qk_tap_dance_state_t *state, void *user_data) {
321 } 321 }
322} 322}
323 323
324void shiftto13_finished (qk_tap_dance_state_t *state, void *user_data) { 324void shiftto13_finished (tap_dance_state_t *state, void *user_data) {
325 td_state = cur_dance(state); 325 td_state = cur_dance(state);
326 switch (td_state) { 326 switch (td_state) {
327 case SINGLE_TAP: 327 case SINGLE_TAP:
@@ -340,7 +340,7 @@ void shiftto13_finished (qk_tap_dance_state_t *state, void *user_data) {
340 } 340 }
341} 341}
342 342
343void shiftto13_reset (qk_tap_dance_state_t *state, void *user_data) { 343void shiftto13_reset (tap_dance_state_t *state, void *user_data) {
344 switch (td_state) { 344 switch (td_state) {
345 case SINGLE_TAP: 345 case SINGLE_TAP:
346 break; 346 break;
@@ -357,7 +357,7 @@ void shiftto13_reset (qk_tap_dance_state_t *state, void *user_data) {
357 } 357 }
358} 358}
359 359
360void altto11_finished (qk_tap_dance_state_t *state, void *user_data) { 360void altto11_finished (tap_dance_state_t *state, void *user_data) {
361 td_state = cur_dance(state); 361 td_state = cur_dance(state);
362 switch (td_state) { 362 switch (td_state) {
363 case SINGLE_TAP: 363 case SINGLE_TAP:
@@ -372,7 +372,7 @@ void altto11_finished (qk_tap_dance_state_t *state, void *user_data) {
372 } 372 }
373} 373}
374 374
375void altto11_reset (qk_tap_dance_state_t *state, void *user_data) { 375void altto11_reset (tap_dance_state_t *state, void *user_data) {
376 switch (td_state) { 376 switch (td_state) {
377 case SINGLE_TAP: 377 case SINGLE_TAP:
378 break; 378 break;
@@ -386,7 +386,7 @@ void altto11_reset (qk_tap_dance_state_t *state, void *user_data) {
386} 386}
387 387
388// define `ACTION_TAP_DANCE_FN_ADVANCED()` for each tapdance keycode, passing in `finished` and `reset` functions 388// define `ACTION_TAP_DANCE_FN_ADVANCED()` for each tapdance keycode, passing in `finished` and `reset` functions
389qk_tap_dance_action_t tap_dance_actions[] = { 389tap_dance_action_t tap_dance_actions[] = {
390 [CTRL_TO12] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctrlto12_finished, ctrlto12_reset), 390 [CTRL_TO12] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctrlto12_finished, ctrlto12_reset),
391 [SHIFT_TO13] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, shiftto13_finished, shiftto13_reset), 391 [SHIFT_TO13] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, shiftto13_finished, shiftto13_reset),
392 [ALT_TO11] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altto11_finished, altto11_reset), 392 [ALT_TO11] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altto11_finished, altto11_reset),
diff --git a/keyboards/ergodox_ez/keymaps/pvinis/keymap.c b/keyboards/ergodox_ez/keymaps/pvinis/keymap.c
index c69621ab98..dcdaa7098b 100644
--- a/keyboards/ergodox_ez/keymaps/pvinis/keymap.c
+++ b/keyboards/ergodox_ez/keymaps/pvinis/keymap.c
@@ -268,7 +268,7 @@ layer_state_t layer_state_set_user_keymap(layer_state_t state) {
268// tap dances 268// tap dances
269 269
270// flash keyboard on 4x tap, with leds 270// flash keyboard on 4x tap, with leds
271// void flash_each_tap(qk_tap_dance_state_t *state, void *user_data) { 271// void flash_each_tap(tap_dance_state_t *state, void *user_data) {
272// switch (state->count) { 272// switch (state->count) {
273// case 1: 273// case 1:
274// ergodox_right_led_3_on(); 274// ergodox_right_led_3_on();
@@ -289,14 +289,14 @@ layer_state_t layer_state_set_user_keymap(layer_state_t state) {
289// } 289// }
290// } 290// }
291 291
292// void flash_dance_finished(qk_tap_dance_state_t *state, void *user_data) { 292// void flash_dance_finished(tap_dance_state_t *state, void *user_data) {
293// if (state->count >= 4) { 293// if (state->count >= 4) {
294// reset_keyboard(); 294// reset_keyboard();
295// reset_tap_dance(state); 295// reset_tap_dance(state);
296// } 296// }
297// } 297// }
298 298
299// void flash_dance_reset(qk_tap_dance_state_t *state, void *user_data) { 299// void flash_dance_reset(tap_dance_state_t *state, void *user_data) {
300// ergodox_right_led_1_off(); 300// ergodox_right_led_1_off();
301// wait_ms(50); 301// wait_ms(50);
302// ergodox_right_led_2_off(); 302// ergodox_right_led_2_off();
@@ -305,7 +305,7 @@ layer_state_t layer_state_set_user_keymap(layer_state_t state) {
305// } 305// }
306 306
307// SYSCTL on first tap, MOUSE ON second tap 307// SYSCTL on first tap, MOUSE ON second tap
308// void layers_dance_finished(qk_tap_dance_state_t *state, void *user_data) { 308// void layers_dance_finished(tap_dance_state_t *state, void *user_data) {
309// uint8_t layer = get_highest_layer(layer_state); 309// uint8_t layer = get_highest_layer(layer_state);
310 310
311// switch(state->count) { 311// switch(state->count) {
@@ -328,7 +328,7 @@ layer_state_t layer_state_set_user_keymap(layer_state_t state) {
328// } 328// }
329// } 329// }
330 330
331// qk_tap_dance_action_t tap_dance_actions[] = { 331// tap_dance_action_t tap_dance_actions[] = {
332// [TD_FLSH] = ACTION_TAP_DANCE_FN_ADVANCED( flash_each_tap, flash_dance_finished, flash_dance_reset ), 332// [TD_FLSH] = ACTION_TAP_DANCE_FN_ADVANCED( flash_each_tap, flash_dance_finished, flash_dance_reset ),
333// [TD_LAYR] = ACTION_TAP_DANCE_FN_ADVANCED( NULL, layers_dance_finished, NULL ), 333// [TD_LAYR] = ACTION_TAP_DANCE_FN_ADVANCED( NULL, layers_dance_finished, NULL ),
334// }; 334// };
diff --git a/keyboards/eyeohdesigns/babyv/keymaps/melonbred/keymap.c b/keyboards/eyeohdesigns/babyv/keymaps/melonbred/keymap.c
index e550aed864..23a8563595 100644
--- a/keyboards/eyeohdesigns/babyv/keymaps/melonbred/keymap.c
+++ b/keyboards/eyeohdesigns/babyv/keymaps/melonbred/keymap.c
@@ -30,7 +30,7 @@ enum {
30}; 30};
31 31
32// Tap Dance Definition 32// Tap Dance Definition
33qk_tap_dance_action_t tap_dance_actions[] = { 33tap_dance_action_t tap_dance_actions[] = {
34 //Tap once for minus, tap twice for divide 34 //Tap once for minus, tap twice for divide
35 [TD_M_D] = ACTION_TAP_DANCE_DOUBLE(KC_PMNS, KC_PSLS), 35 [TD_M_D] = ACTION_TAP_DANCE_DOUBLE(KC_PMNS, KC_PSLS),
36 //Tap once for plus, tap twice for multiply 36 //Tap once for plus, tap twice for multiply
diff --git a/keyboards/ferris/keymaps/madhatter/keymap.c b/keyboards/ferris/keymaps/madhatter/keymap.c
index db6928918b..7b0c2e82bf 100644
--- a/keyboards/ferris/keymaps/madhatter/keymap.c
+++ b/keyboards/ferris/keymaps/madhatter/keymap.c
@@ -51,7 +51,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
51}; 51};
52 52
53// Tap Dance Definitions 53// Tap Dance Definitions
54qk_tap_dance_action_t tap_dance_actions[] = { 54tap_dance_action_t tap_dance_actions[] = {
55 // Tap once for Q, twice for ESC 55 // Tap once for Q, twice for ESC
56 [TD_Q_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC) 56 [TD_Q_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC)
57}; 57};
diff --git a/keyboards/flehrad/bigswitch/keymaps/333fred/keymap.c b/keyboards/flehrad/bigswitch/keymaps/333fred/keymap.c
index c2de6318dd..d323bcc2c4 100644
--- a/keyboards/flehrad/bigswitch/keymaps/333fred/keymap.c
+++ b/keyboards/flehrad/bigswitch/keymaps/333fred/keymap.c
@@ -69,7 +69,7 @@ void dance_cycle(bool override_timer) {
69 } 69 }
70} 70}
71 71
72void dance_finished(qk_tap_dance_state_t *state, void* user_data) { 72void dance_finished(tap_dance_state_t *state, void* user_data) {
73 // Determine the current state 73 // Determine the current state
74 switch (state->count) 74 switch (state->count)
75 { 75 {
@@ -127,12 +127,12 @@ void dance_finished(qk_tap_dance_state_t *state, void* user_data) {
127 } 127 }
128} 128}
129 129
130void dance_reset(qk_tap_dance_state_t *state, void* user_data) 130void dance_reset(tap_dance_state_t *state, void* user_data)
131{ 131{
132 tap_dance_active = false; 132 tap_dance_active = false;
133} 133}
134 134
135qk_tap_dance_action_t tap_dance_actions[] = { 135tap_dance_action_t tap_dance_actions[] = {
136 [TD_KEY] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_finished, dance_reset) 136 [TD_KEY] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_finished, dance_reset)
137}; 137};
138 138
diff --git a/keyboards/gboards/gergoplex/keymaps/georgepetri/keymap.c b/keyboards/gboards/gergoplex/keymaps/georgepetri/keymap.c
index 8b832cbac8..44c570b42c 100644
--- a/keyboards/gboards/gergoplex/keymaps/georgepetri/keymap.c
+++ b/keyboards/gboards/gergoplex/keymaps/georgepetri/keymap.c
@@ -46,10 +46,10 @@ enum {
46 GAME 46 GAME
47}; 47};
48 48
49td_state_t cur_dance(qk_tap_dance_state_t *state); 49td_state_t cur_dance(tap_dance_state_t *state);
50 50
51void ql_finished(qk_tap_dance_state_t *state, void *user_data); 51void ql_finished(tap_dance_state_t *state, void *user_data);
52void ql_reset(qk_tap_dance_state_t *state, void *user_data); 52void ql_reset(tap_dance_state_t *state, void *user_data);
53 53
54#define KC_CTL_A MT(MOD_LCTL, KC_A) // Tap for A, hold for Control 54#define KC_CTL_A MT(MOD_LCTL, KC_A) // Tap for A, hold for Control
55#define KC_SFT_Z MT(MOD_RSFT, KC_Z) // Tap for Z, hold for Shift 55#define KC_SFT_Z MT(MOD_RSFT, KC_Z) // Tap for Z, hold for Shift
@@ -158,7 +158,7 @@ bool get_hold_on_other_key_press(uint16_t keycode, keyrecord_t *record) {
158 } 158 }
159} 159}
160 160
161td_state_t cur_dance(qk_tap_dance_state_t *state) { 161td_state_t cur_dance(tap_dance_state_t *state) {
162 if (state->count == 1) 162 if (state->count == 1)
163 return TD_SINGLE_TAP; 163 return TD_SINGLE_TAP;
164 if (state->count == 2) 164 if (state->count == 2)
@@ -173,7 +173,7 @@ static td_tap_t ql_tap_state = {
173 .state = TD_NONE 173 .state = TD_NONE
174}; 174};
175 175
176void ql_finished(qk_tap_dance_state_t *state, void *user_data) { 176void ql_finished(tap_dance_state_t *state, void *user_data) {
177 ql_tap_state.state = cur_dance(state); 177 ql_tap_state.state = cur_dance(state);
178 switch (ql_tap_state.state) { 178 switch (ql_tap_state.state) {
179 case TD_SINGLE_TAP: 179 case TD_SINGLE_TAP:
@@ -194,11 +194,11 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
194 } 194 }
195} 195}
196 196
197void ql_reset(qk_tap_dance_state_t *state, void *user_data) { 197void ql_reset(tap_dance_state_t *state, void *user_data) {
198 ql_tap_state.state = TD_NONE; 198 ql_tap_state.state = TD_NONE;
199} 199}
200 200
201qk_tap_dance_action_t tap_dance_actions[] = { 201tap_dance_action_t tap_dance_actions[] = {
202 [GAME] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset) 202 [GAME] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset)
203}; 203};
204 204
diff --git a/keyboards/gh60/satan/keymaps/dkrieger/keymap.c b/keyboards/gh60/satan/keymaps/dkrieger/keymap.c
index 4848def85d..2dce640755 100644
--- a/keyboards/gh60/satan/keymaps/dkrieger/keymap.c
+++ b/keyboards/gh60/satan/keymaps/dkrieger/keymap.c
@@ -21,7 +21,7 @@ typedef struct {
21 int state; 21 int state;
22} tap; 22} tap;
23 23
24int cur_dance (qk_tap_dance_state_t *state) { 24int cur_dance (tap_dance_state_t *state) {
25 if (state->interrupted == false || state->pressed) { 25 if (state->interrupted == false || state->pressed) {
26 if (state->count < 2) return SINGLE_HOLD; 26 if (state->count < 2) return SINGLE_HOLD;
27 if (state->count < 3) return DOUBLE_HOLD; 27 if (state->count < 3) return DOUBLE_HOLD;
@@ -36,7 +36,7 @@ static tap fn_tap_state = {
36 .state = 0 36 .state = 0
37}; 37};
38 38
39void fn_finished (qk_tap_dance_state_t *state, void *user_data) { 39void fn_finished (tap_dance_state_t *state, void *user_data) {
40 fn_tap_state.state = cur_dance(state); 40 fn_tap_state.state = cur_dance(state);
41 switch (fn_tap_state.state) { 41 switch (fn_tap_state.state) {
42 /* case SINGLE_HOLD: register_code(MO(_FN)); break; */ 42 /* case SINGLE_HOLD: register_code(MO(_FN)); break; */
@@ -46,7 +46,7 @@ void fn_finished (qk_tap_dance_state_t *state, void *user_data) {
46 } 46 }
47} 47}
48 48
49void fn_reset (qk_tap_dance_state_t *state, void *user_data) { 49void fn_reset (tap_dance_state_t *state, void *user_data) {
50 switch (fn_tap_state.state) { 50 switch (fn_tap_state.state) {
51 case SINGLE_HOLD: layer_off(_FN); break; 51 case SINGLE_HOLD: layer_off(_FN); break;
52 case DOUBLE_HOLD: layer_off(_MOUSE); layer_off(_MOUSESHIFT); break; 52 case DOUBLE_HOLD: layer_off(_MOUSE); layer_off(_MOUSESHIFT); break;
@@ -54,7 +54,7 @@ void fn_reset (qk_tap_dance_state_t *state, void *user_data) {
54 } 54 }
55} 55}
56 56
57qk_tap_dance_action_t tap_dance_actions[] = { 57tap_dance_action_t tap_dance_actions[] = {
58 [SUPER_FN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, fn_finished, fn_reset) 58 [SUPER_FN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, fn_finished, fn_reset)
59}; 59};
60 60
diff --git a/keyboards/gh60/satan/keymaps/lepa/keymap.c b/keyboards/gh60/satan/keymaps/lepa/keymap.c
index 90a0236cd1..88196862a8 100644
--- a/keyboards/gh60/satan/keymaps/lepa/keymap.c
+++ b/keyboards/gh60/satan/keymaps/lepa/keymap.c
@@ -61,7 +61,7 @@ typedef struct {
61 int state; 61 int state;
62} tap; 62} tap;
63 63
64int cur_dance(qk_tap_dance_state_t *state) { 64int cur_dance(tap_dance_state_t *state) {
65 switch (state->count) { 65 switch (state->count) {
66 case 1: 66 case 1:
67 if (state->interrupted || state->pressed == 0) { 67 if (state->interrupted || state->pressed == 0) {
@@ -87,7 +87,7 @@ static tap N ## _state = { \
87 .state = 0 \ 87 .state = 0 \
88}; \ 88}; \
89 \ 89 \
90void N ## _finished(qk_tap_dance_state_t *state, void *user_data) { \ 90void N ## _finished(tap_dance_state_t *state, void *user_data) { \
91 N ## _state.state = cur_dance(state); \ 91 N ## _state.state = cur_dance(state); \
92 switch (N ## _state.state) { \ 92 switch (N ## _state.state) { \
93 case SINGLE_TAP: case SINGLE_HOLD: \ 93 case SINGLE_TAP: case SINGLE_HOLD: \
@@ -100,7 +100,7 @@ void N ## _finished(qk_tap_dance_state_t *state, void *user_data) { \
100 } \ 100 } \
101} \ 101} \
102 \ 102 \
103void N ## _reset(qk_tap_dance_state_t *state, void *user_data) { \ 103void N ## _reset(tap_dance_state_t *state, void *user_data) { \
104 switch (N ## _state.state) { \ 104 switch (N ## _state.state) { \
105 case SINGLE_TAP: case SINGLE_HOLD: \ 105 case SINGLE_TAP: case SINGLE_HOLD: \
106 unregister_code(K0); \ 106 unregister_code(K0); \
@@ -134,7 +134,7 @@ my_dance_combo_1(rcg, KC_RCTL, KC_RGUI)
134my_dance_combo_3(lsh, KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI) 134my_dance_combo_3(lsh, KC_LSFT, KC_LCTL, KC_LALT, KC_LGUI)
135my_dance_combo_3(rsh, KC_RSFT, KC_RCTL, KC_RALT, KC_RGUI) 135my_dance_combo_3(rsh, KC_RSFT, KC_RCTL, KC_RALT, KC_RGUI)
136 136
137qk_tap_dance_action_t tap_dance_actions[] = { 137tap_dance_action_t tap_dance_actions[] = {
138 [TD_LCTL_ALT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lca_finished, lca_reset), 138 [TD_LCTL_ALT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lca_finished, lca_reset),
139 [TD_RCTL_ALT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, rca_finished, rca_reset), 139 [TD_RCTL_ALT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, rca_finished, rca_reset),
140 [TD_LGUI_ALT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lga_finished, lga_reset), 140 [TD_LGUI_ALT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lga_finished, lga_reset),
diff --git a/keyboards/gmmk/pro/rev1/ansi/keymaps/coryginsberg/keymap.c b/keyboards/gmmk/pro/rev1/ansi/keymaps/coryginsberg/keymap.c
index b71d18d481..49e2050ea0 100644
--- a/keyboards/gmmk/pro/rev1/ansi/keymaps/coryginsberg/keymap.c
+++ b/keyboards/gmmk/pro/rev1/ansi/keymaps/coryginsberg/keymap.c
@@ -17,7 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
18#include QMK_KEYBOARD_H 18#include QMK_KEYBOARD_H
19 19
20void dance_media(qk_tap_dance_state_t *state, void *user_data) { 20void dance_media(tap_dance_state_t *state, void *user_data) {
21 if (state->count == 1) { 21 if (state->count == 1) {
22 tap_code(KC_MPLY); 22 tap_code(KC_MPLY);
23 } else if (state->count == 2) { 23 } else if (state->count == 2) {
@@ -29,7 +29,7 @@ void dance_media(qk_tap_dance_state_t *state, void *user_data) {
29 } 29 }
30} 30}
31 31
32qk_tap_dance_action_t tap_dance_actions[] = { 32tap_dance_action_t tap_dance_actions[] = {
33 // Tap once for shift, twice for Caps Lock 33 // Tap once for shift, twice for Caps Lock
34 [0] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), 34 [0] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
35 [1] = ACTION_TAP_DANCE_FN(dance_media)}; 35 [1] = ACTION_TAP_DANCE_FN(dance_media)};
diff --git a/keyboards/h0oni/deskpad/keymaps/default/keymap.c b/keyboards/h0oni/deskpad/keymaps/default/keymap.c
index 54172f2986..c3eba7c4a9 100644
--- a/keyboards/h0oni/deskpad/keymaps/default/keymap.c
+++ b/keyboards/h0oni/deskpad/keymaps/default/keymap.c
@@ -46,15 +46,15 @@ enum custom_keycodes {
46 VSCODE, 46 VSCODE,
47}; 47};
48 48
49td_state_t cur_dance(qk_tap_dance_state_t *state); 49td_state_t cur_dance(tap_dance_state_t *state);
50 50
51/* Quad layer switching */ 51/* Quad layer switching */
52void layer_finished(qk_tap_dance_state_t *state, void *user_data); 52void layer_finished(tap_dance_state_t *state, void *user_data);
53void layer_reset(qk_tap_dance_state_t *state, void *user_data); 53void layer_reset(tap_dance_state_t *state, void *user_data);
54 54
55/* Copy, paste, select all, cut */ 55/* Copy, paste, select all, cut */
56void cvxa_finished(qk_tap_dance_state_t *state, void *user_data); 56void cvxa_finished(tap_dance_state_t *state, void *user_data);
57void cvxa_reset(qk_tap_dance_state_t *state, void *user_data); 57void cvxa_reset(tap_dance_state_t *state, void *user_data);
58 58
59static td_tap_t layerTap_state = { 59static td_tap_t layerTap_state = {
60 .is_press_action = true, 60 .is_press_action = true,
@@ -67,7 +67,7 @@ static td_tap_t cvxa_state = {
67}; 67};
68 68
69// Determine the current tap dance state 69// Determine the current tap dance state
70td_state_t cur_dance(qk_tap_dance_state_t *state) { 70td_state_t cur_dance(tap_dance_state_t *state) {
71 if (state->count == 1) { 71 if (state->count == 1) {
72 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP; 72 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP;
73 // Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'. 73 // Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'.
@@ -79,7 +79,7 @@ td_state_t cur_dance(qk_tap_dance_state_t *state) {
79 } else return TD_UNKNOWN; 79 } else return TD_UNKNOWN;
80} 80}
81 81
82void layer_finished(qk_tap_dance_state_t *state, void *user_data) { 82void layer_finished(tap_dance_state_t *state, void *user_data) {
83 layerTap_state.state = cur_dance(state); 83 layerTap_state.state = cur_dance(state);
84 layer_off(get_highest_layer(layer_state)); 84 layer_off(get_highest_layer(layer_state));
85 switch (layerTap_state.state) { 85 switch (layerTap_state.state) {
@@ -91,11 +91,11 @@ void layer_finished(qk_tap_dance_state_t *state, void *user_data) {
91 } 91 }
92} 92}
93 93
94void layer_reset(qk_tap_dance_state_t *state, void *user_data) { 94void layer_reset(tap_dance_state_t *state, void *user_data) {
95 layerTap_state.state = TD_NONE; 95 layerTap_state.state = TD_NONE;
96} 96}
97 97
98void cvxa_finished(qk_tap_dance_state_t *state, void *user_data) { 98void cvxa_finished(tap_dance_state_t *state, void *user_data) {
99 cvxa_state.state = cur_dance(state); 99 cvxa_state.state = cur_dance(state);
100 register_mods(MOD_BIT(KC_LCTL)); 100 register_mods(MOD_BIT(KC_LCTL));
101 switch (cvxa_state.state) { 101 switch (cvxa_state.state) {
@@ -108,12 +108,12 @@ void cvxa_finished(qk_tap_dance_state_t *state, void *user_data) {
108 unregister_mods(MOD_BIT(KC_LCTL)); 108 unregister_mods(MOD_BIT(KC_LCTL));
109} 109}
110 110
111void cvxa_reset(qk_tap_dance_state_t *state, void *user_data) { 111void cvxa_reset(tap_dance_state_t *state, void *user_data) {
112 cvxa_state.state = TD_NONE; 112 cvxa_state.state = TD_NONE;
113} 113}
114 114
115// Tap Dance definitions 115// Tap Dance definitions
116qk_tap_dance_action_t tap_dance_actions[] = { 116tap_dance_action_t tap_dance_actions[] = {
117 [TD_CUT_REDO] = ACTION_TAP_DANCE_DOUBLE(C(KC_Z), S(C(KC_Z))), 117 [TD_CUT_REDO] = ACTION_TAP_DANCE_DOUBLE(C(KC_Z), S(C(KC_Z))),
118 [TD_PLAY_PAUSE_MUTE] = ACTION_TAP_DANCE_DOUBLE(KC_MPLY, KC_MUTE), 118 [TD_PLAY_PAUSE_MUTE] = ACTION_TAP_DANCE_DOUBLE(KC_MPLY, KC_MUTE),
119 [TD_MNXT_RIGHT] = ACTION_TAP_DANCE_DOUBLE(KC_MNXT, KC_RIGHT), 119 [TD_MNXT_RIGHT] = ACTION_TAP_DANCE_DOUBLE(KC_MNXT, KC_RIGHT),
diff --git a/keyboards/h0oni/deskpad/keymaps/via/keymap.c b/keyboards/h0oni/deskpad/keymaps/via/keymap.c
index 54172f2986..c3eba7c4a9 100644
--- a/keyboards/h0oni/deskpad/keymaps/via/keymap.c
+++ b/keyboards/h0oni/deskpad/keymaps/via/keymap.c
@@ -46,15 +46,15 @@ enum custom_keycodes {
46 VSCODE, 46 VSCODE,
47}; 47};
48 48
49td_state_t cur_dance(qk_tap_dance_state_t *state); 49td_state_t cur_dance(tap_dance_state_t *state);
50 50
51/* Quad layer switching */ 51/* Quad layer switching */
52void layer_finished(qk_tap_dance_state_t *state, void *user_data); 52void layer_finished(tap_dance_state_t *state, void *user_data);
53void layer_reset(qk_tap_dance_state_t *state, void *user_data); 53void layer_reset(tap_dance_state_t *state, void *user_data);
54 54
55/* Copy, paste, select all, cut */ 55/* Copy, paste, select all, cut */
56void cvxa_finished(qk_tap_dance_state_t *state, void *user_data); 56void cvxa_finished(tap_dance_state_t *state, void *user_data);
57void cvxa_reset(qk_tap_dance_state_t *state, void *user_data); 57void cvxa_reset(tap_dance_state_t *state, void *user_data);
58 58
59static td_tap_t layerTap_state = { 59static td_tap_t layerTap_state = {
60 .is_press_action = true, 60 .is_press_action = true,
@@ -67,7 +67,7 @@ static td_tap_t cvxa_state = {
67}; 67};
68 68
69// Determine the current tap dance state 69// Determine the current tap dance state
70td_state_t cur_dance(qk_tap_dance_state_t *state) { 70td_state_t cur_dance(tap_dance_state_t *state) {
71 if (state->count == 1) { 71 if (state->count == 1) {
72 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP; 72 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP;
73 // Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'. 73 // Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'.
@@ -79,7 +79,7 @@ td_state_t cur_dance(qk_tap_dance_state_t *state) {
79 } else return TD_UNKNOWN; 79 } else return TD_UNKNOWN;
80} 80}
81 81
82void layer_finished(qk_tap_dance_state_t *state, void *user_data) { 82void layer_finished(tap_dance_state_t *state, void *user_data) {
83 layerTap_state.state = cur_dance(state); 83 layerTap_state.state = cur_dance(state);
84 layer_off(get_highest_layer(layer_state)); 84 layer_off(get_highest_layer(layer_state));
85 switch (layerTap_state.state) { 85 switch (layerTap_state.state) {
@@ -91,11 +91,11 @@ void layer_finished(qk_tap_dance_state_t *state, void *user_data) {
91 } 91 }
92} 92}
93 93
94void layer_reset(qk_tap_dance_state_t *state, void *user_data) { 94void layer_reset(tap_dance_state_t *state, void *user_data) {
95 layerTap_state.state = TD_NONE; 95 layerTap_state.state = TD_NONE;
96} 96}
97 97
98void cvxa_finished(qk_tap_dance_state_t *state, void *user_data) { 98void cvxa_finished(tap_dance_state_t *state, void *user_data) {
99 cvxa_state.state = cur_dance(state); 99 cvxa_state.state = cur_dance(state);
100 register_mods(MOD_BIT(KC_LCTL)); 100 register_mods(MOD_BIT(KC_LCTL));
101 switch (cvxa_state.state) { 101 switch (cvxa_state.state) {
@@ -108,12 +108,12 @@ void cvxa_finished(qk_tap_dance_state_t *state, void *user_data) {
108 unregister_mods(MOD_BIT(KC_LCTL)); 108 unregister_mods(MOD_BIT(KC_LCTL));
109} 109}
110 110
111void cvxa_reset(qk_tap_dance_state_t *state, void *user_data) { 111void cvxa_reset(tap_dance_state_t *state, void *user_data) {
112 cvxa_state.state = TD_NONE; 112 cvxa_state.state = TD_NONE;
113} 113}
114 114
115// Tap Dance definitions 115// Tap Dance definitions
116qk_tap_dance_action_t tap_dance_actions[] = { 116tap_dance_action_t tap_dance_actions[] = {
117 [TD_CUT_REDO] = ACTION_TAP_DANCE_DOUBLE(C(KC_Z), S(C(KC_Z))), 117 [TD_CUT_REDO] = ACTION_TAP_DANCE_DOUBLE(C(KC_Z), S(C(KC_Z))),
118 [TD_PLAY_PAUSE_MUTE] = ACTION_TAP_DANCE_DOUBLE(KC_MPLY, KC_MUTE), 118 [TD_PLAY_PAUSE_MUTE] = ACTION_TAP_DANCE_DOUBLE(KC_MPLY, KC_MUTE),
119 [TD_MNXT_RIGHT] = ACTION_TAP_DANCE_DOUBLE(KC_MNXT, KC_RIGHT), 119 [TD_MNXT_RIGHT] = ACTION_TAP_DANCE_DOUBLE(KC_MNXT, KC_RIGHT),
diff --git a/keyboards/halokeys/elemental75/keymaps/default/keymap.c b/keyboards/halokeys/elemental75/keymaps/default/keymap.c
index f34220b6f9..1dd7ea7862 100644
--- a/keyboards/halokeys/elemental75/keymaps/default/keymap.c
+++ b/keyboards/halokeys/elemental75/keymaps/default/keymap.c
@@ -35,7 +35,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
35 return true; 35 return true;
36} 36}
37 37
38void dance_cln_finished(qk_tap_dance_state_t *state, void *user_data) { 38void dance_cln_finished(tap_dance_state_t *state, void *user_data) {
39 uprintf("Tap Dance count: %u", state->count); 39 uprintf("Tap Dance count: %u", state->count);
40 if (state->count == 1) { 40 if (state->count == 1) {
41 tap_code(KC_MPLY); 41 tap_code(KC_MPLY);
@@ -47,7 +47,7 @@ void dance_cln_finished(qk_tap_dance_state_t *state, void *user_data) {
47} 47}
48 48
49/* All tap dance functions would go here. Only showing this one. */ 49/* All tap dance functions would go here. Only showing this one. */
50qk_tap_dance_action_t tap_dance_actions[] = { 50tap_dance_action_t tap_dance_actions[] = {
51 [TD_PLAY_FORWARD_BACK] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_cln_finished, NULL), 51 [TD_PLAY_FORWARD_BACK] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_cln_finished, NULL),
52}; 52};
53 53
diff --git a/keyboards/halokeys/elemental75/keymaps/via/keymap.c b/keyboards/halokeys/elemental75/keymaps/via/keymap.c
index 59b9211d83..69f2779681 100644
--- a/keyboards/halokeys/elemental75/keymaps/via/keymap.c
+++ b/keyboards/halokeys/elemental75/keymaps/via/keymap.c
@@ -32,7 +32,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
32 return true; 32 return true;
33} 33}
34 34
35void dance_cln_finished(qk_tap_dance_state_t *state, void *user_data) { 35void dance_cln_finished(tap_dance_state_t *state, void *user_data) {
36 uprintf("Tap Dance count: %u", state->count); 36 uprintf("Tap Dance count: %u", state->count);
37 if (state->count == 1) { 37 if (state->count == 1) {
38 tap_code(KC_MPLY); 38 tap_code(KC_MPLY);
@@ -44,7 +44,7 @@ void dance_cln_finished(qk_tap_dance_state_t *state, void *user_data) {
44} 44}
45 45
46/* All tap dance functions would go here. Only showing this one. */ 46/* All tap dance functions would go here. Only showing this one. */
47qk_tap_dance_action_t tap_dance_actions[] = { 47tap_dance_action_t tap_dance_actions[] = {
48 [TD_PLAY_FORWARD_BACK] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_cln_finished, NULL), 48 [TD_PLAY_FORWARD_BACK] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_cln_finished, NULL),
49}; 49};
50 50
diff --git a/keyboards/handwired/2x5keypad/keymaps/default_tapdance/keymap.c b/keyboards/handwired/2x5keypad/keymaps/default_tapdance/keymap.c
index c70ecd5562..945613f987 100644
--- a/keyboards/handwired/2x5keypad/keymaps/default_tapdance/keymap.c
+++ b/keyboards/handwired/2x5keypad/keymaps/default_tapdance/keymap.c
@@ -49,48 +49,48 @@ void send_french_unicode_char(uint8_t count, uint32_t once, uint32_t twice)
49 register_unicode(twice); 49 register_unicode(twice);
50} 50}
51 51
52void dance_a_q(qk_tap_dance_state_t *state, void *user_data) 52void dance_a_q(tap_dance_state_t *state, void *user_data)
53{ 53{
54 send_french_unicode_char(state->count, FR_A_GRAVE, FR_L_QUOTE); 54 send_french_unicode_char(state->count, FR_A_GRAVE, FR_L_QUOTE);
55} 55}
56 56
57void dance_e_q(qk_tap_dance_state_t *state, void *user_data) 57void dance_e_q(tap_dance_state_t *state, void *user_data)
58{ 58{
59 send_french_unicode_char(state->count, FR_E_AIGU, FR_R_QUOTE); 59 send_french_unicode_char(state->count, FR_E_AIGU, FR_R_QUOTE);
60} 60}
61 61
62void dance_e_u(qk_tap_dance_state_t *state, void *user_data) 62void dance_e_u(tap_dance_state_t *state, void *user_data)
63{ 63{
64 send_french_unicode_char(state->count, FR_E_GRAVE, FR_U_GRAVE); 64 send_french_unicode_char(state->count, FR_E_GRAVE, FR_U_GRAVE);
65} 65}
66 66
67void dance_e_e(qk_tap_dance_state_t *state, void *user_data) 67void dance_e_e(tap_dance_state_t *state, void *user_data)
68{ 68{
69 send_french_unicode_char(state->count, FR_E_HAT, FR_E_UMLAUT); 69 send_french_unicode_char(state->count, FR_E_HAT, FR_E_UMLAUT);
70} 70}
71 71
72void dance_a_y(qk_tap_dance_state_t *state, void *user_data) 72void dance_a_y(tap_dance_state_t *state, void *user_data)
73{ 73{
74 send_french_unicode_char(state->count, FR_A_HAT, FR_Y_UMLAUT); 74 send_french_unicode_char(state->count, FR_A_HAT, FR_Y_UMLAUT);
75} 75}
76 76
77void dance_i_i(qk_tap_dance_state_t *state, void *user_data) 77void dance_i_i(tap_dance_state_t *state, void *user_data)
78{ 78{
79 send_french_unicode_char(state->count, FR_I_HAT, FR_I_UMLAUT); 79 send_french_unicode_char(state->count, FR_I_HAT, FR_I_UMLAUT);
80} 80}
81 81
82void dance_o_c(qk_tap_dance_state_t *state, void *user_data) 82void dance_o_c(tap_dance_state_t *state, void *user_data)
83{ 83{
84 send_french_unicode_char(state->count, FR_O_HAT, FR_C_CIRCUM); 84 send_french_unicode_char(state->count, FR_O_HAT, FR_C_CIRCUM);
85} 85}
86 86
87void dance_u_u(qk_tap_dance_state_t *state, void *user_data) 87void dance_u_u(tap_dance_state_t *state, void *user_data)
88{ 88{
89 send_french_unicode_char(state->count, FR_U_HAT, FR_U_UMLAUT); 89 send_french_unicode_char(state->count, FR_U_HAT, FR_U_UMLAUT);
90} 90}
91 91
92/* Define the tap dance actions for the french characters */ 92/* Define the tap dance actions for the french characters */
93qk_tap_dance_action_t tap_dance_actions[] = { 93tap_dance_action_t tap_dance_actions[] = {
94 [A_Q] = ACTION_TAP_DANCE_FN(dance_a_q), 94 [A_Q] = ACTION_TAP_DANCE_FN(dance_a_q),
95 [E_Q] = ACTION_TAP_DANCE_FN(dance_e_q), 95 [E_Q] = ACTION_TAP_DANCE_FN(dance_e_q),
96 [E_U] = ACTION_TAP_DANCE_FN(dance_e_u), 96 [E_U] = ACTION_TAP_DANCE_FN(dance_e_u),
diff --git a/keyboards/handwired/concertina/64key/keymaps/default/keymap.c b/keyboards/handwired/concertina/64key/keymaps/default/keymap.c
index edc0f7d3cf..aced9d13c6 100644
--- a/keyboards/handwired/concertina/64key/keymaps/default/keymap.c
+++ b/keyboards/handwired/concertina/64key/keymaps/default/keymap.c
@@ -29,7 +29,7 @@ enum taps {
29 PNX, // Play/pause; next track. 29 PNX, // Play/pause; next track.
30}; 30};
31 31
32qk_tap_dance_action_t tap_dance_actions[] = { 32tap_dance_action_t tap_dance_actions[] = {
33 [PNX] = ACTION_TAP_DANCE_DOUBLE(KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK), 33 [PNX] = ACTION_TAP_DANCE_DOUBLE(KC_MEDIA_PLAY_PAUSE, KC_MEDIA_NEXT_TRACK),
34}; 34};
35 35
diff --git a/keyboards/handwired/jscotto/scotto36/keymaps/default/keymap.c b/keyboards/handwired/jscotto/scotto36/keymaps/default/keymap.c
index cd9b1599a5..3c6e61aea0 100644
--- a/keyboards/handwired/jscotto/scotto36/keymaps/default/keymap.c
+++ b/keyboards/handwired/jscotto/scotto36/keymaps/default/keymap.c
@@ -26,7 +26,7 @@ enum {
26 TD_ESC_WINDOWS_EMOJI 26 TD_ESC_WINDOWS_EMOJI
27}; 27};
28 28
29void td_esc_spotlight_emoji (qk_tap_dance_state_t *state, void *user_data) { 29void td_esc_spotlight_emoji (tap_dance_state_t *state, void *user_data) {
30 if (state->count == 1) { 30 if (state->count == 1) {
31 tap_code(KC_ESC); 31 tap_code(KC_ESC);
32 } else if (state->count == 2) { 32 } else if (state->count == 2) {
@@ -36,7 +36,7 @@ void td_esc_spotlight_emoji (qk_tap_dance_state_t *state, void *user_data) {
36 } 36 }
37} 37}
38 38
39void td_esc_windows_emoji (qk_tap_dance_state_t *state, void *user_data) { 39void td_esc_windows_emoji (tap_dance_state_t *state, void *user_data) {
40 if (state->count == 1) { 40 if (state->count == 1) {
41 tap_code(KC_ESC); 41 tap_code(KC_ESC);
42 } else if (state->count == 2) { 42 } else if (state->count == 2) {
@@ -47,7 +47,7 @@ void td_esc_windows_emoji (qk_tap_dance_state_t *state, void *user_data) {
47}; 47};
48 48
49 // Tap Dance definitions 49 // Tap Dance definitions
50qk_tap_dance_action_t tap_dance_actions[] = { 50tap_dance_action_t tap_dance_actions[] = {
51 [TD_ESC_SPOTLIGHT_EMOJI] = ACTION_TAP_DANCE_FN(td_esc_spotlight_emoji), 51 [TD_ESC_SPOTLIGHT_EMOJI] = ACTION_TAP_DANCE_FN(td_esc_spotlight_emoji),
52 [TD_ESC_WINDOWS_EMOJI] = ACTION_TAP_DANCE_FN(td_esc_windows_emoji) 52 [TD_ESC_WINDOWS_EMOJI] = ACTION_TAP_DANCE_FN(td_esc_windows_emoji)
53}; 53};
diff --git a/keyboards/handwired/jscotto/scottocmd/keymaps/default/keymap.c b/keyboards/handwired/jscotto/scottocmd/keymaps/default/keymap.c
index 398178bf5b..97d2c206a8 100644
--- a/keyboards/handwired/jscotto/scottocmd/keymaps/default/keymap.c
+++ b/keyboards/handwired/jscotto/scottocmd/keymaps/default/keymap.c
@@ -26,7 +26,7 @@ enum {
26 TD_ESC_WINDOWS_EMOJI 26 TD_ESC_WINDOWS_EMOJI
27}; 27};
28 28
29void td_esc_spotlight_emoji (qk_tap_dance_state_t *state, void *user_data) { 29void td_esc_spotlight_emoji (tap_dance_state_t *state, void *user_data) {
30 if (state->count == 1) { 30 if (state->count == 1) {
31 tap_code(KC_ESC); 31 tap_code(KC_ESC);
32 } else if (state->count == 2) { 32 } else if (state->count == 2) {
@@ -36,7 +36,7 @@ void td_esc_spotlight_emoji (qk_tap_dance_state_t *state, void *user_data) {
36 } 36 }
37} 37}
38 38
39void td_esc_windows_emoji (qk_tap_dance_state_t *state, void *user_data) { 39void td_esc_windows_emoji (tap_dance_state_t *state, void *user_data) {
40 if (state->count == 1) { 40 if (state->count == 1) {
41 tap_code(KC_ESC); 41 tap_code(KC_ESC);
42 } else if (state->count == 2) { 42 } else if (state->count == 2) {
@@ -47,7 +47,7 @@ void td_esc_windows_emoji (qk_tap_dance_state_t *state, void *user_data) {
47}; 47};
48 48
49 // Tap Dance definitions 49 // Tap Dance definitions
50qk_tap_dance_action_t tap_dance_actions[] = { 50tap_dance_action_t tap_dance_actions[] = {
51 [TD_ESC_SPOTLIGHT_EMOJI] = ACTION_TAP_DANCE_FN(td_esc_spotlight_emoji), 51 [TD_ESC_SPOTLIGHT_EMOJI] = ACTION_TAP_DANCE_FN(td_esc_spotlight_emoji),
52 [TD_ESC_WINDOWS_EMOJI] = ACTION_TAP_DANCE_FN(td_esc_windows_emoji) 52 [TD_ESC_WINDOWS_EMOJI] = ACTION_TAP_DANCE_FN(td_esc_windows_emoji)
53}; 53};
diff --git a/keyboards/handwired/k_numpad17/keymaps/karlssn/keymap.c b/keyboards/handwired/k_numpad17/keymaps/karlssn/keymap.c
index c2f314116b..fdbc3c8a39 100644
--- a/keyboards/handwired/k_numpad17/keymaps/karlssn/keymap.c
+++ b/keyboards/handwired/k_numpad17/keymaps/karlssn/keymap.c
@@ -6,7 +6,7 @@ enum {
6}; 6};
7 7
8//Tap Dance Definitions 8//Tap Dance Definitions
9qk_tap_dance_action_t tap_dance_actions[] = { 9tap_dance_action_t tap_dance_actions[] = {
10 //Tap once for Esc, twice for Caps Lock 10 //Tap once for Esc, twice for Caps Lock
11 [TD_DOT_COMMAS] = ACTION_TAP_DANCE_DOUBLE(KC_DOT, KC_COMMA) 11 [TD_DOT_COMMAS] = ACTION_TAP_DANCE_DOUBLE(KC_DOT, KC_COMMA)
12// Other declarations would go here, separated by commas, if you have them 12// Other declarations would go here, separated by commas, if you have them
diff --git a/keyboards/handwired/lagrange/keymaps/dpapavas/keymap.c b/keyboards/handwired/lagrange/keymaps/dpapavas/keymap.c
index 5f221904e9..8d2ecd9c79 100644
--- a/keyboards/handwired/lagrange/keymaps/dpapavas/keymap.c
+++ b/keyboards/handwired/lagrange/keymaps/dpapavas/keymap.c
@@ -78,7 +78,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
78#define CHOREOGRAPH(DANCE, PRESS, RELEASE, TAP, DOUBLETAP) \ 78#define CHOREOGRAPH(DANCE, PRESS, RELEASE, TAP, DOUBLETAP) \
79 static bool dance_ ## DANCE ## _pressed; \ 79 static bool dance_ ## DANCE ## _pressed; \
80 \ 80 \
81 void dance_ ## DANCE ## _finished(qk_tap_dance_state_t *state, void *user_data) { \ 81 void dance_ ## DANCE ## _finished(tap_dance_state_t *state, void *user_data) { \
82 if (state->count == 1) { \ 82 if (state->count == 1) { \
83 if (state->pressed) { \ 83 if (state->pressed) { \
84 dance_ ## DANCE ## _pressed = true; \ 84 dance_ ## DANCE ## _pressed = true; \
@@ -93,7 +93,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
93 } \ 93 } \
94 } \ 94 } \
95 \ 95 \
96 void dance_ ## DANCE ## _reset(qk_tap_dance_state_t *state, void *user_data) { \ 96 void dance_ ## DANCE ## _reset(tap_dance_state_t *state, void *user_data) { \
97 if (state->count == 1) { \ 97 if (state->count == 1) { \
98 if (dance_ ## DANCE ## _pressed) { \ 98 if (dance_ ## DANCE ## _pressed) { \
99 RELEASE; \ 99 RELEASE; \
@@ -138,7 +138,7 @@ CHOREOGRAPH(TD_C_X,
138 SEND_STRING(SS_UP(X_LCTL)), 138 SEND_STRING(SS_UP(X_LCTL)),
139 SEND_STRING(SS_DOWN(X_LCTL) SS_TAP(X_X) SS_UP(X_LCTL)),); 139 SEND_STRING(SS_DOWN(X_LCTL) SS_TAP(X_X) SS_UP(X_LCTL)),);
140 140
141qk_tap_dance_action_t tap_dance_actions[] = { 141tap_dance_action_t tap_dance_actions[] = {
142 STEPS(TD_LEFT), STEPS(TD_RGHT), STEPS(TD_C_X) 142 STEPS(TD_LEFT), STEPS(TD_RGHT), STEPS(TD_C_X)
143}; 143};
144 144
diff --git a/keyboards/handwired/myskeeb/keymaps/default/keymap.c b/keyboards/handwired/myskeeb/keymaps/default/keymap.c
index ee0ead3664..d3a8ba20e8 100644
--- a/keyboards/handwired/myskeeb/keymaps/default/keymap.c
+++ b/keyboards/handwired/myskeeb/keymaps/default/keymap.c
@@ -12,7 +12,7 @@ enum {
12}; 12};
13 13
14// Tap Dance Functions 14// Tap Dance Functions
15void tri_open(qk_tap_dance_state_t *state, void *user_data) { 15void tri_open(tap_dance_state_t *state, void *user_data) {
16 if (state->count == 1) { 16 if (state->count == 1) {
17 tap_code16(KC_LPRN); 17 tap_code16(KC_LPRN);
18 } else if (state->count == 2) { 18 } else if (state->count == 2) {
@@ -22,7 +22,7 @@ void tri_open(qk_tap_dance_state_t *state, void *user_data) {
22 } 22 }
23} 23}
24 24
25void tri_close(qk_tap_dance_state_t *state, void *user_data) { 25void tri_close(tap_dance_state_t *state, void *user_data) {
26 if (state->count == 1) { 26 if (state->count == 1) {
27 tap_code16(KC_RPRN); 27 tap_code16(KC_RPRN);
28 } else if (state->count == 2) { 28 } else if (state->count == 2) {
@@ -32,7 +32,7 @@ void tri_close(qk_tap_dance_state_t *state, void *user_data) {
32 } 32 }
33} 33}
34 34
35void dquote(qk_tap_dance_state_t *state, void *user_data) { 35void dquote(tap_dance_state_t *state, void *user_data) {
36 if (state->count == 1) { 36 if (state->count == 1) {
37 if (state->interrupted) 37 if (state->interrupted)
38 tap_code(KC_QUOT); 38 tap_code(KC_QUOT);
@@ -44,7 +44,7 @@ void dquote(qk_tap_dance_state_t *state, void *user_data) {
44 } 44 }
45} 45}
46 46
47void tilded(qk_tap_dance_state_t *state, void *user_data) { 47void tilded(tap_dance_state_t *state, void *user_data) {
48 if (state->count == 1) { 48 if (state->count == 1) {
49 if (state->interrupted) 49 if (state->interrupted)
50 tap_code16(KC_TILD); 50 tap_code16(KC_TILD);
@@ -55,7 +55,7 @@ void tilded(qk_tap_dance_state_t *state, void *user_data) {
55 } 55 }
56} 56}
57 57
58qk_tap_dance_action_t tap_dance_actions[] = { 58tap_dance_action_t tap_dance_actions[] = {
59 [OP_QT] = ACTION_TAP_DANCE_FN(tri_open), 59 [OP_QT] = ACTION_TAP_DANCE_FN(tri_open),
60 [CL_QT] = ACTION_TAP_DANCE_FN(tri_close), 60 [CL_QT] = ACTION_TAP_DANCE_FN(tri_close),
61 [TD_DQ] = ACTION_TAP_DANCE_FN(dquote), 61 [TD_DQ] = ACTION_TAP_DANCE_FN(dquote),
diff --git a/keyboards/handwired/onekey/keymaps/backlight/keymap.c b/keyboards/handwired/onekey/keymaps/backlight/keymap.c
index 1fbbc632da..746e4619de 100644
--- a/keyboards/handwired/onekey/keymaps/backlight/keymap.c
+++ b/keyboards/handwired/onekey/keymaps/backlight/keymap.c
@@ -5,11 +5,11 @@ enum {
5 TD_BL = 0 5 TD_BL = 0
6}; 6};
7 7
8void dance_cln_finished(qk_tap_dance_state_t *state, void *user_data) { 8void dance_cln_finished(tap_dance_state_t *state, void *user_data) {
9 // noop 9 // noop
10} 10}
11 11
12void dance_cln_reset(qk_tap_dance_state_t *state, void *user_data) { 12void dance_cln_reset(tap_dance_state_t *state, void *user_data) {
13 switch (state->count) { 13 switch (state->count) {
14 case 1: 14 case 1:
15 // single tap - step through backlight 15 // single tap - step through backlight
@@ -30,7 +30,7 @@ void dance_cln_reset(qk_tap_dance_state_t *state, void *user_data) {
30 } 30 }
31} 31}
32 32
33qk_tap_dance_action_t tap_dance_actions[] = { 33tap_dance_action_t tap_dance_actions[] = {
34 [TD_BL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_cln_finished, dance_cln_reset) 34 [TD_BL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_cln_finished, dance_cln_reset)
35}; 35};
36 36
diff --git a/keyboards/handwired/onekey/keymaps/oled/keymap.c b/keyboards/handwired/onekey/keymaps/oled/keymap.c
index 244dc4facb..120ab80fa5 100644
--- a/keyboards/handwired/onekey/keymaps/oled/keymap.c
+++ b/keyboards/handwired/onekey/keymaps/oled/keymap.c
@@ -63,7 +63,7 @@ static void stop_scrolling(void) {
63 } 63 }
64} 64}
65 65
66static void dance_oled_finished(qk_tap_dance_state_t *state, void *user_data) { 66static void dance_oled_finished(tap_dance_state_t *state, void *user_data) {
67 switch (state->count) { 67 switch (state->count) {
68 case 1: 68 case 1:
69 if (state->pressed) { 69 if (state->pressed) {
@@ -155,7 +155,7 @@ static void dance_oled_finished(qk_tap_dance_state_t *state, void *user_data) {
155 } 155 }
156} 156}
157 157
158qk_tap_dance_action_t tap_dance_actions[] = {[TD_OLED] = ACTION_TAP_DANCE_FN(dance_oled_finished)}; 158tap_dance_action_t tap_dance_actions[] = {[TD_OLED] = ACTION_TAP_DANCE_FN(dance_oled_finished)};
159 159
160const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {LAYOUT_ortho_1x1(TD(TD_OLED))}; 160const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {LAYOUT_ortho_1x1(TD(TD_OLED))};
161 161
diff --git a/keyboards/handwired/ortho5x14/keymaps/2u/keymap.c b/keyboards/handwired/ortho5x14/keymaps/2u/keymap.c
index cfd176a9d5..568427e52c 100644
--- a/keyboards/handwired/ortho5x14/keymaps/2u/keymap.c
+++ b/keyboards/handwired/ortho5x14/keymaps/2u/keymap.c
@@ -108,11 +108,11 @@ enum {
108// // Alt held down, then use as normal. 108// // Alt held down, then use as normal.
109// 109//
110// Alt tapped, then hold Alt, 110// Alt tapped, then hold Alt,
111int cur_dance (qk_tap_dance_state_t *state); 111int cur_dance (tap_dance_state_t *state);
112void alt_finished (qk_tap_dance_state_t *state, void *user_data); 112void alt_finished (tap_dance_state_t *state, void *user_data);
113void alt_reset (qk_tap_dance_state_t *state, void *user_data); 113void alt_reset (tap_dance_state_t *state, void *user_data);
114 114
115int cur_dance (qk_tap_dance_state_t *state) { 115int cur_dance (tap_dance_state_t *state) {
116 if (state->count == 1) { 116 if (state->count == 1) {
117 if (state->pressed) return SINGLE_HOLD; 117 if (state->pressed) return SINGLE_HOLD;
118 else return SINGLE_TAP; 118 else return SINGLE_TAP;
@@ -133,7 +133,7 @@ static tap alttap_state = {
133 .state = 0 133 .state = 0
134}; 134};
135 135
136void alt_finished (qk_tap_dance_state_t *state, void *user_data) { 136void alt_finished (tap_dance_state_t *state, void *user_data) {
137 alttap_state.state = cur_dance(state); 137 alttap_state.state = cur_dance(state);
138 switch (alttap_state.state) { 138 switch (alttap_state.state) {
139 case SINGLE_TAP: set_oneshot_layer(_ALT, ONESHOT_START); clear_oneshot_layer_state(ONESHOT_PRESSED); break; 139 case SINGLE_TAP: set_oneshot_layer(_ALT, ONESHOT_START); clear_oneshot_layer_state(ONESHOT_PRESSED); break;
@@ -146,7 +146,7 @@ void alt_finished (qk_tap_dance_state_t *state, void *user_data) {
146 } 146 }
147} 147}
148 148
149void alt_reset (qk_tap_dance_state_t *state, void *user_data) { 149void alt_reset (tap_dance_state_t *state, void *user_data) {
150 switch (alttap_state.state) { 150 switch (alttap_state.state) {
151 case SINGLE_TAP: break; 151 case SINGLE_TAP: break;
152 case SINGLE_HOLD: unregister_code(KC_LALT); break; 152 case SINGLE_HOLD: unregister_code(KC_LALT); break;
@@ -157,15 +157,15 @@ void alt_reset (qk_tap_dance_state_t *state, void *user_data) {
157} 157}
158 158
159// Ctrl tapped, then hold Ctrl, 159// Ctrl tapped, then hold Ctrl,
160void ctl_finished (qk_tap_dance_state_t *state, void *user_data); 160void ctl_finished (tap_dance_state_t *state, void *user_data);
161void ctl_reset (qk_tap_dance_state_t *state, void *user_data); 161void ctl_reset (tap_dance_state_t *state, void *user_data);
162 162
163static tap ctltap_state = { 163static tap ctltap_state = {
164 .is_press_action = true, 164 .is_press_action = true,
165 .state = 0 165 .state = 0
166}; 166};
167 167
168void ctl_finished (qk_tap_dance_state_t *state, void *user_data) { 168void ctl_finished (tap_dance_state_t *state, void *user_data) {
169 ctltap_state.state = cur_dance(state); 169 ctltap_state.state = cur_dance(state);
170 switch (ctltap_state.state) { 170 switch (ctltap_state.state) {
171 case SINGLE_TAP: set_oneshot_mods(MOD_BIT(KC_LCTL)); break; 171 case SINGLE_TAP: set_oneshot_mods(MOD_BIT(KC_LCTL)); break;
@@ -176,7 +176,7 @@ void ctl_finished (qk_tap_dance_state_t *state, void *user_data) {
176 } 176 }
177} 177}
178 178
179void ctl_reset (qk_tap_dance_state_t *state, void *user_data) { 179void ctl_reset (tap_dance_state_t *state, void *user_data) {
180 switch (ctltap_state.state) { 180 switch (ctltap_state.state) {
181 case SINGLE_TAP: break; 181 case SINGLE_TAP: break;
182 case SINGLE_HOLD: unregister_code(KC_LCTL); break; 182 case SINGLE_HOLD: unregister_code(KC_LCTL); break;
@@ -189,15 +189,15 @@ void ctl_reset (qk_tap_dance_state_t *state, void *user_data) {
189 189
190 190
191// Layer Down tap dance 191// Layer Down tap dance
192void layerDown_finished (qk_tap_dance_state_t *state, void *user_data); 192void layerDown_finished (tap_dance_state_t *state, void *user_data);
193void layerDown_reset (qk_tap_dance_state_t *state, void *user_data); 193void layerDown_reset (tap_dance_state_t *state, void *user_data);
194 194
195static tap layerdn_tap_state = { 195static tap layerdn_tap_state = {
196 .is_press_action = true, 196 .is_press_action = true,
197 .state = 0 197 .state = 0
198}; 198};
199 199
200void layerDown_finished (qk_tap_dance_state_t *state, void *user_data) { 200void layerDown_finished (tap_dance_state_t *state, void *user_data) {
201 layerdn_tap_state.state = cur_dance(state); 201 layerdn_tap_state.state = cur_dance(state);
202 switch (layerdn_tap_state.state) { 202 switch (layerdn_tap_state.state) {
203 case SINGLE_TAP: break; 203 case SINGLE_TAP: break;
@@ -208,7 +208,7 @@ void layerDown_finished (qk_tap_dance_state_t *state, void *user_data) {
208 } 208 }
209} 209}
210 210
211void layerDown_reset (qk_tap_dance_state_t *state, void *user_data) { 211void layerDown_reset (tap_dance_state_t *state, void *user_data) {
212 switch (layerdn_tap_state.state) { 212 switch (layerdn_tap_state.state) {
213 case SINGLE_TAP: break; 213 case SINGLE_TAP: break;
214 case SINGLE_HOLD: layer_off(_LOWER); break; 214 case SINGLE_HOLD: layer_off(_LOWER); break;
@@ -219,15 +219,15 @@ void layerDown_reset (qk_tap_dance_state_t *state, void *user_data) {
219} 219}
220 220
221// Layer Up tap dance 221// Layer Up tap dance
222void layerUp_finished (qk_tap_dance_state_t *state, void *user_data); 222void layerUp_finished (tap_dance_state_t *state, void *user_data);
223void layerUp_reset (qk_tap_dance_state_t *state, void *user_data); 223void layerUp_reset (tap_dance_state_t *state, void *user_data);
224 224
225static tap layerup_tap_state = { 225static tap layerup_tap_state = {
226 .is_press_action = true, 226 .is_press_action = true,
227 .state = 0 227 .state = 0
228}; 228};
229 229
230void layerUp_finished (qk_tap_dance_state_t *state, void *user_data) { 230void layerUp_finished (tap_dance_state_t *state, void *user_data) {
231 layerup_tap_state.state = cur_dance(state); 231 layerup_tap_state.state = cur_dance(state);
232 switch (layerup_tap_state.state) { 232 switch (layerup_tap_state.state) {
233 case SINGLE_TAP: break; 233 case SINGLE_TAP: break;
@@ -238,7 +238,7 @@ void layerUp_finished (qk_tap_dance_state_t *state, void *user_data) {
238 } 238 }
239} 239}
240 240
241void layerUp_reset (qk_tap_dance_state_t *state, void *user_data) { 241void layerUp_reset (tap_dance_state_t *state, void *user_data) {
242 switch (layerup_tap_state.state) { 242 switch (layerup_tap_state.state) {
243 case SINGLE_TAP: break; 243 case SINGLE_TAP: break;
244 case SINGLE_HOLD: layer_off(_RAISE); break; 244 case SINGLE_HOLD: layer_off(_RAISE); break;
@@ -255,16 +255,16 @@ void layerUp_reset (qk_tap_dance_state_t *state, void *user_data) {
255// Shift tapped, then Capitlize next keystroke only. 255// Shift tapped, then Capitlize next keystroke only.
256// Shift double-tapped, then CAPSLOCK 256// Shift double-tapped, then CAPSLOCK
257// Shift double-tapped again, CAPS UNLOCKED 257// Shift double-tapped again, CAPS UNLOCKED
258// void dance_onshot_lsft(qk_tap_dance_state_t *state, void *user_data) { 258// void dance_onshot_lsft(tap_dance_state_t *state, void *user_data) {
259void lshift_finished (qk_tap_dance_state_t *state, void *user_data); 259void lshift_finished (tap_dance_state_t *state, void *user_data);
260void lshift_reset (qk_tap_dance_state_t *state, void *user_data); 260void lshift_reset (tap_dance_state_t *state, void *user_data);
261 261
262static tap lshifttap_state = { 262static tap lshifttap_state = {
263 .is_press_action = true, 263 .is_press_action = true,
264 .state = 0 264 .state = 0
265}; 265};
266 266
267void lshift_finished (qk_tap_dance_state_t *state, void *user_data) { 267void lshift_finished (tap_dance_state_t *state, void *user_data) {
268 lshifttap_state.state = cur_dance(state); 268 lshifttap_state.state = cur_dance(state);
269 switch (lshifttap_state.state) { 269 switch (lshifttap_state.state) {
270 case SINGLE_TAP: set_oneshot_mods(MOD_BIT(KC_LSFT)); break; 270 case SINGLE_TAP: set_oneshot_mods(MOD_BIT(KC_LSFT)); break;
@@ -274,7 +274,7 @@ void lshift_finished (qk_tap_dance_state_t *state, void *user_data) {
274 } 274 }
275} 275}
276 276
277void lshift_reset (qk_tap_dance_state_t *state, void *user_data) { 277void lshift_reset (tap_dance_state_t *state, void *user_data) {
278 switch (lshifttap_state.state) { 278 switch (lshifttap_state.state) {
279 case SINGLE_TAP: break; 279 case SINGLE_TAP: break;
280 case SINGLE_HOLD: unregister_code(KC_LSFT); break; 280 case SINGLE_HOLD: unregister_code(KC_LSFT); break;
@@ -285,15 +285,15 @@ void lshift_reset (qk_tap_dance_state_t *state, void *user_data) {
285} 285}
286 286
287//TD_LSPACE 287//TD_LSPACE
288void lspace_finished (qk_tap_dance_state_t *state, void *user_data); 288void lspace_finished (tap_dance_state_t *state, void *user_data);
289void lspace_reset (qk_tap_dance_state_t *state, void *user_data); 289void lspace_reset (tap_dance_state_t *state, void *user_data);
290 290
291static tap lspacetap_state = { 291static tap lspacetap_state = {
292 .is_press_action = true, 292 .is_press_action = true,
293 .state = 0 293 .state = 0
294}; 294};
295 295
296void lspace_finished (qk_tap_dance_state_t *state, void *user_data) { 296void lspace_finished (tap_dance_state_t *state, void *user_data) {
297 lspacetap_state.state = cur_dance(state); 297 lspacetap_state.state = cur_dance(state);
298 switch (lspacetap_state.state) { 298 switch (lspacetap_state.state) {
299 case SINGLE_TAP: tap_code (KC_SPACE); break; 299 case SINGLE_TAP: tap_code (KC_SPACE); break;
@@ -303,7 +303,7 @@ void lspace_finished (qk_tap_dance_state_t *state, void *user_data) {
303 } 303 }
304} 304}
305 305
306void lspace_reset (qk_tap_dance_state_t *state, void *user_data) { 306void lspace_reset (tap_dance_state_t *state, void *user_data) {
307 switch (lspacetap_state.state) { 307 switch (lspacetap_state.state) {
308 case SINGLE_TAP: break; 308 case SINGLE_TAP: break;
309 case SINGLE_HOLD: layer_off(_LOWER); break; 309 case SINGLE_HOLD: layer_off(_LOWER); break;
@@ -318,7 +318,7 @@ void lspace_reset (qk_tap_dance_state_t *state, void *user_data) {
318 318
319 319
320//Tap Dance Definitions 320//Tap Dance Definitions
321qk_tap_dance_action_t tap_dance_actions[] = { 321tap_dance_action_t tap_dance_actions[] = {
322 [TD_DEL_BSPC] = ACTION_TAP_DANCE_DOUBLE(KC_DEL, KC_BSPC), 322 [TD_DEL_BSPC] = ACTION_TAP_DANCE_DOUBLE(KC_DEL, KC_BSPC),
323 [TD_ESC_GRAVE] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_GRAVE), 323 [TD_ESC_GRAVE] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_GRAVE),
324 [TD_TAB_TILDE] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_TILDE), 324 [TD_TAB_TILDE] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_TILDE),
diff --git a/keyboards/handwired/ortho5x14/keymaps/default/keymap.c b/keyboards/handwired/ortho5x14/keymaps/default/keymap.c
index 25ae840b79..d3fd18ec4e 100644
--- a/keyboards/handwired/ortho5x14/keymaps/default/keymap.c
+++ b/keyboards/handwired/ortho5x14/keymaps/default/keymap.c
@@ -63,7 +63,7 @@ enum {
63// Shift tapped, then Capitlize next keystroke only. 63// Shift tapped, then Capitlize next keystroke only.
64// Shift double-tapped, then CAPSLOCK 64// Shift double-tapped, then CAPSLOCK
65// Shift double-tapped again, CAPS UNLOCKED 65// Shift double-tapped again, CAPS UNLOCKED
66void dance_onshot_lsft(qk_tap_dance_state_t *state, void *user_data) { 66void dance_onshot_lsft(tap_dance_state_t *state, void *user_data) {
67 switch (state->count) { 67 switch (state->count) {
68 case 1: // => 68 case 1: // =>
69 set_oneshot_mods (MOD_LSFT); 69 set_oneshot_mods (MOD_LSFT);
@@ -76,7 +76,7 @@ void dance_onshot_lsft(qk_tap_dance_state_t *state, void *user_data) {
76} 76}
77 77
78//Tap Dance Definitions 78//Tap Dance Definitions
79qk_tap_dance_action_t tap_dance_actions[] = { 79tap_dance_action_t tap_dance_actions[] = {
80 [TD_DEL_BSPC] = ACTION_TAP_DANCE_DOUBLE(KC_DEL, KC_BSPC), 80 [TD_DEL_BSPC] = ACTION_TAP_DANCE_DOUBLE(KC_DEL, KC_BSPC),
81 [TD_ESC_GRAVE] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_GRAVE), 81 [TD_ESC_GRAVE] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_GRAVE),
82 [TD_TAB_TILDE] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_TILDE), 82 [TD_TAB_TILDE] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_TILDE),
diff --git a/keyboards/handwired/ortho5x14/keymaps/split1/keymap.c b/keyboards/handwired/ortho5x14/keymaps/split1/keymap.c
index a5bb69ef24..733e3f3d4b 100644
--- a/keyboards/handwired/ortho5x14/keymaps/split1/keymap.c
+++ b/keyboards/handwired/ortho5x14/keymaps/split1/keymap.c
@@ -104,11 +104,11 @@ enum {
104// // Alt held down, then use as normal. 104// // Alt held down, then use as normal.
105// 105//
106// Alt tapped, then hold Alt, 106// Alt tapped, then hold Alt,
107int cur_dance (qk_tap_dance_state_t *state); 107int cur_dance (tap_dance_state_t *state);
108void alt_finished (qk_tap_dance_state_t *state, void *user_data); 108void alt_finished (tap_dance_state_t *state, void *user_data);
109void alt_reset (qk_tap_dance_state_t *state, void *user_data); 109void alt_reset (tap_dance_state_t *state, void *user_data);
110 110
111int cur_dance (qk_tap_dance_state_t *state) { 111int cur_dance (tap_dance_state_t *state) {
112 if (state->count == 1) { 112 if (state->count == 1) {
113 if (state->pressed) return SINGLE_HOLD; 113 if (state->pressed) return SINGLE_HOLD;
114 else return SINGLE_TAP; 114 else return SINGLE_TAP;
@@ -129,7 +129,7 @@ static tap alttap_state = {
129 .state = 0 129 .state = 0
130}; 130};
131 131
132void alt_finished (qk_tap_dance_state_t *state, void *user_data) { 132void alt_finished (tap_dance_state_t *state, void *user_data) {
133 alttap_state.state = cur_dance(state); 133 alttap_state.state = cur_dance(state);
134 switch (alttap_state.state) { 134 switch (alttap_state.state) {
135 case SINGLE_TAP: set_oneshot_layer(_ALT, ONESHOT_START); clear_oneshot_layer_state(ONESHOT_PRESSED); break; 135 case SINGLE_TAP: set_oneshot_layer(_ALT, ONESHOT_START); clear_oneshot_layer_state(ONESHOT_PRESSED); break;
@@ -142,7 +142,7 @@ void alt_finished (qk_tap_dance_state_t *state, void *user_data) {
142 } 142 }
143} 143}
144 144
145void alt_reset (qk_tap_dance_state_t *state, void *user_data) { 145void alt_reset (tap_dance_state_t *state, void *user_data) {
146 switch (alttap_state.state) { 146 switch (alttap_state.state) {
147 case SINGLE_TAP: break; 147 case SINGLE_TAP: break;
148 case SINGLE_HOLD: unregister_code(KC_LALT); break; 148 case SINGLE_HOLD: unregister_code(KC_LALT); break;
@@ -153,15 +153,15 @@ void alt_reset (qk_tap_dance_state_t *state, void *user_data) {
153} 153}
154 154
155// Ctrl tapped, then hold Ctrl, 155// Ctrl tapped, then hold Ctrl,
156void ctl_finished (qk_tap_dance_state_t *state, void *user_data); 156void ctl_finished (tap_dance_state_t *state, void *user_data);
157void ctl_reset (qk_tap_dance_state_t *state, void *user_data); 157void ctl_reset (tap_dance_state_t *state, void *user_data);
158 158
159static tap ctltap_state = { 159static tap ctltap_state = {
160 .is_press_action = true, 160 .is_press_action = true,
161 .state = 0 161 .state = 0
162}; 162};
163 163
164void ctl_finished (qk_tap_dance_state_t *state, void *user_data) { 164void ctl_finished (tap_dance_state_t *state, void *user_data) {
165 ctltap_state.state = cur_dance(state); 165 ctltap_state.state = cur_dance(state);
166 switch (ctltap_state.state) { 166 switch (ctltap_state.state) {
167 case SINGLE_TAP: set_oneshot_mods(MOD_BIT(KC_LCTL)); break; 167 case SINGLE_TAP: set_oneshot_mods(MOD_BIT(KC_LCTL)); break;
@@ -174,7 +174,7 @@ void ctl_finished (qk_tap_dance_state_t *state, void *user_data) {
174 } 174 }
175} 175}
176 176
177void ctl_reset (qk_tap_dance_state_t *state, void *user_data) { 177void ctl_reset (tap_dance_state_t *state, void *user_data) {
178 switch (ctltap_state.state) { 178 switch (ctltap_state.state) {
179 case SINGLE_TAP: break; 179 case SINGLE_TAP: break;
180 case SINGLE_HOLD: unregister_code(KC_LCTL); break; 180 case SINGLE_HOLD: unregister_code(KC_LCTL); break;
@@ -186,15 +186,15 @@ void ctl_reset (qk_tap_dance_state_t *state, void *user_data) {
186 186
187 187
188// Layer Down tap dance 188// Layer Down tap dance
189void layerDown_finished (qk_tap_dance_state_t *state, void *user_data); 189void layerDown_finished (tap_dance_state_t *state, void *user_data);
190void layerDown_reset (qk_tap_dance_state_t *state, void *user_data); 190void layerDown_reset (tap_dance_state_t *state, void *user_data);
191 191
192static tap layerdn_tap_state = { 192static tap layerdn_tap_state = {
193 .is_press_action = true, 193 .is_press_action = true,
194 .state = 0 194 .state = 0
195}; 195};
196 196
197void layerDown_finished (qk_tap_dance_state_t *state, void *user_data) { 197void layerDown_finished (tap_dance_state_t *state, void *user_data) {
198 layerdn_tap_state.state = cur_dance(state); 198 layerdn_tap_state.state = cur_dance(state);
199 switch (layerdn_tap_state.state) { 199 switch (layerdn_tap_state.state) {
200 case SINGLE_TAP: break; 200 case SINGLE_TAP: break;
@@ -204,7 +204,7 @@ void layerDown_finished (qk_tap_dance_state_t *state, void *user_data) {
204 } 204 }
205} 205}
206 206
207void layerDown_reset (qk_tap_dance_state_t *state, void *user_data) { 207void layerDown_reset (tap_dance_state_t *state, void *user_data) {
208 switch (layerdn_tap_state.state) { 208 switch (layerdn_tap_state.state) {
209 case SINGLE_TAP: break; 209 case SINGLE_TAP: break;
210 case SINGLE_HOLD: layer_off(_LOWER); break; 210 case SINGLE_HOLD: layer_off(_LOWER); break;
@@ -222,16 +222,16 @@ void layerDown_reset (qk_tap_dance_state_t *state, void *user_data) {
222// Shift tapped, then Capitlize next keystroke only. 222// Shift tapped, then Capitlize next keystroke only.
223// Shift double-tapped, then CAPSLOCK 223// Shift double-tapped, then CAPSLOCK
224// Shift double-tapped again, CAPS UNLOCKED 224// Shift double-tapped again, CAPS UNLOCKED
225// void dance_onshot_lsft(qk_tap_dance_state_t *state, void *user_data) { 225// void dance_onshot_lsft(tap_dance_state_t *state, void *user_data) {
226void lshift_finished (qk_tap_dance_state_t *state, void *user_data); 226void lshift_finished (tap_dance_state_t *state, void *user_data);
227void lshift_reset (qk_tap_dance_state_t *state, void *user_data); 227void lshift_reset (tap_dance_state_t *state, void *user_data);
228 228
229static tap lshifttap_state = { 229static tap lshifttap_state = {
230 .is_press_action = true, 230 .is_press_action = true,
231 .state = 0 231 .state = 0
232}; 232};
233 233
234void lshift_finished (qk_tap_dance_state_t *state, void *user_data) { 234void lshift_finished (tap_dance_state_t *state, void *user_data) {
235 lshifttap_state.state = cur_dance(state); 235 lshifttap_state.state = cur_dance(state);
236 switch (lshifttap_state.state) { 236 switch (lshifttap_state.state) {
237 case SINGLE_TAP: set_oneshot_mods(MOD_BIT(KC_LSFT)); break; 237 case SINGLE_TAP: set_oneshot_mods(MOD_BIT(KC_LSFT)); break;
@@ -241,7 +241,7 @@ void lshift_finished (qk_tap_dance_state_t *state, void *user_data) {
241 } 241 }
242} 242}
243 243
244void lshift_reset (qk_tap_dance_state_t *state, void *user_data) { 244void lshift_reset (tap_dance_state_t *state, void *user_data) {
245 switch (lshifttap_state.state) { 245 switch (lshifttap_state.state) {
246 case SINGLE_TAP: break; 246 case SINGLE_TAP: break;
247 case SINGLE_HOLD: unregister_code(KC_LSFT); break; 247 case SINGLE_HOLD: unregister_code(KC_LSFT); break;
@@ -254,7 +254,7 @@ void lshift_reset (qk_tap_dance_state_t *state, void *user_data) {
254 254
255 255
256//Tap Dance Definitions 256//Tap Dance Definitions
257qk_tap_dance_action_t tap_dance_actions[] = { 257tap_dance_action_t tap_dance_actions[] = {
258 [TD_DEL_BSPC] = ACTION_TAP_DANCE_DOUBLE(KC_DEL, KC_BSPC), 258 [TD_DEL_BSPC] = ACTION_TAP_DANCE_DOUBLE(KC_DEL, KC_BSPC),
259 [TD_ESC_GRAVE] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_GRAVE), 259 [TD_ESC_GRAVE] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_GRAVE),
260 [TD_TAB_TILDE] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_TILDE), 260 [TD_TAB_TILDE] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_TILDE),
diff --git a/keyboards/handwired/space_oddity/keymaps/default/keymap.c b/keyboards/handwired/space_oddity/keymaps/default/keymap.c
index 4e8ee5ddca..5b61482344 100644
--- a/keyboards/handwired/space_oddity/keymaps/default/keymap.c
+++ b/keyboards/handwired/space_oddity/keymaps/default/keymap.c
@@ -35,7 +35,7 @@ enum {
35}; 35};
36 36
37// Tap dance actions - double tap for Caps Lock. 37// Tap dance actions - double tap for Caps Lock.
38qk_tap_dance_action_t tap_dance_actions[] = { 38tap_dance_action_t tap_dance_actions[] = {
39 39
40 [SFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), 40 [SFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
41 41
diff --git a/keyboards/hub16/keymaps/macro/keymap.c b/keyboards/hub16/keymaps/macro/keymap.c
index 1da30d564f..5200cf35dd 100755
--- a/keyboards/hub16/keymaps/macro/keymap.c
+++ b/keyboards/hub16/keymaps/macro/keymap.c
@@ -25,11 +25,11 @@ enum keyboard_layers{
25}; 25};
26 26
27// Tap Dance Declarations 27// Tap Dance Declarations
28void td_ctrl (qk_tap_dance_state_t *state, void *user_data); 28void td_ctrl (tap_dance_state_t *state, void *user_data);
29 29
30enum tap_dance { CTRL = 0, BASE = 1 }; 30enum tap_dance { CTRL = 0, BASE = 1 };
31 31
32qk_tap_dance_action_t tap_dance_actions[] = { 32tap_dance_action_t tap_dance_actions[] = {
33 // Tap once for standard key on base layer, twice to toggle to control layer 33 // Tap once for standard key on base layer, twice to toggle to control layer
34 [CTRL] = ACTION_TAP_DANCE_FN(td_ctrl), 34 [CTRL] = ACTION_TAP_DANCE_FN(td_ctrl),
35 [BASE] = ACTION_TAP_DANCE_LAYER_MOVE(_______, _BASE)}; 35 [BASE] = ACTION_TAP_DANCE_LAYER_MOVE(_______, _BASE)};
@@ -105,7 +105,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
105 105
106// Below works around TD() not running key press through process_record_user. 106// Below works around TD() not running key press through process_record_user.
107// Fixes bug of CTRL layer move key not being wrapped in by modifier on single tap 107// Fixes bug of CTRL layer move key not being wrapped in by modifier on single tap
108void td_ctrl (qk_tap_dance_state_t *state, void *user_data) { 108void td_ctrl (tap_dance_state_t *state, void *user_data) {
109 if (state->count == 1) { 109 if (state->count == 1) {
110 register_code(KC_WRAP); 110 register_code(KC_WRAP);
111 tap_code(KC_P); 111 tap_code(KC_P);
diff --git a/keyboards/hub20/keymaps/macro/keymap.c b/keyboards/hub20/keymaps/macro/keymap.c
index 5fb1891ea7..c9e735d389 100644
--- a/keyboards/hub20/keymaps/macro/keymap.c
+++ b/keyboards/hub20/keymaps/macro/keymap.c
@@ -25,14 +25,14 @@ enum keyboard_layers{
25}; 25};
26 26
27// Tap Dance stuff 27// Tap Dance stuff
28void td_ctrl (qk_tap_dance_state_t *state, void *user_data); 28void td_ctrl (tap_dance_state_t *state, void *user_data);
29 29
30enum tap_dance { 30enum tap_dance {
31 CTRL = 0, 31 CTRL = 0,
32 BASE = 1 32 BASE = 1
33}; 33};
34 34
35qk_tap_dance_action_t tap_dance_actions[] = { 35tap_dance_action_t tap_dance_actions[] = {
36 // Tap once for standard key, twice to toggle layers 36 // Tap once for standard key, twice to toggle layers
37 [CTRL] = ACTION_TAP_DANCE_FN(td_ctrl), 37 [CTRL] = ACTION_TAP_DANCE_FN(td_ctrl),
38 [BASE] = ACTION_TAP_DANCE_LAYER_MOVE(_______, _BASE) 38 [BASE] = ACTION_TAP_DANCE_LAYER_MOVE(_______, _BASE)
@@ -110,7 +110,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
110} 110}
111 111
112// Below works around TD() not running key press through process_record_user 112// Below works around TD() not running key press through process_record_user
113void td_ctrl (qk_tap_dance_state_t *state, void *user_data) { 113void td_ctrl (tap_dance_state_t *state, void *user_data) {
114 if (state->count == 1) { 114 if (state->count == 1) {
115 register_code(KC_WRAP); 115 register_code(KC_WRAP);
116 tap_code(KC_D); 116 tap_code(KC_D);
diff --git a/keyboards/idobao/id75/keymaps/egstad/keymap.c b/keyboards/idobao/id75/keymaps/egstad/keymap.c
index 99f358da0f..43d26f9b86 100644
--- a/keyboards/idobao/id75/keymaps/egstad/keymap.c
+++ b/keyboards/idobao/id75/keymaps/egstad/keymap.c
@@ -61,7 +61,7 @@ enum {
61}; 61};
62 62
63// Tap Dance Definitions 63// Tap Dance Definitions
64qk_tap_dance_action_t tap_dance_actions[] = { 64tap_dance_action_t tap_dance_actions[] = {
65 // Tap once for Left Brace, twice for Right Brace 65 // Tap once for Left Brace, twice for Right Brace
66 [TD_BRC] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_RBRC), 66 [TD_BRC] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_RBRC),
67 //Tap once for Minus, twice for Equal 67 //Tap once for Minus, twice for Equal
diff --git a/keyboards/jones/v03/keymaps/default_jp/keymap.c b/keyboards/jones/v03/keymaps/default_jp/keymap.c
index ae618ee0bc..dd7e878170 100644
--- a/keyboards/jones/v03/keymaps/default_jp/keymap.c
+++ b/keyboards/jones/v03/keymaps/default_jp/keymap.c
@@ -43,13 +43,13 @@ enum {
43 43
44// Declare the functions to be used with your tap dance key(s) 44// Declare the functions to be used with your tap dance key(s)
45// Function associated with all tap dances 45// Function associated with all tap dances
46uint8_t cur_dance(qk_tap_dance_state_t *state); 46uint8_t cur_dance(tap_dance_state_t *state);
47// Functions associated with individual tap dances 47// Functions associated with individual tap dances
48void ql_finished(qk_tap_dance_state_t *state, void *user_data); 48void ql_finished(tap_dance_state_t *state, void *user_data);
49void ql_reset(qk_tap_dance_state_t *state, void *user_data); 49void ql_reset(tap_dance_state_t *state, void *user_data);
50 50
51// Tap Dance definitions 51// Tap Dance definitions
52qk_tap_dance_action_t tap_dance_actions[] = { 52tap_dance_action_t tap_dance_actions[] = {
53 [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), 53 [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
54 [TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset), 54 [TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset),
55}; 55};
@@ -279,7 +279,7 @@ typedef struct {
279} tap; 279} tap;
280 280
281// Determine the current tap dance state 281// Determine the current tap dance state
282uint8_t cur_dance(qk_tap_dance_state_t *state) { 282uint8_t cur_dance(tap_dance_state_t *state) {
283 if (state->count == 1) { 283 if (state->count == 1) {
284 if (!state->pressed) { 284 if (!state->pressed) {
285 return SINGLE_TAP; 285 return SINGLE_TAP;
@@ -310,7 +310,7 @@ static tap ql_tap_state = {
310}; 310};
311 311
312// Functions that control what our tap dance key does 312// Functions that control what our tap dance key does
313void ql_finished(qk_tap_dance_state_t *state, void *user_data) { 313void ql_finished(tap_dance_state_t *state, void *user_data) {
314 ql_tap_state.state = cur_dance(state); 314 ql_tap_state.state = cur_dance(state);
315 switch(TAP_DANCE_KEYCODE(state)) { 315 switch(TAP_DANCE_KEYCODE(state)) {
316 case TD(TD_ESC_NUM): // ESC key action 316 case TD(TD_ESC_NUM): // ESC key action
@@ -340,7 +340,7 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
340 } 340 }
341} 341}
342 342
343void ql_reset(qk_tap_dance_state_t *state, void *user_data) { 343void ql_reset(tap_dance_state_t *state, void *user_data) {
344 switch(TAP_DANCE_KEYCODE(state)) { 344 switch(TAP_DANCE_KEYCODE(state)) {
345 case TD(TD_ESC_NUM): 345 case TD(TD_ESC_NUM):
346 // If the key was held down and now is released then switch off the layer 346 // If the key was held down and now is released then switch off the layer
diff --git a/keyboards/jones/v03_1/keymaps/default_ansi/keymap.c b/keyboards/jones/v03_1/keymaps/default_ansi/keymap.c
index 962acc1810..3c11d5dc90 100644
--- a/keyboards/jones/v03_1/keymaps/default_ansi/keymap.c
+++ b/keyboards/jones/v03_1/keymaps/default_ansi/keymap.c
@@ -42,13 +42,13 @@ enum {
42 42
43// Declare the functions to be used with your tap dance key(s) 43// Declare the functions to be used with your tap dance key(s)
44// Function associated with all tap dances 44// Function associated with all tap dances
45uint8_t cur_dance(qk_tap_dance_state_t *state); 45uint8_t cur_dance(tap_dance_state_t *state);
46// Functions associated with individual tap dances 46// Functions associated with individual tap dances
47void ql_finished(qk_tap_dance_state_t *state, void *user_data); 47void ql_finished(tap_dance_state_t *state, void *user_data);
48void ql_reset(qk_tap_dance_state_t *state, void *user_data); 48void ql_reset(tap_dance_state_t *state, void *user_data);
49 49
50// Tap Dance definitions 50// Tap Dance definitions
51qk_tap_dance_action_t tap_dance_actions[] = { 51tap_dance_action_t tap_dance_actions[] = {
52 [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), 52 [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
53 [TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset), 53 [TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset),
54}; 54};
@@ -298,7 +298,7 @@ typedef struct {
298} tap; 298} tap;
299 299
300// Determine the current tap dance state 300// Determine the current tap dance state
301uint8_t cur_dance(qk_tap_dance_state_t *state) { 301uint8_t cur_dance(tap_dance_state_t *state) {
302 if (state->count == 1) { 302 if (state->count == 1) {
303 if (!state->pressed) { 303 if (!state->pressed) {
304 return SINGLE_TAP; 304 return SINGLE_TAP;
@@ -329,7 +329,7 @@ static tap ql_tap_state = {
329}; 329};
330 330
331// Functions that control what our tap dance key does 331// Functions that control what our tap dance key does
332void ql_finished(qk_tap_dance_state_t *state, void *user_data) { 332void ql_finished(tap_dance_state_t *state, void *user_data) {
333 ql_tap_state.state = cur_dance(state); 333 ql_tap_state.state = cur_dance(state);
334 switch(TAP_DANCE_KEYCODE(state)) { 334 switch(TAP_DANCE_KEYCODE(state)) {
335 case TD(TD_ESC_NUM): // ESC key action 335 case TD(TD_ESC_NUM): // ESC key action
@@ -359,7 +359,7 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
359 } 359 }
360} 360}
361 361
362void ql_reset(qk_tap_dance_state_t *state, void *user_data) { 362void ql_reset(tap_dance_state_t *state, void *user_data) {
363 switch(TAP_DANCE_KEYCODE(state)) { 363 switch(TAP_DANCE_KEYCODE(state)) {
364 case TD(TD_ESC_NUM): 364 case TD(TD_ESC_NUM):
365 // If the key was held down and now is released then switch off the layer 365 // If the key was held down and now is released then switch off the layer
diff --git a/keyboards/jones/v03_1/keymaps/default_jp/keymap.c b/keyboards/jones/v03_1/keymaps/default_jp/keymap.c
index 6e06dfe897..9d7aa50960 100644
--- a/keyboards/jones/v03_1/keymaps/default_jp/keymap.c
+++ b/keyboards/jones/v03_1/keymaps/default_jp/keymap.c
@@ -43,13 +43,13 @@ enum {
43 43
44// Declare the functions to be used with your tap dance key(s) 44// Declare the functions to be used with your tap dance key(s)
45// Function associated with all tap dances 45// Function associated with all tap dances
46uint8_t cur_dance(qk_tap_dance_state_t *state); 46uint8_t cur_dance(tap_dance_state_t *state);
47// Functions associated with individual tap dances 47// Functions associated with individual tap dances
48void ql_finished(qk_tap_dance_state_t *state, void *user_data); 48void ql_finished(tap_dance_state_t *state, void *user_data);
49void ql_reset(qk_tap_dance_state_t *state, void *user_data); 49void ql_reset(tap_dance_state_t *state, void *user_data);
50 50
51// Tap Dance definitions 51// Tap Dance definitions
52qk_tap_dance_action_t tap_dance_actions[] = { 52tap_dance_action_t tap_dance_actions[] = {
53 [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), 53 [TD_LSFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
54 [TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset), 54 [TD_ESC_NUM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ql_finished, ql_reset),
55}; 55};
@@ -300,7 +300,7 @@ typedef struct {
300} tap; 300} tap;
301 301
302// Determine the current tap dance state 302// Determine the current tap dance state
303uint8_t cur_dance(qk_tap_dance_state_t *state) { 303uint8_t cur_dance(tap_dance_state_t *state) {
304 if (state->count == 1) { 304 if (state->count == 1) {
305 if (!state->pressed) { 305 if (!state->pressed) {
306 return SINGLE_TAP; 306 return SINGLE_TAP;
@@ -331,7 +331,7 @@ static tap ql_tap_state = {
331}; 331};
332 332
333// Functions that control what our tap dance key does 333// Functions that control what our tap dance key does
334void ql_finished(qk_tap_dance_state_t *state, void *user_data) { 334void ql_finished(tap_dance_state_t *state, void *user_data) {
335 ql_tap_state.state = cur_dance(state); 335 ql_tap_state.state = cur_dance(state);
336 switch(TAP_DANCE_KEYCODE(state)) { 336 switch(TAP_DANCE_KEYCODE(state)) {
337 case TD(TD_ESC_NUM): // ESC key action 337 case TD(TD_ESC_NUM): // ESC key action
@@ -361,7 +361,7 @@ void ql_finished(qk_tap_dance_state_t *state, void *user_data) {
361 } 361 }
362} 362}
363 363
364void ql_reset(qk_tap_dance_state_t *state, void *user_data) { 364void ql_reset(tap_dance_state_t *state, void *user_data) {
365 switch(TAP_DANCE_KEYCODE(state)) { 365 switch(TAP_DANCE_KEYCODE(state)) {
366 case TD(TD_ESC_NUM): 366 case TD(TD_ESC_NUM):
367 // If the key was held down and now is released then switch off the layer 367 // If the key was held down and now is released then switch off the layer
diff --git a/keyboards/kbdfans/kbd67/mkii_soldered/keymaps/adamdehaven/keymap.c b/keyboards/kbdfans/kbd67/mkii_soldered/keymaps/adamdehaven/keymap.c
index 53f3b83d3a..637ea3e2c8 100644
--- a/keyboards/kbdfans/kbd67/mkii_soldered/keymaps/adamdehaven/keymap.c
+++ b/keyboards/kbdfans/kbd67/mkii_soldered/keymaps/adamdehaven/keymap.c
@@ -14,7 +14,7 @@ enum tapdance {
14 TD_END 14 TD_END
15}; 15};
16 16
17qk_tap_dance_action_t tap_dance_actions[] = { 17tap_dance_action_t tap_dance_actions[] = {
18 // Tap once for Home, twice for PageUp 18 // Tap once for Home, twice for PageUp
19 [TD_HOME] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_PGUP), 19 [TD_HOME] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_PGUP),
20 // Tap once for End, twice for PageDown 20 // Tap once for End, twice for PageDown
diff --git a/keyboards/kbdfans/kbd6x/keymaps/othi/keymap.c b/keyboards/kbdfans/kbd6x/keymaps/othi/keymap.c
index e822b39276..d748a2f736 100644
--- a/keyboards/kbdfans/kbd6x/keymaps/othi/keymap.c
+++ b/keyboards/kbdfans/kbd6x/keymaps/othi/keymap.c
@@ -66,7 +66,7 @@ enum {
66 GUI_NM = 3 66 GUI_NM = 3
67}; 67};
68 68
69void dance_CTL_NM_finished (qk_tap_dance_state_t *state, void *user_data) { 69void dance_CTL_NM_finished (tap_dance_state_t *state, void *user_data) {
70 if (state->count == 1) { 70 if (state->count == 1) {
71 set_oneshot_mods(MOD_LCTL); 71 set_oneshot_mods(MOD_LCTL);
72 } else { 72 } else {
@@ -75,7 +75,7 @@ void dance_CTL_NM_finished (qk_tap_dance_state_t *state, void *user_data) {
75 } 75 }
76} 76}
77 77
78void dance_CTL_NM_reset (qk_tap_dance_state_t *state, void *user_data) { 78void dance_CTL_NM_reset (tap_dance_state_t *state, void *user_data) {
79 if (state->count == 1) { 79 if (state->count == 1) {
80 unregister_code (KC_LCTL); 80 unregister_code (KC_LCTL);
81 } else { 81 } else {
@@ -84,7 +84,7 @@ void dance_CTL_NM_reset (qk_tap_dance_state_t *state, void *user_data) {
84 } 84 }
85} 85}
86 86
87void dance_GUI_NM_finished (qk_tap_dance_state_t *state, void *user_data) { 87void dance_GUI_NM_finished (tap_dance_state_t *state, void *user_data) {
88 if (state->count == 1) { 88 if (state->count == 1) {
89 register_code (KC_LGUI); 89 register_code (KC_LGUI);
90 } else { 90 } else {
@@ -93,7 +93,7 @@ void dance_GUI_NM_finished (qk_tap_dance_state_t *state, void *user_data) {
93 } 93 }
94} 94}
95 95
96void dance_GUI_NM_reset (qk_tap_dance_state_t *state, void *user_data) { 96void dance_GUI_NM_reset (tap_dance_state_t *state, void *user_data) {
97 if (state->count == 1) { 97 if (state->count == 1) {
98 unregister_code (KC_LGUI); 98 unregister_code (KC_LGUI);
99 } else { 99 } else {
@@ -102,7 +102,7 @@ void dance_GUI_NM_reset (qk_tap_dance_state_t *state, void *user_data) {
102 } 102 }
103} 103}
104 104
105void dance_ALT_NM_finished (qk_tap_dance_state_t *state, void *user_data) { 105void dance_ALT_NM_finished (tap_dance_state_t *state, void *user_data) {
106 if (state->count == 1) { 106 if (state->count == 1) {
107 register_code (KC_LALT); 107 register_code (KC_LALT);
108 } else { 108 } else {
@@ -111,7 +111,7 @@ void dance_ALT_NM_finished (qk_tap_dance_state_t *state, void *user_data) {
111 } 111 }
112} 112}
113 113
114void dance_ALT_NM_reset (qk_tap_dance_state_t *state, void *user_data) { 114void dance_ALT_NM_reset (tap_dance_state_t *state, void *user_data) {
115 if (state->count == 1) { 115 if (state->count == 1) {
116 unregister_code (KC_LALT); 116 unregister_code (KC_LALT);
117 } else { 117 } else {
@@ -120,7 +120,7 @@ void dance_ALT_NM_reset (qk_tap_dance_state_t *state, void *user_data) {
120 } 120 }
121} 121}
122 122
123void dance_SFT_NM_finished (qk_tap_dance_state_t *state, void *user_data) { 123void dance_SFT_NM_finished (tap_dance_state_t *state, void *user_data) {
124 if (state->count == 1) { 124 if (state->count == 1) {
125 register_code (KC_LSFT); 125 register_code (KC_LSFT);
126 set_oneshot_mods(MOD_LSFT); 126 set_oneshot_mods(MOD_LSFT);
@@ -130,7 +130,7 @@ void dance_SFT_NM_finished (qk_tap_dance_state_t *state, void *user_data) {
130 } 130 }
131} 131}
132 132
133void dance_SFT_NM_reset (qk_tap_dance_state_t *state, void *user_data) { 133void dance_SFT_NM_reset (tap_dance_state_t *state, void *user_data) {
134 if (state->count == 1) { 134 if (state->count == 1) {
135 unregister_code (KC_LSFT); 135 unregister_code (KC_LSFT);
136 } else { 136 } else {
@@ -140,7 +140,7 @@ void dance_SFT_NM_reset (qk_tap_dance_state_t *state, void *user_data) {
140} 140}
141 141
142 142
143qk_tap_dance_action_t tap_dance_actions[] = { 143tap_dance_action_t tap_dance_actions[] = {
144 [CTL_NM] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_CTL_NM_finished, dance_CTL_NM_reset), 144 [CTL_NM] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_CTL_NM_finished, dance_CTL_NM_reset),
145 [GUI_NM] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_GUI_NM_finished, dance_GUI_NM_reset), 145 [GUI_NM] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_GUI_NM_finished, dance_GUI_NM_reset),
146 [ALT_NM] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_ALT_NM_finished, dance_ALT_NM_reset), 146 [ALT_NM] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_ALT_NM_finished, dance_ALT_NM_reset),
diff --git a/keyboards/kbdfans/kbd75/keymaps/adamdehaven/keymap.c b/keyboards/kbdfans/kbd75/keymaps/adamdehaven/keymap.c
index 9bd91eade0..398f90c6d7 100644
--- a/keyboards/kbdfans/kbd75/keymaps/adamdehaven/keymap.c
+++ b/keyboards/kbdfans/kbd75/keymaps/adamdehaven/keymap.c
@@ -44,7 +44,7 @@ enum tapdance {
44 TD_PGDN 44 TD_PGDN
45}; 45};
46 46
47qk_tap_dance_action_t tap_dance_actions[] = { 47tap_dance_action_t tap_dance_actions[] = {
48 // Tap once for PageUp, twice for Home 48 // Tap once for PageUp, twice for Home
49 [TD_PGUP] = ACTION_TAP_DANCE_DOUBLE(KC_PGUP, KC_HOME), 49 [TD_PGUP] = ACTION_TAP_DANCE_DOUBLE(KC_PGUP, KC_HOME),
50 // Tap once for PageDown, twice for End 50 // Tap once for PageDown, twice for End
diff --git a/keyboards/kbdfans/kbd75/keymaps/noroadsleft/keymap.c b/keyboards/kbdfans/kbd75/keymaps/noroadsleft/keymap.c
index 479a52454b..f1a08c2edd 100644
--- a/keyboards/kbdfans/kbd75/keymaps/noroadsleft/keymap.c
+++ b/keyboards/kbdfans/kbd75/keymaps/noroadsleft/keymap.c
@@ -31,7 +31,7 @@ enum tap_dances {
31}; 31};
32 32
33// Tap Dance definitions 33// Tap Dance definitions
34qk_tap_dance_action_t tap_dance_actions[] = { 34tap_dance_action_t tap_dance_actions[] = {
35 // Tap once for Escape, twice for Caps Lock 35 // Tap once for Escape, twice for Caps Lock
36 [LAG] = ACTION_TAP_DANCE_DOUBLE(KC_LALT, KC_LGUI), 36 [LAG] = ACTION_TAP_DANCE_DOUBLE(KC_LALT, KC_LGUI),
37 [RAG] = ACTION_TAP_DANCE_DOUBLE(KC_RALT, KC_RGUI), 37 [RAG] = ACTION_TAP_DANCE_DOUBLE(KC_RALT, KC_RGUI),
diff --git a/keyboards/kbdfans/kbdpad/mk2/keymaps/iracing_replay/keymap.c b/keyboards/kbdfans/kbdpad/mk2/keymaps/iracing_replay/keymap.c
index 5fb451f467..5bbd8666ae 100644
--- a/keyboards/kbdfans/kbdpad/mk2/keymaps/iracing_replay/keymap.c
+++ b/keyboards/kbdfans/kbdpad/mk2/keymaps/iracing_replay/keymap.c
@@ -51,7 +51,7 @@ void camera_number(uint16_t tens, uint16_t ones) {
51 tap_code(KC_ENT); 51 tap_code(KC_ENT);
52} 52}
53 53
54void cam_up(qk_tap_dance_state_t *state, void *user_data) { 54void cam_up(tap_dance_state_t *state, void *user_data) {
55 switch (state->count) { 55 switch (state->count) {
56 case 1: 56 case 1:
57 tap_code(KC_C); // tap once for next cam 57 tap_code(KC_C); // tap once for next cam
@@ -62,7 +62,7 @@ void cam_up(qk_tap_dance_state_t *state, void *user_data) {
62 } 62 }
63} 63}
64 64
65void cam_down(qk_tap_dance_state_t *state, void *user_data) { 65void cam_down(tap_dance_state_t *state, void *user_data) {
66 switch (state->count) { 66 switch (state->count) {
67 case 1: 67 case 1:
68 tap_code16(LSFT(KC_C)); // tap once for prev cam 68 tap_code16(LSFT(KC_C)); // tap once for prev cam
@@ -74,7 +74,7 @@ void cam_down(qk_tap_dance_state_t *state, void *user_data) {
74} 74}
75 75
76// Tap Dance definitions 76// Tap Dance definitions
77qk_tap_dance_action_t tap_dance_actions[] = { 77tap_dance_action_t tap_dance_actions[] = {
78 [TD_CAR] = ACTION_TAP_DANCE_DOUBLE( 78 [TD_CAR] = ACTION_TAP_DANCE_DOUBLE(
79 LSFT(KC_V), // tap once for prev car 79 LSFT(KC_V), // tap once for prev car
80 LCTL(KC_V) // tap twice for my car 80 LCTL(KC_V) // tap twice for my car
diff --git a/keyboards/keebio/bdn9/keymaps/brandonschlack/keymap.c b/keyboards/keebio/bdn9/keymaps/brandonschlack/keymap.c
index c581070895..afe150cc60 100644
--- a/keyboards/keebio/bdn9/keymaps/brandonschlack/keymap.c
+++ b/keyboards/keebio/bdn9/keymaps/brandonschlack/keymap.c
@@ -57,7 +57,7 @@ enum bdn9_dances {
57 TD_DTAP_ADJT 57 TD_DTAP_ADJT
58}; 58};
59// Tap Dance Definitions 59// Tap Dance Definitions
60qk_tap_dance_action_t tap_dance_actions[] = { 60tap_dance_action_t tap_dance_actions[] = {
61 [TD_DTAP_ADIO] = ACTION_TAP_DANCE_TRIGGER_LAYER(DOUBLE_TAP, _AUDIO), 61 [TD_DTAP_ADIO] = ACTION_TAP_DANCE_TRIGGER_LAYER(DOUBLE_TAP, _AUDIO),
62 [TD_DTAP_LGHT] = ACTION_TAP_DANCE_TRIGGER_LAYER(DOUBLE_TAP, _LIGHT), 62 [TD_DTAP_LGHT] = ACTION_TAP_DANCE_TRIGGER_LAYER(DOUBLE_TAP, _LIGHT),
63 [TD_DTAP_ADJT] = ACTION_TAP_DANCE_TRIGGER_LAYER(DOUBLE_TAP, _ADJUST), 63 [TD_DTAP_ADJT] = ACTION_TAP_DANCE_TRIGGER_LAYER(DOUBLE_TAP, _ADJUST),
diff --git a/keyboards/keebio/bdn9/keymaps/eosti/keymap.c b/keyboards/keebio/bdn9/keymaps/eosti/keymap.c
index b37e2a1cdb..970cd6d6e7 100644
--- a/keyboards/keebio/bdn9/keymaps/eosti/keymap.c
+++ b/keyboards/keebio/bdn9/keymaps/eosti/keymap.c
@@ -48,11 +48,11 @@ static td_state_t td_state;
48// declare your tapdance functions: 48// declare your tapdance functions:
49 49
50// function to determine the current tapdance state 50// function to determine the current tapdance state
51int cur_dance (qk_tap_dance_state_t *state); 51int cur_dance (tap_dance_state_t *state);
52 52
53// `finished` and `reset` functions for each tapdance keycode 53// `finished` and `reset` functions for each tapdance keycode
54void altlp_finished (qk_tap_dance_state_t *state, void *user_data); 54void altlp_finished (tap_dance_state_t *state, void *user_data);
55void altlp_reset (qk_tap_dance_state_t *state, void *user_data); 55void altlp_reset (tap_dance_state_t *state, void *user_data);
56 56
57bool process_record_user(uint16_t keycode, keyrecord_t *record) { 57bool process_record_user(uint16_t keycode, keyrecord_t *record) {
58 switch (keycode) { 58 switch (keycode) {
@@ -137,7 +137,7 @@ bool encoder_update_user(uint8_t index, bool clockwise) {
137// Tapdance! Hold to use as a modifier to the _MOD layout, tap to change it between _BASE and _MACRO 137// Tapdance! Hold to use as a modifier to the _MOD layout, tap to change it between _BASE and _MACRO
138 138
139// determine the tapdance state to return 139// determine the tapdance state to return
140int cur_dance (qk_tap_dance_state_t *state) { 140int cur_dance (tap_dance_state_t *state) {
141 if (state->count == 1) { 141 if (state->count == 1) {
142 if (state->interrupted || !state->pressed) { return SINGLE_TAP; } 142 if (state->interrupted || !state->pressed) { return SINGLE_TAP; }
143 else { return SINGLE_HOLD; } 143 else { return SINGLE_HOLD; }
@@ -146,7 +146,7 @@ int cur_dance (qk_tap_dance_state_t *state) {
146 146
147// handle the possible states for each tapdance keycode you define: 147// handle the possible states for each tapdance keycode you define:
148 148
149void altlp_finished (qk_tap_dance_state_t *state, void *user_data) { 149void altlp_finished (tap_dance_state_t *state, void *user_data) {
150 td_state = cur_dance(state); 150 td_state = cur_dance(state);
151 switch (td_state) { 151 switch (td_state) {
152 case SINGLE_TAP: 152 case SINGLE_TAP:
@@ -158,7 +158,7 @@ void altlp_finished (qk_tap_dance_state_t *state, void *user_data) {
158 } 158 }
159} 159}
160 160
161void altlp_reset (qk_tap_dance_state_t *state, void *user_data) { 161void altlp_reset (tap_dance_state_t *state, void *user_data) {
162 switch (td_state) { 162 switch (td_state) {
163 case SINGLE_TAP: 163 case SINGLE_TAP:
164 break; 164 break;
@@ -169,6 +169,6 @@ void altlp_reset (qk_tap_dance_state_t *state, void *user_data) {
169} 169}
170 170
171// define `ACTION_TAP_DANCE_FN_ADVANCED()` for each tapdance keycode, passing in `finished` and `reset` functions 171// define `ACTION_TAP_DANCE_FN_ADVANCED()` for each tapdance keycode, passing in `finished` and `reset` functions
172qk_tap_dance_action_t tap_dance_actions[] = { 172tap_dance_action_t tap_dance_actions[] = {
173 [LAY] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altlp_finished, altlp_reset) 173 [LAY] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altlp_finished, altlp_reset)
174}; 174};
diff --git a/keyboards/keebio/bfo9000/keymaps/insertsnideremarks/keymap.c b/keyboards/keebio/bfo9000/keymaps/insertsnideremarks/keymap.c
index 1795d55c62..9831a35a5c 100644
--- a/keyboards/keebio/bfo9000/keymaps/insertsnideremarks/keymap.c
+++ b/keyboards/keebio/bfo9000/keymaps/insertsnideremarks/keymap.c
@@ -47,20 +47,20 @@ enum {
47 PSLPAS 47 PSLPAS
48}; 48};
49 49
50void dance_LAYER_finished(qk_tap_dance_state_t *state, void *user_data) { 50void dance_LAYER_finished(tap_dance_state_t *state, void *user_data) {
51 if (state->count == 2) { 51 if (state->count == 2) {
52 layer_on(_ADJUST2); 52 layer_on(_ADJUST2);
53 set_oneshot_layer(_ADJUST2, ONESHOT_START); 53 set_oneshot_layer(_ADJUST2, ONESHOT_START);
54 } 54 }
55} 55}
56void dance_LAYER_reset(qk_tap_dance_state_t *state, void *user_data) { 56void dance_LAYER_reset(tap_dance_state_t *state, void *user_data) {
57 if (state->count == 2) { 57 if (state->count == 2) {
58 layer_off(_ADJUST2); 58 layer_off(_ADJUST2);
59 clear_oneshot_layer_state(ONESHOT_PRESSED); 59 clear_oneshot_layer_state(ONESHOT_PRESSED);
60 } 60 }
61} 61}
62 62
63qk_tap_dance_action_t tap_dance_actions[] = { 63tap_dance_action_t tap_dance_actions[] = {
64[ADJ] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LAYER_finished, dance_LAYER_reset), // Double-tap to activate Adjust layer via oneshot layer 64[ADJ] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LAYER_finished, dance_LAYER_reset), // Double-tap to activate Adjust layer via oneshot layer
65[LBCB] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LCBR), // Left bracket on a single-tap, left brace on a double-tap 65[LBCB] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LCBR), // Left bracket on a single-tap, left brace on a double-tap
66[RBCB] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_RCBR), // Right bracket on a single-tap, right brace on a double-tap 66[RBCB] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_RCBR), // Right bracket on a single-tap, right brace on a double-tap
diff --git a/keyboards/keebio/bfo9000/keymaps/tuesdayjohn/keymap.c b/keyboards/keebio/bfo9000/keymaps/tuesdayjohn/keymap.c
index 37031b936b..7a0b967329 100644
--- a/keyboards/keebio/bfo9000/keymaps/tuesdayjohn/keymap.c
+++ b/keyboards/keebio/bfo9000/keymaps/tuesdayjohn/keymap.c
@@ -36,20 +36,20 @@ enum {
36 PSPA 36 PSPA
37}; 37};
38 38
39void dance_LAYER_finished(qk_tap_dance_state_t *state, void *user_data) { 39void dance_LAYER_finished(tap_dance_state_t *state, void *user_data) {
40 if (state->count == 2) { 40 if (state->count == 2) {
41 layer_on(_ADJUST2); 41 layer_on(_ADJUST2);
42 set_oneshot_layer(_ADJUST2, ONESHOT_START); 42 set_oneshot_layer(_ADJUST2, ONESHOT_START);
43 } 43 }
44} 44}
45void dance_LAYER_reset(qk_tap_dance_state_t *state, void *user_data) { 45void dance_LAYER_reset(tap_dance_state_t *state, void *user_data) {
46 if (state->count == 2) { 46 if (state->count == 2) {
47 layer_off(_ADJUST2); 47 layer_off(_ADJUST2);
48 clear_oneshot_layer_state(ONESHOT_PRESSED); 48 clear_oneshot_layer_state(ONESHOT_PRESSED);
49 } 49 }
50} 50}
51 51
52qk_tap_dance_action_t tap_dance_actions[] = { 52tap_dance_action_t tap_dance_actions[] = {
53[ADJ] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LAYER_finished, dance_LAYER_reset), // Double-tap to activate Adjust layer via oneshot layer 53[ADJ] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LAYER_finished, dance_LAYER_reset), // Double-tap to activate Adjust layer via oneshot layer
54[LBCB] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LCBR), // Left bracket on a single-tap, left brace on a double-tap 54[LBCB] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LCBR), // Left bracket on a single-tap, left brace on a double-tap
55[RBCB] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_RCBR), // Right bracket on a single-tap, right brace on a double-tap 55[RBCB] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_RCBR), // Right bracket on a single-tap, right brace on a double-tap
diff --git a/keyboards/keebio/iris/keymaps/adamgate/keymap.c b/keyboards/keebio/iris/keymaps/adamgate/keymap.c
index 84c3b74711..e67ceef091 100644
--- a/keyboards/keebio/iris/keymaps/adamgate/keymap.c
+++ b/keyboards/keebio/iris/keymaps/adamgate/keymap.c
@@ -36,7 +36,7 @@ enum custom_tapdances {
36 TD_SHFT_CAPS = 0, 36 TD_SHFT_CAPS = 0,
37}; 37};
38 38
39qk_tap_dance_action_t tap_dance_actions[] = { 39tap_dance_action_t tap_dance_actions[] = {
40 [TD_SHFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), //shift if pressed 1x, caps lock if pressed 2x 40 [TD_SHFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), //shift if pressed 1x, caps lock if pressed 2x
41}; 41};
42 42
diff --git a/keyboards/keebio/iris/keymaps/boo/keymap.c b/keyboards/keebio/iris/keymaps/boo/keymap.c
index 7fc9162b47..e6325ae876 100644
--- a/keyboards/keebio/iris/keymaps/boo/keymap.c
+++ b/keyboards/keebio/iris/keymaps/boo/keymap.c
@@ -44,7 +44,7 @@ enum keycodes {
44 KC_KAK = SAFE_RANGE, 44 KC_KAK = SAFE_RANGE,
45}; 45};
46 46
47qk_tap_dance_action_t tap_dance_actions[] = { 47tap_dance_action_t tap_dance_actions[] = {
48 [_LCTLGUI] = ACTION_TAP_DANCE_DOUBLE(KC_LCTL, KC_LGUI), 48 [_LCTLGUI] = ACTION_TAP_DANCE_DOUBLE(KC_LCTL, KC_LGUI),
49}; 49};
50 50
diff --git a/keyboards/keebio/iris/keymaps/davidrambo/keymap.c b/keyboards/keebio/iris/keymaps/davidrambo/keymap.c
index 188e3c3345..42c6d6fcfe 100644
--- a/keyboards/keebio/iris/keymaps/davidrambo/keymap.c
+++ b/keyboards/keebio/iris/keymaps/davidrambo/keymap.c
@@ -126,7 +126,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
126}; 126};
127 127
128// Shift vs. capslock function. From bbaserdem's Planck keymap (since deprecated). 128// Shift vs. capslock function. From bbaserdem's Planck keymap (since deprecated).
129void caps_tap (qk_tap_dance_state_t *state, void *user_data) { 129void caps_tap (tap_dance_state_t *state, void *user_data) {
130 if (state->count == 1) { 130 if (state->count == 1) {
131 register_code (KC_LSFT); 131 register_code (KC_LSFT);
132 } else if (state->count == 2) { 132 } else if (state->count == 2) {
@@ -134,7 +134,7 @@ void caps_tap (qk_tap_dance_state_t *state, void *user_data) {
134 register_code (KC_CAPS); 134 register_code (KC_CAPS);
135 } 135 }
136} 136}
137void caps_tap_end (qk_tap_dance_state_t *state, void *user_data) { 137void caps_tap_end (tap_dance_state_t *state, void *user_data) {
138 if (state->count == 1) { 138 if (state->count == 1) {
139 unregister_code (KC_LSFT); 139 unregister_code (KC_LSFT);
140 } else { 140 } else {
@@ -142,7 +142,7 @@ void caps_tap_end (qk_tap_dance_state_t *state, void *user_data) {
142 } 142 }
143} 143}
144 144
145qk_tap_dance_action_t tap_dance_actions[] = { 145tap_dance_action_t tap_dance_actions[] = {
146 //Tap once for Shift, twice for Caps Lock 146 //Tap once for Shift, twice for Caps Lock
147 [SFT_LCK] = ACTION_TAP_DANCE_FN_ADVANCED( caps_tap, NULL, caps_tap_end) 147 [SFT_LCK] = ACTION_TAP_DANCE_FN_ADVANCED( caps_tap, NULL, caps_tap_end)
148}; 148};
diff --git a/keyboards/keebio/iris/keymaps/khord/keymap.c b/keyboards/keebio/iris/keymaps/khord/keymap.c
index 10ef4ce099..07155d5d17 100644
--- a/keyboards/keebio/iris/keymaps/khord/keymap.c
+++ b/keyboards/keebio/iris/keymaps/khord/keymap.c
@@ -79,7 +79,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
79 ) 79 )
80}; 80};
81 81
82qk_tap_dance_action_t tap_dance_actions[] = { 82tap_dance_action_t tap_dance_actions[] = {
83 [SFT_CAP] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS) 83 [SFT_CAP] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS)
84}; 84};
85 85
diff --git a/keyboards/keebio/iris/keymaps/omgvee/keymap.c b/keyboards/keebio/iris/keymaps/omgvee/keymap.c
index 29ce513fed..4276938b8d 100644
--- a/keyboards/keebio/iris/keymaps/omgvee/keymap.c
+++ b/keyboards/keebio/iris/keymaps/omgvee/keymap.c
@@ -40,7 +40,7 @@ enum {
40 TD_SCL = 0 40 TD_SCL = 0
41}; 41};
42//Tap Dance Definitions 42//Tap Dance Definitions
43qk_tap_dance_action_t tap_dance_actions[] = { 43tap_dance_action_t tap_dance_actions[] = {
44 //Tap once for Shift, twice for Caps Lock 44 //Tap once for Shift, twice for Caps Lock
45 [TD_SCL] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), 45 [TD_SCL] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
46}; 46};
diff --git a/keyboards/keebio/iris/keymaps/sq5rix/keymap.c b/keyboards/keebio/iris/keymaps/sq5rix/keymap.c
index 92f4294a40..74e1dcd531 100644
--- a/keyboards/keebio/iris/keymaps/sq5rix/keymap.c
+++ b/keyboards/keebio/iris/keymaps/sq5rix/keymap.c
@@ -36,7 +36,7 @@ enum custom_keycodes {
36enum { 36enum {
37 TD_S 37 TD_S
38}; 38};
39qk_tap_dance_action_t tap_dance_actions[] = { 39tap_dance_action_t tap_dance_actions[] = {
40 [TD_S] = ACTION_TAP_DANCE_DOUBLE(KC_S, KC_Z), 40 [TD_S] = ACTION_TAP_DANCE_DOUBLE(KC_S, KC_Z),
41}; 41};
42 42
diff --git a/keyboards/keebio/iris/keymaps/two_knob/keymap.c b/keyboards/keebio/iris/keymaps/two_knob/keymap.c
index 221855d3fa..f6017d7266 100644
--- a/keyboards/keebio/iris/keymaps/two_knob/keymap.c
+++ b/keyboards/keebio/iris/keymaps/two_knob/keymap.c
@@ -53,7 +53,7 @@ enum tapdances {
53 * 53 *
54 * To use this in the configurator, enter the name 'TD_FIVE_ENTER' in the "Any" key. 54 * To use this in the configurator, enter the name 'TD_FIVE_ENTER' in the "Any" key.
55 */ 55 */
56qk_tap_dance_action_t tap_dance_actions[] = { 56tap_dance_action_t tap_dance_actions[] = {
57 /* Tap once for 5, twice for Enter. */ 57 /* Tap once for 5, twice for Enter. */
58 [_TD_FIVE_ENTER] = ACTION_TAP_DANCE_DOUBLE(KC_5, KC_ENT), 58 [_TD_FIVE_ENTER] = ACTION_TAP_DANCE_DOUBLE(KC_5, KC_ENT),
59}; 59};
diff --git a/keyboards/keebio/rorschach/keymaps/insertsnideremarks/keymap.c b/keyboards/keebio/rorschach/keymaps/insertsnideremarks/keymap.c
index 39b171dcdc..c2aa0c60fa 100644
--- a/keyboards/keebio/rorschach/keymaps/insertsnideremarks/keymap.c
+++ b/keyboards/keebio/rorschach/keymaps/insertsnideremarks/keymap.c
@@ -43,20 +43,20 @@ enum {
43 PSLPAS 43 PSLPAS
44}; 44};
45 45
46void dance_LAYER_finished(qk_tap_dance_state_t *state, void *user_data) { 46void dance_LAYER_finished(tap_dance_state_t *state, void *user_data) {
47 if (state->count == 2) { 47 if (state->count == 2) {
48 layer_on(_ADJUST2); 48 layer_on(_ADJUST2);
49 set_oneshot_layer(_ADJUST2, ONESHOT_START); 49 set_oneshot_layer(_ADJUST2, ONESHOT_START);
50 } 50 }
51} 51}
52void dance_LAYER_reset(qk_tap_dance_state_t *state, void *user_data) { 52void dance_LAYER_reset(tap_dance_state_t *state, void *user_data) {
53 if (state->count == 2) { 53 if (state->count == 2) {
54 layer_off(_ADJUST2); 54 layer_off(_ADJUST2);
55 clear_oneshot_layer_state(ONESHOT_PRESSED); 55 clear_oneshot_layer_state(ONESHOT_PRESSED);
56 } 56 }
57} 57}
58 58
59qk_tap_dance_action_t tap_dance_actions[] = { 59tap_dance_action_t tap_dance_actions[] = {
60[ADJ] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LAYER_finished, dance_LAYER_reset), // Double-tap to activate Adjust layer via oneshot layer 60[ADJ] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LAYER_finished, dance_LAYER_reset), // Double-tap to activate Adjust layer via oneshot layer
61[LBCB] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LCBR), // Left bracket on a single-tap, left brace on a double-tap 61[LBCB] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LCBR), // Left bracket on a single-tap, left brace on a double-tap
62[RBCB] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_RCBR), // Right bracket on a single-tap, right brace on a double-tap 62[RBCB] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_RCBR), // Right bracket on a single-tap, right brace on a double-tap
diff --git a/keyboards/keebio/rorschach/keymaps/tuesdayjohn/keymap.c b/keyboards/keebio/rorschach/keymaps/tuesdayjohn/keymap.c
index 38d523a34c..db5677e3b6 100644
--- a/keyboards/keebio/rorschach/keymaps/tuesdayjohn/keymap.c
+++ b/keyboards/keebio/rorschach/keymaps/tuesdayjohn/keymap.c
@@ -34,20 +34,20 @@ enum {
34 PSPA 34 PSPA
35}; 35};
36 36
37void dance_LAYER_finished(qk_tap_dance_state_t *state, void *user_data) { 37void dance_LAYER_finished(tap_dance_state_t *state, void *user_data) {
38 if (state->count == 2) { 38 if (state->count == 2) {
39 layer_on(_ADJUST2); 39 layer_on(_ADJUST2);
40 set_oneshot_layer(_ADJUST2, ONESHOT_START); 40 set_oneshot_layer(_ADJUST2, ONESHOT_START);
41 } 41 }
42} 42}
43void dance_LAYER_reset(qk_tap_dance_state_t *state, void *user_data) { 43void dance_LAYER_reset(tap_dance_state_t *state, void *user_data) {
44 if (state->count == 2) { 44 if (state->count == 2) {
45 layer_off(_ADJUST2); 45 layer_off(_ADJUST2);
46 clear_oneshot_layer_state(ONESHOT_PRESSED); 46 clear_oneshot_layer_state(ONESHOT_PRESSED);
47 } 47 }
48} 48}
49 49
50qk_tap_dance_action_t tap_dance_actions[] = { 50tap_dance_action_t tap_dance_actions[] = {
51[ADJ] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LAYER_finished, dance_LAYER_reset), // Double-tap to activate Adjust layer via oneshot layer 51[ADJ] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LAYER_finished, dance_LAYER_reset), // Double-tap to activate Adjust layer via oneshot layer
52[LBCB] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LCBR), // Left bracket on a single-tap, left brace on a double-tap 52[LBCB] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LCBR), // Left bracket on a single-tap, left brace on a double-tap
53[RBCB] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_RCBR), // Right bracket on a single-tap, right brace on a double-tap 53[RBCB] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_RCBR), // Right bracket on a single-tap, right brace on a double-tap
diff --git a/keyboards/keyboardio/atreus/keymaps/kkokdae/keymap.c b/keyboards/keyboardio/atreus/keymaps/kkokdae/keymap.c
index b61b937984..5ff5c87dac 100644
--- a/keyboards/keyboardio/atreus/keymaps/kkokdae/keymap.c
+++ b/keyboards/keyboardio/atreus/keymaps/kkokdae/keymap.c
@@ -92,7 +92,7 @@ bool get_custom_auto_shifted_key(uint16_t keycode, keyrecord_t *record) {
92 } 92 }
93} 93}
94 94
95void dance_hex(qk_tap_dance_state_t *state, void *user_data) { 95void dance_hex(tap_dance_state_t *state, void *user_data) {
96 switch(state->count) { 96 switch(state->count) {
97 case 1: 97 case 1:
98 SEND_STRING("0x"); 98 SEND_STRING("0x");
@@ -103,7 +103,7 @@ void dance_hex(qk_tap_dance_state_t *state, void *user_data) {
103 } 103 }
104} 104}
105 105
106void dance_lang(qk_tap_dance_state_t *state, void *user_data) { 106void dance_lang(tap_dance_state_t *state, void *user_data) {
107 uint32_t default_layer; 107 uint32_t default_layer;
108 switch(state->count) { 108 switch(state->count) {
109 case 1: 109 case 1:
@@ -121,7 +121,7 @@ void dance_lang(qk_tap_dance_state_t *state, void *user_data) {
121} 121}
122 122
123 123
124qk_tap_dance_action_t tap_dance_actions[] = { 124tap_dance_action_t tap_dance_actions[] = {
125 [TdH] = ACTION_TAP_DANCE_FN(dance_hex), 125 [TdH] = ACTION_TAP_DANCE_FN(dance_hex),
126 [TdL] = ACTION_TAP_DANCE_FN(dance_lang) 126 [TdL] = ACTION_TAP_DANCE_FN(dance_lang)
127}; 127};
diff --git a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_mac_caps.c b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_mac_caps.c
index d979820923..dfb0346ff1 100644
--- a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_mac_caps.c
+++ b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_mac_caps.c
@@ -19,7 +19,7 @@
19 19
20static td_tap_t mac_caps_language_tap_state = {.is_press_action = true, .state = TD_NONE}; 20static td_tap_t mac_caps_language_tap_state = {.is_press_action = true, .state = TD_NONE};
21 21
22void mac_caps_language_finished(qk_tap_dance_state_t *state, void *user_data) { 22void mac_caps_language_finished(tap_dance_state_t *state, void *user_data) {
23 mac_caps_language_tap_state.state = current_dance(state); 23 mac_caps_language_tap_state.state = current_dance(state);
24 switch (mac_caps_language_tap_state.state) { 24 switch (mac_caps_language_tap_state.state) {
25 case TD_SINGLE_TAP: 25 case TD_SINGLE_TAP:
@@ -34,7 +34,7 @@ void mac_caps_language_finished(qk_tap_dance_state_t *state, void *user_data) {
34 } 34 }
35} 35}
36 36
37void mac_caps_language_reset(qk_tap_dance_state_t *state, void *user_data) { 37void mac_caps_language_reset(tap_dance_state_t *state, void *user_data) {
38 switch (mac_caps_language_tap_state.state) { 38 switch (mac_caps_language_tap_state.state) {
39 case TD_SINGLE_TAP: 39 case TD_SINGLE_TAP:
40 unregister_code(KC_SPACE); 40 unregister_code(KC_SPACE);
diff --git a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_mac_caps.h b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_mac_caps.h
index a5f07a58a1..ef552a2c2c 100644
--- a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_mac_caps.h
+++ b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_mac_caps.h
@@ -19,5 +19,5 @@
19 19
20#include "tap_dance_setup.h" 20#include "tap_dance_setup.h"
21 21
22void mac_caps_language_finished(qk_tap_dance_state_t *state, void *user_data); 22void mac_caps_language_finished(tap_dance_state_t *state, void *user_data);
23void mac_caps_language_reset(qk_tap_dance_state_t *state, void *user_data); 23void mac_caps_language_reset(tap_dance_state_t *state, void *user_data);
diff --git a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_setup.c b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_setup.c
index 6d879419bc..07257e556a 100644
--- a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_setup.c
+++ b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_setup.c
@@ -15,7 +15,7 @@
15 */ 15 */
16#include "tap_dance_setup.h" 16#include "tap_dance_setup.h"
17 17
18td_state_t current_dance(qk_tap_dance_state_t *state) { 18td_state_t current_dance(tap_dance_state_t *state) {
19 if (state->count == 1) { 19 if (state->count == 1) {
20 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP; 20 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP;
21 /* Key has not been interrupted, but the key is still held. Means you w ant to send a 'HOLD'. */ 21 /* Key has not been interrupted, but the key is still held. Means you w ant to send a 'HOLD'. */
diff --git a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_setup.h b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_setup.h
index 05160c77f5..5d2f4acd57 100644
--- a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_setup.h
+++ b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_setup.h
@@ -35,4 +35,4 @@ typedef struct {
35 td_state_t state; 35 td_state_t state;
36} td_tap_t; 36} td_tap_t;
37 37
38td_state_t current_dance(qk_tap_dance_state_t *state); 38td_state_t current_dance(tap_dance_state_t *state);
diff --git a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_user.c b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_user.c
index 1e9542d5ee..ed8120572e 100644
--- a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_user.c
+++ b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_user.c
@@ -20,7 +20,7 @@
20 20
21// clang-format off 21// clang-format off
22 22
23qk_tap_dance_action_t tap_dance_actions[] = { 23tap_dance_action_t tap_dance_actions[] = {
24 [MAC_CAPS_LANGUAGE_CHANGE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, mac_caps_language_finished, mac_caps_language_reset), 24 [MAC_CAPS_LANGUAGE_CHANGE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, mac_caps_language_finished, mac_caps_language_reset),
25 [WIN_CAPS_LANGUAGE_CHANGE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, win_caps_language_finished, win_caps_language_reset) 25 [WIN_CAPS_LANGUAGE_CHANGE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, win_caps_language_finished, win_caps_language_reset)
26}; 26};
diff --git a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_win_caps.c b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_win_caps.c
index fea72c5663..1c7c438d2e 100644
--- a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_win_caps.c
+++ b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_win_caps.c
@@ -19,7 +19,7 @@
19 19
20static td_tap_t win_caps_language_tap_state = {.is_press_action = true, .state = TD_NONE}; 20static td_tap_t win_caps_language_tap_state = {.is_press_action = true, .state = TD_NONE};
21 21
22void win_caps_language_finished(qk_tap_dance_state_t *state, void *user_data) { 22void win_caps_language_finished(tap_dance_state_t *state, void *user_data) {
23 win_caps_language_tap_state.state = current_dance(state); 23 win_caps_language_tap_state.state = current_dance(state);
24 switch (win_caps_language_tap_state.state) { 24 switch (win_caps_language_tap_state.state) {
25 case TD_SINGLE_TAP: 25 case TD_SINGLE_TAP:
@@ -34,7 +34,7 @@ void win_caps_language_finished(qk_tap_dance_state_t *state, void *user_data) {
34 } 34 }
35} 35}
36 36
37void win_caps_language_reset(qk_tap_dance_state_t *state, void *user_data) { 37void win_caps_language_reset(tap_dance_state_t *state, void *user_data) {
38 switch (win_caps_language_tap_state.state) { 38 switch (win_caps_language_tap_state.state) {
39 case TD_SINGLE_TAP: 39 case TD_SINGLE_TAP:
40 unregister_code(KC_SPACE); 40 unregister_code(KC_SPACE);
diff --git a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_win_caps.h b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_win_caps.h
index 34b734ec89..2289cce326 100644
--- a/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_win_caps.h
+++ b/keyboards/keychron/q1/ansi/keymaps/teimor/tap_dance_win_caps.h
@@ -19,5 +19,5 @@
19 19
20#include "tap_dance_setup.h" 20#include "tap_dance_setup.h"
21 21
22void win_caps_language_finished(qk_tap_dance_state_t *state, void *user_data); 22void win_caps_language_finished(tap_dance_state_t *state, void *user_data);
23void win_caps_language_reset(qk_tap_dance_state_t *state, void *user_data); 23void win_caps_language_reset(tap_dance_state_t *state, void *user_data);
diff --git a/keyboards/keyhive/navi10/keymaps/default/keymap.c b/keyboards/keyhive/navi10/keymaps/default/keymap.c
index 248e4d50ce..bbf51f56ff 100644
--- a/keyboards/keyhive/navi10/keymaps/default/keymap.c
+++ b/keyboards/keyhive/navi10/keymaps/default/keymap.c
@@ -33,11 +33,11 @@ enum {
33}; 33};
34 34
35//function to handle all the tap dances 35//function to handle all the tap dances
36int cur_dance(qk_tap_dance_state_t *state); 36int cur_dance(tap_dance_state_t *state);
37 37
38//functions for each tap dance 38//functions for each tap dance
39void tk_finished(qk_tap_dance_state_t *state, void *user_data); 39void tk_finished(tap_dance_state_t *state, void *user_data);
40void tk_reset(qk_tap_dance_state_t *state, void *user_data); 40void tk_reset(tap_dance_state_t *state, void *user_data);
41 41
42#define INDICATOR_LED B5 42#define INDICATOR_LED B5
43 43
@@ -66,7 +66,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
66}; 66};
67 67
68//determine the current tap dance state 68//determine the current tap dance state
69int cur_dance (qk_tap_dance_state_t *state){ 69int cur_dance (tap_dance_state_t *state){
70 if(state->count == 1){ 70 if(state->count == 1){
71 //if a tap was registered 71 //if a tap was registered
72 if(!state->pressed){ 72 if(!state->pressed){
@@ -88,7 +88,7 @@ static tap tk_tap_state = {
88}; 88};
89 89
90//functions that control what our tap dance key does 90//functions that control what our tap dance key does
91void tk_finished(qk_tap_dance_state_t *state, void *user_data){ 91void tk_finished(tap_dance_state_t *state, void *user_data){
92 tk_tap_state.state = cur_dance(state); 92 tk_tap_state.state = cur_dance(state);
93 switch(tk_tap_state.state){ 93 switch(tk_tap_state.state){
94 case SINGLE_TAP: 94 case SINGLE_TAP:
@@ -116,7 +116,7 @@ void tk_finished(qk_tap_dance_state_t *state, void *user_data){
116 } 116 }
117} 117}
118 118
119void tk_reset(qk_tap_dance_state_t *state, void *user_data){ 119void tk_reset(tap_dance_state_t *state, void *user_data){
120 //if held and released, leave the layer 120 //if held and released, leave the layer
121 if(tk_tap_state.state == SINGLE_HOLD){ 121 if(tk_tap_state.state == SINGLE_HOLD){
122 layer_off(_FN0); 122 layer_off(_FN0);
@@ -126,6 +126,6 @@ void tk_reset(qk_tap_dance_state_t *state, void *user_data){
126} 126}
127 127
128//associate the tap dance key with its functionality 128//associate the tap dance key with its functionality
129qk_tap_dance_action_t tap_dance_actions[] = { 129tap_dance_action_t tap_dance_actions[] = {
130 [TAPPY_KEY] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tk_finished, tk_reset) 130 [TAPPY_KEY] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tk_finished, tk_reset)
131}; 131};
diff --git a/keyboards/keyhive/navi10/keymaps/devdev/keymap.c b/keyboards/keyhive/navi10/keymaps/devdev/keymap.c
index 0fc20cbbd4..36a76c50ce 100644
--- a/keyboards/keyhive/navi10/keymaps/devdev/keymap.c
+++ b/keyboards/keyhive/navi10/keymaps/devdev/keymap.c
@@ -67,11 +67,11 @@ enum custom_keycodes { // git macros
67}; 67};
68 68
69//function to handle all the tap dances 69//function to handle all the tap dances
70int cur_dance(qk_tap_dance_state_t *state); 70int cur_dance(tap_dance_state_t *state);
71 71
72//functions for each tap dance 72//functions for each tap dance
73void tk_finished(qk_tap_dance_state_t *state, void *user_data); 73void tk_finished(tap_dance_state_t *state, void *user_data);
74void tk_reset(qk_tap_dance_state_t *state, void *user_data); 74void tk_reset(tap_dance_state_t *state, void *user_data);
75 75
76// define the macros in here 76// define the macros in here
77bool process_record_user(uint16_t keycode, keyrecord_t *record) { 77bool process_record_user(uint16_t keycode, keyrecord_t *record) {
@@ -167,7 +167,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
167}; 167};
168 168
169//determine the current tap dance state 169//determine the current tap dance state
170int cur_dance (qk_tap_dance_state_t *state){ 170int cur_dance (tap_dance_state_t *state){
171 if(state->count == 1) 171 if(state->count == 1)
172 { 172 {
173 //if a tap was registered 173 //if a tap was registered
@@ -203,7 +203,7 @@ static tap tk_tap_state = {
203}; 203};
204 204
205//functions that control what our tap dance key does 205//functions that control what our tap dance key does
206void tk_finished(qk_tap_dance_state_t *state, void *user_data){ 206void tk_finished(tap_dance_state_t *state, void *user_data){
207 tk_tap_state.state = cur_dance(state); 207 tk_tap_state.state = cur_dance(state);
208 uint8_t val = rgblight_get_val(); 208 uint8_t val = rgblight_get_val();
209 switch(tk_tap_state.state){ 209 switch(tk_tap_state.state){
@@ -246,7 +246,7 @@ void tk_finished(qk_tap_dance_state_t *state, void *user_data){
246 } 246 }
247} 247}
248 248
249void tk_reset(qk_tap_dance_state_t *state, void *user_data){ 249void tk_reset(tap_dance_state_t *state, void *user_data){
250 //if held and released, leave the layer 250 //if held and released, leave the layer
251 if(tk_tap_state.state == SINGLE_HOLD){ 251 if(tk_tap_state.state == SINGLE_HOLD){
252 layer_off(_GI4); 252 layer_off(_GI4);
@@ -258,6 +258,6 @@ void tk_reset(qk_tap_dance_state_t *state, void *user_data){
258} 258}
259 259
260//associate the tap dance key with its functionality 260//associate the tap dance key with its functionality
261qk_tap_dance_action_t tap_dance_actions[] = { 261tap_dance_action_t tap_dance_actions[] = {
262 [TAPPY_KEY] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tk_finished, tk_reset) 262 [TAPPY_KEY] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tk_finished, tk_reset)
263}; 263};
diff --git a/keyboards/keyhive/navi10/keymaps/emdarcher/keymap.c b/keyboards/keyhive/navi10/keymaps/emdarcher/keymap.c
index 11ac082392..4e15dc3c46 100644
--- a/keyboards/keyhive/navi10/keymaps/emdarcher/keymap.c
+++ b/keyboards/keyhive/navi10/keymaps/emdarcher/keymap.c
@@ -34,11 +34,11 @@ enum {
34}; 34};
35 35
36//function to handle all the tap dances 36//function to handle all the tap dances
37int cur_dance(qk_tap_dance_state_t *state); 37int cur_dance(tap_dance_state_t *state);
38 38
39//functions for each tap dance 39//functions for each tap dance
40void tk_finished(qk_tap_dance_state_t *state, void *user_data); 40void tk_finished(tap_dance_state_t *state, void *user_data);
41void tk_reset(qk_tap_dance_state_t *state, void *user_data); 41void tk_reset(tap_dance_state_t *state, void *user_data);
42 42
43#define INDICATOR_LED B5 43#define INDICATOR_LED B5
44#define TX_LED D5 44#define TX_LED D5
@@ -85,7 +85,7 @@ void matrix_init_user(void) {
85} 85}
86 86
87//determine the current tap dance state 87//determine the current tap dance state
88int cur_dance (qk_tap_dance_state_t *state){ 88int cur_dance (tap_dance_state_t *state){
89 if(state->count == 1){ 89 if(state->count == 1){
90 //if a tap was registered 90 //if a tap was registered
91 if(!state->pressed){ 91 if(!state->pressed){
@@ -114,7 +114,7 @@ static tap tk_tap_state = {
114}; 114};
115 115
116//functions that control what our tap dance key does 116//functions that control what our tap dance key does
117void tk_finished(qk_tap_dance_state_t *state, void *user_data){ 117void tk_finished(tap_dance_state_t *state, void *user_data){
118 tk_tap_state.state = cur_dance(state); 118 tk_tap_state.state = cur_dance(state);
119 switch(tk_tap_state.state){ 119 switch(tk_tap_state.state){
120 case SINGLE_TAP: 120 case SINGLE_TAP:
@@ -166,7 +166,7 @@ void tk_finished(qk_tap_dance_state_t *state, void *user_data){
166 } 166 }
167} 167}
168 168
169void tk_reset(qk_tap_dance_state_t *state, void *user_data){ 169void tk_reset(tap_dance_state_t *state, void *user_data){
170 //if held and released, leave the layer 170 //if held and released, leave the layer
171 if(tk_tap_state.state == SINGLE_HOLD){ 171 if(tk_tap_state.state == SINGLE_HOLD){
172 layer_off(_FN0); 172 layer_off(_FN0);
@@ -177,6 +177,6 @@ void tk_reset(qk_tap_dance_state_t *state, void *user_data){
177 177
178 178
179//associate the tap dance key with its functionality 179//associate the tap dance key with its functionality
180qk_tap_dance_action_t tap_dance_actions[] = { 180tap_dance_action_t tap_dance_actions[] = {
181 [TAPPY_KEY] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tk_finished, tk_reset) 181 [TAPPY_KEY] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tk_finished, tk_reset)
182}; 182};
diff --git a/keyboards/keyhive/opus/keymaps/thefoxcodes/keymap.c b/keyboards/keyhive/opus/keymaps/thefoxcodes/keymap.c
index 6671cb43f8..28eda8e6b6 100644
--- a/keyboards/keyhive/opus/keymaps/thefoxcodes/keymap.c
+++ b/keyboards/keyhive/opus/keymaps/thefoxcodes/keymap.c
@@ -89,6 +89,6 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
89 ), 89 ),
90}; 90};
91 91
92qk_tap_dance_action_t tap_dance_actions[] = { 92tap_dance_action_t tap_dance_actions[] = {
93 [TD_PLAY_DO_NOT_DISTURB] = ACTION_TAP_DANCE_DOUBLE(KC_MPLY, KC_F6) 93 [TD_PLAY_DO_NOT_DISTURB] = ACTION_TAP_DANCE_DOUBLE(KC_MPLY, KC_F6)
94}; \ No newline at end of file 94}; \ No newline at end of file
diff --git a/keyboards/keyhive/ut472/keymaps/stefanopace/keymap.c b/keyboards/keyhive/ut472/keymaps/stefanopace/keymap.c
index fbaf592d22..9d1780b161 100644
--- a/keyboards/keyhive/ut472/keymaps/stefanopace/keymap.c
+++ b/keyboards/keyhive/ut472/keymaps/stefanopace/keymap.c
@@ -30,7 +30,7 @@ enum tapdance {
30 TD_APP_CAPS_LOCK, 30 TD_APP_CAPS_LOCK,
31}; 31};
32 32
33qk_tap_dance_action_t tap_dance_actions[] = { 33tap_dance_action_t tap_dance_actions[] = {
34 [TD_SINGLE_QUOTE_DOUBLE_QUOTES] = ACTION_TAP_DANCE_DOUBLE(KC_QUOT, KC_DQUO), 34 [TD_SINGLE_QUOTE_DOUBLE_QUOTES] = ACTION_TAP_DANCE_DOUBLE(KC_QUOT, KC_DQUO),
35 [TD_APP_CAPS_LOCK] = ACTION_TAP_DANCE_DOUBLE(KC_APP, KC_CAPS), 35 [TD_APP_CAPS_LOCK] = ACTION_TAP_DANCE_DOUBLE(KC_APP, KC_CAPS),
36}; 36};
diff --git a/keyboards/kinesis/keymaps/farmergreg/keymap.c b/keyboards/kinesis/keymaps/farmergreg/keymap.c
index 393b7c074b..554f6f8f58 100644
--- a/keyboards/kinesis/keymaps/farmergreg/keymap.c
+++ b/keyboards/kinesis/keymaps/farmergreg/keymap.c
@@ -45,7 +45,7 @@ enum tap_dances {
45 TD_CAPS, // ESC on tap, CAPS on double tap 45 TD_CAPS, // ESC on tap, CAPS on double tap
46}; 46};
47 47
48qk_tap_dance_action_t tap_dance_actions[] = { 48tap_dance_action_t tap_dance_actions[] = {
49 [TD_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS), 49 [TD_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS),
50}; 50};
51 51
diff --git a/keyboards/kinesis/keymaps/insertsnideremarks/keymap.c b/keyboards/kinesis/keymaps/insertsnideremarks/keymap.c
index 0888f3f8cd..04fa8d39bc 100644
--- a/keyboards/kinesis/keymaps/insertsnideremarks/keymap.c
+++ b/keyboards/kinesis/keymaps/insertsnideremarks/keymap.c
@@ -47,20 +47,20 @@ enum {
47 PSLPAS 47 PSLPAS
48}; 48};
49 49
50void dance_LAYER_finished(qk_tap_dance_state_t *state, void *user_data) { 50void dance_LAYER_finished(tap_dance_state_t *state, void *user_data) {
51 if (state->count == 2) { 51 if (state->count == 2) {
52 layer_on(_ADJUST2); 52 layer_on(_ADJUST2);
53 set_oneshot_layer(_ADJUST2, ONESHOT_START); 53 set_oneshot_layer(_ADJUST2, ONESHOT_START);
54 } 54 }
55} 55}
56void dance_LAYER_reset(qk_tap_dance_state_t *state, void *user_data) { 56void dance_LAYER_reset(tap_dance_state_t *state, void *user_data) {
57 if (state->count == 2) { 57 if (state->count == 2) {
58 layer_off(_ADJUST2); 58 layer_off(_ADJUST2);
59 clear_oneshot_layer_state(ONESHOT_PRESSED); 59 clear_oneshot_layer_state(ONESHOT_PRESSED);
60 } 60 }
61} 61}
62 62
63qk_tap_dance_action_t tap_dance_actions[] = { 63tap_dance_action_t tap_dance_actions[] = {
64[ADJ] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LAYER_finished, dance_LAYER_reset), // Double-tap to activate Adjust layer via oneshot layer 64[ADJ] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LAYER_finished, dance_LAYER_reset), // Double-tap to activate Adjust layer via oneshot layer
65[LBCB] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LCBR), // Left bracket on a single-tap, left brace on a double-tap 65[LBCB] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LCBR), // Left bracket on a single-tap, left brace on a double-tap
66[RBCB] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_RCBR), // Right bracket on a single-tap, right brace on a double-tap 66[RBCB] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_RCBR), // Right bracket on a single-tap, right brace on a double-tap
diff --git a/keyboards/kinesis/keymaps/tuesdayjohn/keymap.c b/keyboards/kinesis/keymaps/tuesdayjohn/keymap.c
index 5fdbbcd902..6a7a6cc68e 100644
--- a/keyboards/kinesis/keymaps/tuesdayjohn/keymap.c
+++ b/keyboards/kinesis/keymaps/tuesdayjohn/keymap.c
@@ -36,20 +36,20 @@ enum {
36 PSPA 36 PSPA
37}; 37};
38 38
39void dance_LAYER_finished(qk_tap_dance_state_t *state, void *user_data) { 39void dance_LAYER_finished(tap_dance_state_t *state, void *user_data) {
40 if (state->count == 2) { 40 if (state->count == 2) {
41 layer_on(_ADJUST2); 41 layer_on(_ADJUST2);
42 set_oneshot_layer(_ADJUST2, ONESHOT_START); 42 set_oneshot_layer(_ADJUST2, ONESHOT_START);
43 } 43 }
44} 44}
45void dance_LAYER_reset(qk_tap_dance_state_t *state, void *user_data) { 45void dance_LAYER_reset(tap_dance_state_t *state, void *user_data) {
46 if (state->count == 2) { 46 if (state->count == 2) {
47 layer_off(_ADJUST2); 47 layer_off(_ADJUST2);
48 clear_oneshot_layer_state(ONESHOT_PRESSED); 48 clear_oneshot_layer_state(ONESHOT_PRESSED);
49 } 49 }
50} 50}
51 51
52qk_tap_dance_action_t tap_dance_actions[] = { 52tap_dance_action_t tap_dance_actions[] = {
53[ADJ] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LAYER_finished, dance_LAYER_reset), // Double-tap to activate Adjust layer via oneshot layer 53[ADJ] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LAYER_finished, dance_LAYER_reset), // Double-tap to activate Adjust layer via oneshot layer
54[LBCB] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LCBR), // Left bracket on a single-tap, left brace on a double-tap 54[LBCB] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LCBR), // Left bracket on a single-tap, left brace on a double-tap
55[RBCB] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_RCBR), // Right bracket on a single-tap, right brace on a double-tap 55[RBCB] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_RCBR), // Right bracket on a single-tap, right brace on a double-tap
diff --git a/keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c b/keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c
index 8fe6dedcbd..c8dbb6c18d 100644
--- a/keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c
+++ b/keyboards/kingly_keys/ave/ortho/keymaps/default/keymap.c
@@ -32,7 +32,7 @@ enum avenue_tapcodes {
32 TD_DBQT, 32 TD_DBQT,
33}; 33};
34 34
35void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) { // *Line_Note.001 35void dance_rst_reset (tap_dance_state_t *state, void *user_data) { // *Line_Note.001
36 if (state->count >= 2) { 36 if (state->count >= 2) {
37 reset_keyboard(); 37 reset_keyboard();
38 reset_tap_dance(state); 38 reset_tap_dance(state);
@@ -40,7 +40,7 @@ void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) { // *Line_N
40} 40}
41 41
42//Tap Dance Functions: 42//Tap Dance Functions:
43qk_tap_dance_action_t tap_dance_actions[] = { 43tap_dance_action_t tap_dance_actions[] = {
44 [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset), // References "dance_rst_reset" (*Line_Note.001) 44 [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset), // References "dance_rst_reset" (*Line_Note.001)
45 [TD_DBQT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOTE, KC_DQT) 45 [TD_DBQT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOTE, KC_DQT)
46}; 46};
diff --git a/keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c b/keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c
index e36839a584..4a56915ae5 100644
--- a/keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c
+++ b/keyboards/kingly_keys/ave/staggered/keymaps/default/keymap.c
@@ -32,7 +32,7 @@ enum avenue_tapcodes {
32 TD_DBQT, 32 TD_DBQT,
33}; 33};
34 34
35void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) { // *Line_Note.001 35void dance_rst_reset (tap_dance_state_t *state, void *user_data) { // *Line_Note.001
36 if (state->count >= 2) { 36 if (state->count >= 2) {
37 reset_keyboard(); 37 reset_keyboard();
38 reset_tap_dance(state); 38 reset_tap_dance(state);
@@ -40,7 +40,7 @@ void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) { // *Line_N
40} 40}
41 41
42//Tap Dance Functions: 42//Tap Dance Functions:
43qk_tap_dance_action_t tap_dance_actions[] = { 43tap_dance_action_t tap_dance_actions[] = {
44 [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset), // References "dance_rst_reset" (*Line_Note.001) 44 [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset), // References "dance_rst_reset" (*Line_Note.001)
45 [TD_DBQT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOTE, KC_DQT) 45 [TD_DBQT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOTE, KC_DQT)
46}; 46};
diff --git a/keyboards/knops/mini/keymaps/mverteuil/keymap.c b/keyboards/knops/mini/keymaps/mverteuil/keymap.c
index 8f28f4c617..45765a7aba 100644
--- a/keyboards/knops/mini/keymaps/mverteuil/keymap.c
+++ b/keyboards/knops/mini/keymaps/mverteuil/keymap.c
@@ -21,8 +21,8 @@
21 21
22void led_init_animation(void); 22void led_init_animation(void);
23void led_set_layer(int layer); 23void led_set_layer(int layer);
24void td_spectacles_finish(qk_tap_dance_state_t *state, void *user_data); 24void td_spectacles_finish(tap_dance_state_t *state, void *user_data);
25void td_spectacles_reset(qk_tap_dance_state_t *state, void *user_data); 25void td_spectacles_reset(tap_dance_state_t *state, void *user_data);
26 26
27enum layer_led_mode { 27enum layer_led_mode {
28 ALL_LAYERS_OFF = -1, 28 ALL_LAYERS_OFF = -1,
@@ -47,7 +47,7 @@ enum mini_layers {
47 47
48enum { TD_SPEC = 0 }; 48enum { TD_SPEC = 0 };
49 49
50qk_tap_dance_action_t tap_dance_actions[] = { 50tap_dance_action_t tap_dance_actions[] = {
51 /* Tap once for spectacles macro, hold for layer toggle */ 51 /* Tap once for spectacles macro, hold for layer toggle */
52 [TD_SPEC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, td_spectacles_finish, td_spectacles_reset), 52 [TD_SPEC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, td_spectacles_finish, td_spectacles_reset),
53}; 53};
@@ -295,7 +295,7 @@ void matrix_init_user(void) {
295 led_init_animation(); 295 led_init_animation();
296} 296}
297 297
298void td_spectacles_finish(qk_tap_dance_state_t *state, void *user_data) { 298void td_spectacles_finish(tap_dance_state_t *state, void *user_data) {
299 if (state->pressed) { 299 if (state->pressed) {
300 layer_on(_LAYER_SELECT); 300 layer_on(_LAYER_SELECT);
301 } else { 301 } else {
@@ -303,4 +303,4 @@ void td_spectacles_finish(qk_tap_dance_state_t *state, void *user_data) {
303 } 303 }
304} 304}
305 305
306void td_spectacles_reset(qk_tap_dance_state_t *state, void *user_data) { layer_off(_LAYER_SELECT); } 306void td_spectacles_reset(tap_dance_state_t *state, void *user_data) { layer_off(_LAYER_SELECT); }
diff --git a/keyboards/kprepublic/bm40hsrgb/keymaps/dan/keymap.c b/keyboards/kprepublic/bm40hsrgb/keymaps/dan/keymap.c
index b8a9dc1121..54b4652fdf 100644
--- a/keyboards/kprepublic/bm40hsrgb/keymaps/dan/keymap.c
+++ b/keyboards/kprepublic/bm40hsrgb/keymaps/dan/keymap.c
@@ -48,7 +48,7 @@ enum {
48 TD_PASTE_COPY 48 TD_PASTE_COPY
49}; 49};
50 50
51qk_tap_dance_action_t tap_dance_actions[] = { 51tap_dance_action_t tap_dance_actions[] = {
52 [TD_PAST_PSLS] = ACTION_TAP_DANCE_DOUBLE(KC_PAST, KC_PSLS), 52 [TD_PAST_PSLS] = ACTION_TAP_DANCE_DOUBLE(KC_PAST, KC_PSLS),
53 [TD_PASTE_COPY] = ACTION_TAP_DANCE_DOUBLE(LCTL(KC_V), LCTL(KC_C)) 53 [TD_PASTE_COPY] = ACTION_TAP_DANCE_DOUBLE(LCTL(KC_V), LCTL(KC_C))
54}; 54};
diff --git a/keyboards/kprepublic/bm40hsrgb/keymaps/gabustoledo/keymap.c b/keyboards/kprepublic/bm40hsrgb/keymaps/gabustoledo/keymap.c
index b911176274..a08fd535d3 100755
--- a/keyboards/kprepublic/bm40hsrgb/keymaps/gabustoledo/keymap.c
+++ b/keyboards/kprepublic/bm40hsrgb/keymaps/gabustoledo/keymap.c
@@ -21,7 +21,7 @@ enum {
21 TD_MEDIA, TD_SCREEN, 21 TD_MEDIA, TD_SCREEN,
22}; 22};
23 23
24qk_tap_dance_action_t tap_dance_actions[] = { 24tap_dance_action_t tap_dance_actions[] = {
25 [TD_MEDIA] = ACTION_TAP_DANCE_DOUBLE( KC_MPLY , KC_MNXT ), 25 [TD_MEDIA] = ACTION_TAP_DANCE_DOUBLE( KC_MPLY , KC_MNXT ),
26 [TD_SCREEN] = ACTION_TAP_DANCE_DOUBLE( (G(S(KC_S))) , S(C(KC_4)) ), 26 [TD_SCREEN] = ACTION_TAP_DANCE_DOUBLE( (G(S(KC_S))) , S(C(KC_4)) ),
27}; 27};
diff --git a/keyboards/kprepublic/bm40hsrgb/keymaps/signynt/keymap.c b/keyboards/kprepublic/bm40hsrgb/keymaps/signynt/keymap.c
index 413f12621b..5a1d366f56 100644
--- a/keyboards/kprepublic/bm40hsrgb/keymaps/signynt/keymap.c
+++ b/keyboards/kprepublic/bm40hsrgb/keymaps/signynt/keymap.c
@@ -177,7 +177,7 @@ enum {
177}; 177};
178 178
179//tap dance definitions 179//tap dance definitions
180qk_tap_dance_action_t tap_dance_actions[] = { 180tap_dance_action_t tap_dance_actions[] = {
181 [TD_MEDIA] = ACTION_TAP_DANCE_DOUBLE( KC_MPLY , KC_MNXT ), 181 [TD_MEDIA] = ACTION_TAP_DANCE_DOUBLE( KC_MPLY , KC_MNXT ),
182 [TD_SCREEN] = ACTION_TAP_DANCE_DOUBLE( (G(S(KC_S))) , S(C(KC_4)) ), 182 [TD_SCREEN] = ACTION_TAP_DANCE_DOUBLE( (G(S(KC_S))) , S(C(KC_4)) ),
183}; 183};
diff --git a/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_loud/keymap.c b/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_loud/keymap.c
index 2cdf244cdc..f53e061843 100644
--- a/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_loud/keymap.c
+++ b/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_loud/keymap.c
@@ -150,7 +150,7 @@ enum {
150}; 150};
151 151
152//tap dance definitions 152//tap dance definitions
153qk_tap_dance_action_t tap_dance_actions[] = { 153tap_dance_action_t tap_dance_actions[] = {
154 [TD_MEDIA] = ACTION_TAP_DANCE_DOUBLE( KC_MPLY , KC_MNXT ), 154 [TD_MEDIA] = ACTION_TAP_DANCE_DOUBLE( KC_MPLY , KC_MNXT ),
155 [TD_SCREEN] = ACTION_TAP_DANCE_DOUBLE( (G(S(KC_S))) , S(C(KC_4)) ), 155 [TD_SCREEN] = ACTION_TAP_DANCE_DOUBLE( (G(S(KC_S))) , S(C(KC_4)) ),
156}; 156};
diff --git a/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_quiet/keymap.c b/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_quiet/keymap.c
index 065f65c78a..e958071c20 100644
--- a/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_quiet/keymap.c
+++ b/keyboards/kprepublic/bm40hsrgb/keymaps/signynt_2_quiet/keymap.c
@@ -114,7 +114,7 @@ enum {
114}; 114};
115 115
116//tap dance definitions 116//tap dance definitions
117qk_tap_dance_action_t tap_dance_actions[] = { 117tap_dance_action_t tap_dance_actions[] = {
118 [TD_MEDIA] = ACTION_TAP_DANCE_DOUBLE( KC_MPLY , KC_MNXT ), 118 [TD_MEDIA] = ACTION_TAP_DANCE_DOUBLE( KC_MPLY , KC_MNXT ),
119 [TD_SCREEN] = ACTION_TAP_DANCE_DOUBLE( (G(S(KC_S))) , S(C(KC_4)) ), 119 [TD_SCREEN] = ACTION_TAP_DANCE_DOUBLE( (G(S(KC_S))) , S(C(KC_4)) ),
120}; 120};
diff --git a/keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c b/keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c
index 8b59f9de4f..a2719798de 100644
--- a/keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c
+++ b/keyboards/kprepublic/bm65hsrgb_iso/keymaps/p4yne/keymap.c
@@ -23,7 +23,7 @@ enum {
23}; 23};
24 24
25// Tap Dance definitions 25// Tap Dance definitions
26qk_tap_dance_action_t tap_dance_actions[] = { 26tap_dance_action_t tap_dance_actions[] = {
27 // tap once for home, twice for end 27 // tap once for home, twice for end
28 [TD_HOME_END] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_END) 28 [TD_HOME_END] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_END)
29}; 29};
diff --git a/keyboards/kprepublic/bm65hsrgb_iso/rev1/keymaps/deadolus/keymap.c b/keyboards/kprepublic/bm65hsrgb_iso/rev1/keymaps/deadolus/keymap.c
index 044b864c28..d150416bed 100644
--- a/keyboards/kprepublic/bm65hsrgb_iso/rev1/keymaps/deadolus/keymap.c
+++ b/keyboards/kprepublic/bm65hsrgb_iso/rev1/keymaps/deadolus/keymap.c
@@ -22,7 +22,7 @@ enum {
22}; 22};
23 23
24// Tap Dance definitions 24// Tap Dance definitions
25qk_tap_dance_action_t tap_dance_actions[] = { 25tap_dance_action_t tap_dance_actions[] = {
26 //tap once for home, twice for end 26 //tap once for home, twice for end
27 [TD_HOME_END] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_END) 27 [TD_HOME_END] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_END)
28}; 28};
diff --git a/keyboards/kprepublic/jj40/keymaps/stevexyz/keymap.c b/keyboards/kprepublic/jj40/keymaps/stevexyz/keymap.c
index 72136a5d96..51691e8f1f 100644
--- a/keyboards/kprepublic/jj40/keymaps/stevexyz/keymap.c
+++ b/keyboards/kprepublic/jj40/keymaps/stevexyz/keymap.c
@@ -57,7 +57,7 @@ enum {
57 TD_O_GRAVE, 57 TD_O_GRAVE,
58 TD_U_GRAVE, 58 TD_U_GRAVE,
59}; 59};
60qk_tap_dance_action_t tap_dance_actions[] = { 60tap_dance_action_t tap_dance_actions[] = {
61 [TD_P_BSPC] = ACTION_TAP_DANCE_DOUBLE(KC_P, KC_BSPC), 61 [TD_P_BSPC] = ACTION_TAP_DANCE_DOUBLE(KC_P, KC_BSPC),
62 [TD_Q_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC), 62 [TD_Q_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC),
63 [TD_A_TAB] = ACTION_TAP_DANCE_DOUBLE(KC_A, KC_TAB), 63 [TD_A_TAB] = ACTION_TAP_DANCE_DOUBLE(KC_A, KC_TAB),
diff --git a/keyboards/kprepublic/jj50/keymaps/archetype/keymap.c b/keyboards/kprepublic/jj50/keymaps/archetype/keymap.c
index ff59ef43e5..bdeb3a0dd6 100644
--- a/keyboards/kprepublic/jj50/keymaps/archetype/keymap.c
+++ b/keyboards/kprepublic/jj50/keymaps/archetype/keymap.c
@@ -36,7 +36,7 @@ enum {
36}; 36};
37 37
38 38
39void left_brackets(qk_tap_dance_state_t *state, void *user_data) { 39void left_brackets(tap_dance_state_t *state, void *user_data) {
40 if (state->count == 1) { 40 if (state->count == 1) {
41 if (!state->pressed) { 41 if (!state->pressed) {
42 register_code16(KC_LPRN); 42 register_code16(KC_LPRN);
@@ -50,7 +50,7 @@ void left_brackets(qk_tap_dance_state_t *state, void *user_data) {
50 } 50 }
51} 51}
52 52
53void left_brackets_reset(qk_tap_dance_state_t *state, void *user_data) { 53void left_brackets_reset(tap_dance_state_t *state, void *user_data) {
54 if (state->count == 1) { 54 if (state->count == 1) {
55 unregister_code16(KC_LPRN); 55 unregister_code16(KC_LPRN);
56 } else if (state->count == 2) { 56 } else if (state->count == 2) {
@@ -62,7 +62,7 @@ void left_brackets_reset(qk_tap_dance_state_t *state, void *user_data) {
62 unregister_code(KC_LCTL); 62 unregister_code(KC_LCTL);
63} 63}
64 64
65void right_brackets(qk_tap_dance_state_t *state, void *user_data) { 65void right_brackets(tap_dance_state_t *state, void *user_data) {
66 if (state->count == 1) { 66 if (state->count == 1) {
67 if (!state->pressed) { 67 if (!state->pressed) {
68 register_code16(KC_RPRN); 68 register_code16(KC_RPRN);
@@ -76,7 +76,7 @@ void right_brackets(qk_tap_dance_state_t *state, void *user_data) {
76 } 76 }
77} 77}
78 78
79void right_brackets_reset(qk_tap_dance_state_t *state, void *user_data) { 79void right_brackets_reset(tap_dance_state_t *state, void *user_data) {
80 if (state->count == 1) { 80 if (state->count == 1) {
81 unregister_code16(KC_RPRN); 81 unregister_code16(KC_RPRN);
82 } else if (state->count == 2) { 82 } else if (state->count == 2) {
@@ -104,7 +104,7 @@ enum {
104 TRIPLE_SINGLE_TAP = 8, //send three single taps 104 TRIPLE_SINGLE_TAP = 8, //send three single taps
105}; 105};
106 106
107int cur_dance (qk_tap_dance_state_t *state) { 107int cur_dance (tap_dance_state_t *state) {
108 if (state->count == 1) { 108 if (state->count == 1) {
109 if (state->interrupted || !state->pressed) return SINGLE_TAP; 109 if (state->interrupted || !state->pressed) return SINGLE_TAP;
110 else return SINGLE_HOLD; 110 else return SINGLE_HOLD;
@@ -128,7 +128,7 @@ static tap tap_state = {
128 .state = 0 128 .state = 0
129}; 129};
130 130
131void layer_switcher (qk_tap_dance_state_t *state, void *user_data) { 131void layer_switcher (tap_dance_state_t *state, void *user_data) {
132 tap_state.state = cur_dance(state); 132 tap_state.state = cur_dance(state);
133 switch (tap_state.state) { 133 switch (tap_state.state) {
134 case SINGLE_TAP: register_code(KC_ESC); break; 134 case SINGLE_TAP: register_code(KC_ESC); break;
@@ -145,7 +145,7 @@ void layer_switcher (qk_tap_dance_state_t *state, void *user_data) {
145 } 145 }
146} 146}
147 147
148void layer_switcher_reset (qk_tap_dance_state_t *state, void *user_data) { 148void layer_switcher_reset (tap_dance_state_t *state, void *user_data) {
149 switch (tap_state.state) { 149 switch (tap_state.state) {
150 case SINGLE_TAP: unregister_code(KC_ESC); break; 150 case SINGLE_TAP: unregister_code(KC_ESC); break;
151 case SINGLE_HOLD: unregister_code(KC_ESC); break; 151 case SINGLE_HOLD: unregister_code(KC_ESC); break;
@@ -159,7 +159,7 @@ void layer_switcher_reset (qk_tap_dance_state_t *state, void *user_data) {
159 tap_state.state = 0; 159 tap_state.state = 0;
160} 160}
161 161
162qk_tap_dance_action_t tap_dance_actions[] = { 162tap_dance_action_t tap_dance_actions[] = {
163 // Single tap = Backspace | Double tap = Delete 163 // Single tap = Backspace | Double tap = Delete
164 [TD_BSPC_DEL] = ACTION_TAP_DANCE_DOUBLE(KC_BSPC, KC_DEL), 164 [TD_BSPC_DEL] = ACTION_TAP_DANCE_DOUBLE(KC_BSPC, KC_DEL),
165 // Single tap = ( | Double tap = [ | Triple tap = { | Single hold = KC_LCTL 165 // Single tap = ( | Double tap = [ | Triple tap = { | Single hold = KC_LCTL
diff --git a/keyboards/late9/rev1/keymaps/multitap/keymap.c b/keyboards/late9/rev1/keymaps/multitap/keymap.c
index 9c32699c42..e378fb4921 100644
--- a/keyboards/late9/rev1/keymaps/multitap/keymap.c
+++ b/keyboards/late9/rev1/keymaps/multitap/keymap.c
@@ -68,7 +68,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
68}; 68};
69 69
70// Tap Dance cycles 70// Tap Dance cycles
71void dance_1 (qk_tap_dance_state_t *state, void *user_data) { 71void dance_1 (tap_dance_state_t *state, void *user_data) {
72 if (state->count == 1) { 72 if (state->count == 1) {
73 if (state->interrupted || !state->pressed) return tap_code(KC_DOT); 73 if (state->interrupted || !state->pressed) return tap_code(KC_DOT);
74 else return tap_code(KC_1); 74 else return tap_code(KC_1);
@@ -93,7 +93,7 @@ void dance_1 (qk_tap_dance_state_t *state, void *user_data) {
93 } 93 }
94} 94}
95 95
96void dance_2 (qk_tap_dance_state_t *state, void *user_data) { 96void dance_2 (tap_dance_state_t *state, void *user_data) {
97 if (state->count == 1) { 97 if (state->count == 1) {
98 if (state->interrupted || !state->pressed) return tap_code(KC_A); 98 if (state->interrupted || !state->pressed) return tap_code(KC_A);
99 else return tap_code(KC_2); 99 else return tap_code(KC_2);
@@ -106,7 +106,7 @@ void dance_2 (qk_tap_dance_state_t *state, void *user_data) {
106 } 106 }
107} 107}
108 108
109void dance_3 (qk_tap_dance_state_t *state, void *user_data) { 109void dance_3 (tap_dance_state_t *state, void *user_data) {
110 if (state->count == 1) { 110 if (state->count == 1) {
111 if (state->interrupted || !state->pressed) return tap_code(KC_D); 111 if (state->interrupted || !state->pressed) return tap_code(KC_D);
112 else return tap_code(KC_3); 112 else return tap_code(KC_3);
@@ -119,7 +119,7 @@ void dance_3 (qk_tap_dance_state_t *state, void *user_data) {
119 } 119 }
120} 120}
121 121
122void dance_4 (qk_tap_dance_state_t *state, void *user_data) { 122void dance_4 (tap_dance_state_t *state, void *user_data) {
123 if (state->count == 1) { 123 if (state->count == 1) {
124 if (state->interrupted || !state->pressed) return tap_code(KC_G); 124 if (state->interrupted || !state->pressed) return tap_code(KC_G);
125 else return tap_code(KC_4); 125 else return tap_code(KC_4);
@@ -132,7 +132,7 @@ void dance_4 (qk_tap_dance_state_t *state, void *user_data) {
132 } 132 }
133} 133}
134 134
135void dance_5 (qk_tap_dance_state_t *state, void *user_data) { 135void dance_5 (tap_dance_state_t *state, void *user_data) {
136 if (state->count == 1) { 136 if (state->count == 1) {
137 if (state->interrupted || !state->pressed) return tap_code(KC_J); 137 if (state->interrupted || !state->pressed) return tap_code(KC_J);
138 else return tap_code(KC_5); 138 else return tap_code(KC_5);
@@ -145,7 +145,7 @@ void dance_5 (qk_tap_dance_state_t *state, void *user_data) {
145 } 145 }
146} 146}
147 147
148void dance_6 (qk_tap_dance_state_t *state, void *user_data) { 148void dance_6 (tap_dance_state_t *state, void *user_data) {
149 if (state->count == 1) { 149 if (state->count == 1) {
150 if (state->interrupted || !state->pressed) return tap_code(KC_M); 150 if (state->interrupted || !state->pressed) return tap_code(KC_M);
151 else return tap_code(KC_6); 151 else return tap_code(KC_6);
@@ -158,7 +158,7 @@ void dance_6 (qk_tap_dance_state_t *state, void *user_data) {
158 } 158 }
159} 159}
160 160
161void dance_7 (qk_tap_dance_state_t *state, void *user_data) { 161void dance_7 (tap_dance_state_t *state, void *user_data) {
162 if (state->count == 1) { 162 if (state->count == 1) {
163 if (state->interrupted || !state->pressed) return tap_code(KC_P); 163 if (state->interrupted || !state->pressed) return tap_code(KC_P);
164 else return tap_code(KC_7); 164 else return tap_code(KC_7);
@@ -173,7 +173,7 @@ void dance_7 (qk_tap_dance_state_t *state, void *user_data) {
173 } 173 }
174} 174}
175 175
176void dance_8 (qk_tap_dance_state_t *state, void *user_data) { 176void dance_8 (tap_dance_state_t *state, void *user_data) {
177 if (state->count == 1) { 177 if (state->count == 1) {
178 if (state->interrupted || !state->pressed) return tap_code(KC_T); 178 if (state->interrupted || !state->pressed) return tap_code(KC_T);
179 else return tap_code(KC_8); 179 else return tap_code(KC_8);
@@ -186,7 +186,7 @@ void dance_8 (qk_tap_dance_state_t *state, void *user_data) {
186 } 186 }
187} 187}
188 188
189void dance_9 (qk_tap_dance_state_t *state, void *user_data) { 189void dance_9 (tap_dance_state_t *state, void *user_data) {
190 if (state->count == 1) { 190 if (state->count == 1) {
191 if (state->interrupted || !state->pressed) return tap_code(KC_W); 191 if (state->interrupted || !state->pressed) return tap_code(KC_W);
192 else return tap_code(KC_9); 192 else return tap_code(KC_9);
@@ -201,7 +201,7 @@ void dance_9 (qk_tap_dance_state_t *state, void *user_data) {
201 } 201 }
202} 202}
203 203
204void dance_0 (qk_tap_dance_state_t *state, void *user_data) { 204void dance_0 (tap_dance_state_t *state, void *user_data) {
205 if (state->count == 1) { 205 if (state->count == 1) {
206 if (state->interrupted || !state->pressed) return tap_code(KC_SPACE); 206 if (state->interrupted || !state->pressed) return tap_code(KC_SPACE);
207 else return tap_code(KC_0); 207 else return tap_code(KC_0);
@@ -210,7 +210,7 @@ void dance_0 (qk_tap_dance_state_t *state, void *user_data) {
210 } 210 }
211} 211}
212 212
213void dance_maiusc (qk_tap_dance_state_t *state, void *user_data) { 213void dance_maiusc (tap_dance_state_t *state, void *user_data) {
214 if (state->count == 1) { 214 if (state->count == 1) {
215 if (state->interrupted || !state->pressed) return set_oneshot_mods(MOD_BIT(KC_LSFT)); 215 if (state->interrupted || !state->pressed) return set_oneshot_mods(MOD_BIT(KC_LSFT));
216 else return tap_code(KC_CAPS); 216 else return tap_code(KC_CAPS);
@@ -220,7 +220,7 @@ void dance_maiusc (qk_tap_dance_state_t *state, void *user_data) {
220} 220}
221 221
222// Tap Dance actions 222// Tap Dance actions
223qk_tap_dance_action_t tap_dance_actions[] = { 223tap_dance_action_t tap_dance_actions[] = {
224 [TD_PNCT] = ACTION_TAP_DANCE_FN (dance_1), 224 [TD_PNCT] = ACTION_TAP_DANCE_FN (dance_1),
225 [TD_ABC] = ACTION_TAP_DANCE_FN (dance_2), 225 [TD_ABC] = ACTION_TAP_DANCE_FN (dance_2),
226 [TD_DEF] = ACTION_TAP_DANCE_FN (dance_3), 226 [TD_DEF] = ACTION_TAP_DANCE_FN (dance_3),
diff --git a/keyboards/lets_split/keymaps/adam/keymap.c b/keyboards/lets_split/keymaps/adam/keymap.c
index 6e0a33a24f..12c2f6f04a 100644
--- a/keyboards/lets_split/keymaps/adam/keymap.c
+++ b/keyboards/lets_split/keymaps/adam/keymap.c
@@ -48,7 +48,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
48}; 48};
49 49
50#ifdef TAP_DANCE_ENABLE 50#ifdef TAP_DANCE_ENABLE
51void tap_1(qk_tap_dance_state_t *state, void *user_data) { 51void tap_1(tap_dance_state_t *state, void *user_data) {
52 switch (state->count) { 52 switch (state->count) {
53 case 1: 53 case 1:
54 register_code (KC_1); 54 register_code (KC_1);
@@ -66,7 +66,7 @@ void tap_1(qk_tap_dance_state_t *state, void *user_data) {
66 } 66 }
67} 67}
68 68
69qk_tap_dance_action_t tap_dance_actions[] = { 69tap_dance_action_t tap_dance_actions[] = {
70 [0] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_ESC), 70 [0] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_ESC),
71 [1] = ACTION_TAP_DANCE_FN(tap_1) 71 [1] = ACTION_TAP_DANCE_FN(tap_1)
72}; 72};
diff --git a/keyboards/lets_split/keymaps/cpeters1982/keymap.c b/keyboards/lets_split/keymaps/cpeters1982/keymap.c
index 8428aa58c5..3574fd558f 100644
--- a/keyboards/lets_split/keymaps/cpeters1982/keymap.c
+++ b/keyboards/lets_split/keymaps/cpeters1982/keymap.c
@@ -32,7 +32,7 @@ enum {
32}; 32};
33 33
34// Tap dance definitions 34// Tap dance definitions
35qk_tap_dance_action_t tap_dance_actions[] = { 35tap_dance_action_t tap_dance_actions[] = {
36 [TD_GRV_TILD] = ACTION_TAP_DANCE_DOUBLE(KC_GRV, KC_TILD), 36 [TD_GRV_TILD] = ACTION_TAP_DANCE_DOUBLE(KC_GRV, KC_TILD),
37}; 37};
38*/ 38*/
diff --git a/keyboards/lets_split/keymaps/geripgeri/keymap.c b/keyboards/lets_split/keymaps/geripgeri/keymap.c
index d72d7b6085..6bd524c6b9 100644
--- a/keyboards/lets_split/keymaps/geripgeri/keymap.c
+++ b/keyboards/lets_split/keymaps/geripgeri/keymap.c
@@ -47,10 +47,10 @@ enum {
47#define LOWER MO(_LOWER) 47#define LOWER MO(_LOWER)
48#define RAISE MO(_RAISE) 48#define RAISE MO(_RAISE)
49 49
50int cur_dance (qk_tap_dance_state_t *state); 50int cur_dance (tap_dance_state_t *state);
51 51
52void u_finished (qk_tap_dance_state_t *state, void *user_data); 52void u_finished (tap_dance_state_t *state, void *user_data);
53void o_finished (qk_tap_dance_state_t *state, void *user_data); 53void o_finished (tap_dance_state_t *state, void *user_data);
54 54
55uint8_t rgb_mode = RGBLIGHT_MODE_BREATHING + 1; 55uint8_t rgb_mode = RGBLIGHT_MODE_BREATHING + 1;
56 56
@@ -281,7 +281,7 @@ void led_set_user(uint8_t usb_led) {
281 rgblight_mode_noeeprom(rgb_mode); 281 rgblight_mode_noeeprom(rgb_mode);
282} 282}
283 283
284int cur_dance (qk_tap_dance_state_t *state) { 284int cur_dance (tap_dance_state_t *state) {
285 if (state->count == 1) { 285 if (state->count == 1) {
286 if (state->interrupted || !state->pressed) return SINGLE_TAP; 286 if (state->interrupted || !state->pressed) return SINGLE_TAP;
287 //key has not been interrupted, but they key is still held. Means you want to send a 'HOLD'. 287 //key has not been interrupted, but they key is still held. Means you want to send a 'HOLD'.
@@ -317,7 +317,7 @@ static tap otap_state = {
317 .state = 0 317 .state = 0
318}; 318};
319 319
320void u_finished (qk_tap_dance_state_t *state, void *user_data) { 320void u_finished (tap_dance_state_t *state, void *user_data) {
321 utap_state.state = cur_dance(state); 321 utap_state.state = cur_dance(state);
322 switch(utap_state.state) { 322 switch(utap_state.state) {
323 case SINGLE_TAP: SEND_STRING(SS_RALT("]")); break; 323 case SINGLE_TAP: SEND_STRING(SS_RALT("]")); break;
@@ -326,7 +326,7 @@ void u_finished (qk_tap_dance_state_t *state, void *user_data) {
326 } 326 }
327} 327}
328 328
329void o_finished (qk_tap_dance_state_t *state, void *user_data) { 329void o_finished (tap_dance_state_t *state, void *user_data) {
330 otap_state.state = cur_dance(state); 330 otap_state.state = cur_dance(state);
331 switch(otap_state.state) { 331 switch(otap_state.state) {
332 case SINGLE_TAP: SEND_STRING(SS_RALT("=")); break; 332 case SINGLE_TAP: SEND_STRING(SS_RALT("=")); break;
@@ -335,7 +335,7 @@ void o_finished (qk_tap_dance_state_t *state, void *user_data) {
335 } 335 }
336} 336}
337 337
338qk_tap_dance_action_t tap_dance_actions[] = { 338tap_dance_action_t tap_dance_actions[] = {
339 [U] = ACTION_TAP_DANCE_FN(u_finished), 339 [U] = ACTION_TAP_DANCE_FN(u_finished),
340 [O] = ACTION_TAP_DANCE_FN(o_finished), 340 [O] = ACTION_TAP_DANCE_FN(o_finished),
341 [NEXTPREV] = ACTION_TAP_DANCE_DOUBLE(KC_MNXT, KC_MPRV), 341 [NEXTPREV] = ACTION_TAP_DANCE_DOUBLE(KC_MNXT, KC_MPRV),
diff --git a/keyboards/lets_split/keymaps/heartrobotninja/keymap.c b/keyboards/lets_split/keymaps/heartrobotninja/keymap.c
index 7b01273bc4..dc7bc6712e 100644
--- a/keyboards/lets_split/keymaps/heartrobotninja/keymap.c
+++ b/keyboards/lets_split/keymaps/heartrobotninja/keymap.c
@@ -109,7 +109,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
109 109
110}; 110};
111 111
112qk_tap_dance_action_t tap_dance_actions[] = { 112tap_dance_action_t tap_dance_actions[] = {
113 [TD_BTK] = ACTION_TAP_DANCE_DOUBLE(KC_QUOT, KC_GRV), 113 [TD_BTK] = ACTION_TAP_DANCE_DOUBLE(KC_QUOT, KC_GRV),
114 [TD_TDE] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_TILD), 114 [TD_TDE] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_TILD),
115 [TD_LPRN] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LPRN), 115 [TD_LPRN] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LPRN),
diff --git a/keyboards/lets_split/keymaps/khord/keymap.c b/keyboards/lets_split/keymaps/khord/keymap.c
index 1cee03fe9e..9e300d8e59 100644
--- a/keyboards/lets_split/keymaps/khord/keymap.c
+++ b/keyboards/lets_split/keymaps/khord/keymap.c
@@ -102,7 +102,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
102 102
103}; 103};
104 104
105qk_tap_dance_action_t tap_dance_actions[] = { 105tap_dance_action_t tap_dance_actions[] = {
106 [SFT_CAP] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS) 106 [SFT_CAP] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS)
107}; 107};
108 108
diff --git a/keyboards/lets_split/keymaps/mbsurfer/keymap.c b/keyboards/lets_split/keymaps/mbsurfer/keymap.c
index 43c6bde98c..afe8f3d0e5 100644
--- a/keyboards/lets_split/keymaps/mbsurfer/keymap.c
+++ b/keyboards/lets_split/keymaps/mbsurfer/keymap.c
@@ -153,7 +153,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
153int RGB_current_mode; 153int RGB_current_mode;
154int RGB_current_hue; 154int RGB_current_hue;
155 155
156qk_tap_dance_action_t tap_dance_actions[] = { 156tap_dance_action_t tap_dance_actions[] = {
157 [SFT_CAP] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), 157 [SFT_CAP] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
158 [LFT_HOM] = ACTION_TAP_DANCE_DOUBLE(KC_LEFT, KC_HOME), 158 [LFT_HOM] = ACTION_TAP_DANCE_DOUBLE(KC_LEFT, KC_HOME),
159 [DWN_PDN] = ACTION_TAP_DANCE_DOUBLE(KC_DOWN, KC_PGDN), 159 [DWN_PDN] = ACTION_TAP_DANCE_DOUBLE(KC_DOWN, KC_PGDN),
diff --git a/keyboards/lets_split/keymaps/tylerwince/keymap.c b/keyboards/lets_split/keymaps/tylerwince/keymap.c
index cb21a6f368..3b67f80ae2 100644
--- a/keyboards/lets_split/keymaps/tylerwince/keymap.c
+++ b/keyboards/lets_split/keymaps/tylerwince/keymap.c
@@ -26,7 +26,7 @@ enum {
26 TD_SEMI_COLON, 26 TD_SEMI_COLON,
27}; 27};
28 28
29qk_tap_dance_action_t tap_dance_actions[] = { 29tap_dance_action_t tap_dance_actions[] = {
30 [TD_SEMI_COLON] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_COLN), 30 [TD_SEMI_COLON] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_COLN),
31}; 31};
32 32
diff --git a/keyboards/lfkeyboards/lfk78/keymaps/ca178858/keymap.c b/keyboards/lfkeyboards/lfk78/keymaps/ca178858/keymap.c
index 61ca4bb398..f4d1e010ee 100644
--- a/keyboards/lfkeyboards/lfk78/keymaps/ca178858/keymap.c
+++ b/keyboards/lfkeyboards/lfk78/keymaps/ca178858/keymap.c
@@ -105,7 +105,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
105 ) 105 )
106}; 106};
107 107
108void tap_space_spam_finished(qk_tap_dance_state_t *state, void *user_data) { 108void tap_space_spam_finished(tap_dance_state_t *state, void *user_data) {
109 if (get_mods() & (MOD_BIT(KC_LGUI))) { 109 if (get_mods() & (MOD_BIT(KC_LGUI))) {
110 return; 110 return;
111 } 111 }
@@ -115,12 +115,12 @@ void tap_space_spam_finished(qk_tap_dance_state_t *state, void *user_data) {
115 tap_code(KC_SPC); 115 tap_code(KC_SPC);
116} 116}
117 117
118void tap_space_spam_reset(qk_tap_dance_state_t *state, void *user_data) { 118void tap_space_spam_reset(tap_dance_state_t *state, void *user_data) {
119 spam_space = false; 119 spam_space = false;
120 unregister_code(KC_SPC); 120 unregister_code(KC_SPC);
121} 121}
122 122
123void tap_esc_func_finished(qk_tap_dance_state_t *state, void *user_data) { 123void tap_esc_func_finished(tap_dance_state_t *state, void *user_data) {
124 if (state->pressed) { 124 if (state->pressed) {
125 layer_on(FUNC); 125 layer_on(FUNC);
126 } else { 126 } else {
@@ -128,11 +128,11 @@ void tap_esc_func_finished(qk_tap_dance_state_t *state, void *user_data) {
128 } 128 }
129} 129}
130 130
131void tap_esc_func_reset(qk_tap_dance_state_t *state, void *user_data) { 131void tap_esc_func_reset(tap_dance_state_t *state, void *user_data) {
132 layer_off(FUNC); 132 layer_off(FUNC);
133} 133}
134 134
135qk_tap_dance_action_t tap_dance_actions[] = { 135tap_dance_action_t tap_dance_actions[] = {
136 [TD_ESC_FUNC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_esc_func_finished, tap_esc_func_reset), 136 [TD_ESC_FUNC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_esc_func_finished, tap_esc_func_reset),
137 [TD_SPC_SPAM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_space_spam_finished, tap_space_spam_reset), 137 [TD_SPC_SPAM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_space_spam_finished, tap_space_spam_reset),
138}; 138};
diff --git a/keyboards/lfkeyboards/lfk87/keymaps/ca178858/keymap.c b/keyboards/lfkeyboards/lfk87/keymaps/ca178858/keymap.c
index b483bf730b..0dfba1afac 100644
--- a/keyboards/lfkeyboards/lfk87/keymaps/ca178858/keymap.c
+++ b/keyboards/lfkeyboards/lfk87/keymaps/ca178858/keymap.c
@@ -155,7 +155,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
155 ) 155 )
156}; 156};
157 157
158void tap_esc_func_finished(qk_tap_dance_state_t *state, void *user_data) { 158void tap_esc_func_finished(tap_dance_state_t *state, void *user_data) {
159 if (state->pressed) { 159 if (state->pressed) {
160 layer_on(FUNC); 160 layer_on(FUNC);
161 } else { 161 } else {
@@ -163,11 +163,11 @@ void tap_esc_func_finished(qk_tap_dance_state_t *state, void *user_data) {
163 } 163 }
164} 164}
165 165
166void tap_esc_func_reset(qk_tap_dance_state_t *state, void *user_data) { 166void tap_esc_func_reset(tap_dance_state_t *state, void *user_data) {
167 layer_off(FUNC); 167 layer_off(FUNC);
168} 168}
169 169
170qk_tap_dance_action_t tap_dance_actions[] = { 170tap_dance_action_t tap_dance_actions[] = {
171 [TD_ESC_FUNC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_esc_func_finished, tap_esc_func_reset), 171 [TD_ESC_FUNC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_esc_func_finished, tap_esc_func_reset),
172}; 172};
173 173
diff --git a/keyboards/lfkeyboards/mini1800/keymaps/ca178858/keymap.c b/keyboards/lfkeyboards/mini1800/keymaps/ca178858/keymap.c
index f8985bf537..75abdc258c 100644
--- a/keyboards/lfkeyboards/mini1800/keymaps/ca178858/keymap.c
+++ b/keyboards/lfkeyboards/mini1800/keymaps/ca178858/keymap.c
@@ -93,7 +93,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
93 ) 93 )
94}; 94};
95 95
96void tap_esc_func_finished(qk_tap_dance_state_t *state, void *user_data) { 96void tap_esc_func_finished(tap_dance_state_t *state, void *user_data) {
97 if (state->pressed) { 97 if (state->pressed) {
98 layer_on(FUNC); 98 layer_on(FUNC);
99 } else { 99 } else {
@@ -101,11 +101,11 @@ void tap_esc_func_finished(qk_tap_dance_state_t *state, void *user_data) {
101 } 101 }
102} 102}
103 103
104void tap_esc_func_reset(qk_tap_dance_state_t *state, void *user_data) { 104void tap_esc_func_reset(tap_dance_state_t *state, void *user_data) {
105 layer_off(FUNC); 105 layer_off(FUNC);
106} 106}
107 107
108qk_tap_dance_action_t tap_dance_actions[] = { 108tap_dance_action_t tap_dance_actions[] = {
109 [TD_ESC_FUNC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_esc_func_finished, tap_esc_func_reset), 109 [TD_ESC_FUNC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_esc_func_finished, tap_esc_func_reset),
110}; 110};
111 111
diff --git a/keyboards/maple_computing/launchpad/keymaps/brandonschlack/keymap.c b/keyboards/maple_computing/launchpad/keymaps/brandonschlack/keymap.c
index 6fc28dccc2..cc33fd48a1 100644
--- a/keyboards/maple_computing/launchpad/keymaps/brandonschlack/keymap.c
+++ b/keyboards/maple_computing/launchpad/keymaps/brandonschlack/keymap.c
@@ -41,7 +41,7 @@ enum launchpad_dances {
41 TD_REDR_H 41 TD_REDR_H
42}; 42};
43//Tap Dance Definitions 43//Tap Dance Definitions
44qk_tap_dance_action_t tap_dance_actions[] = { 44tap_dance_action_t tap_dance_actions[] = {
45 [TD_SHLD_LGHT] = ACTION_TAP_DANCE_TRIGGER_LAYER(SINGLE_HOLD, _LIGHT), 45 [TD_SHLD_LGHT] = ACTION_TAP_DANCE_TRIGGER_LAYER(SINGLE_HOLD, _LIGHT),
46 [TD_SHLD_ADJT] = ACTION_TAP_DANCE_TRIGGER_LAYER(SINGLE_HOLD, _ADJUST), 46 [TD_SHLD_ADJT] = ACTION_TAP_DANCE_TRIGGER_LAYER(SINGLE_HOLD, _ADJUST),
47 [TD_REDR_H] = ACTION_TAP_DANCE_DOUBLE(KC_H, KC_R) 47 [TD_REDR_H] = ACTION_TAP_DANCE_DOUBLE(KC_H, KC_R)
diff --git a/keyboards/maple_computing/minidox/keymaps/dustypomerleau/keymap.c b/keyboards/maple_computing/minidox/keymaps/dustypomerleau/keymap.c
index aec8c56b18..12823b0f2b 100644
--- a/keyboards/maple_computing/minidox/keymaps/dustypomerleau/keymap.c
+++ b/keyboards/maple_computing/minidox/keymaps/dustypomerleau/keymap.c
@@ -40,17 +40,17 @@ typedef enum {
40} td_state_t; 40} td_state_t;
41 41
42static td_state_t td_state; 42static td_state_t td_state;
43int cur_dance (qk_tap_dance_state_t *state); 43int cur_dance (tap_dance_state_t *state);
44void altlp_finished (qk_tap_dance_state_t *state, void *user_data); 44void altlp_finished (tap_dance_state_t *state, void *user_data);
45void altlp_reset (qk_tap_dance_state_t *state, void *user_data); 45void altlp_reset (tap_dance_state_t *state, void *user_data);
46void ctlrcb_finished (qk_tap_dance_state_t *state, void *user_data); 46void ctlrcb_finished (tap_dance_state_t *state, void *user_data);
47void ctlrcb_reset (qk_tap_dance_state_t *state, void *user_data); 47void ctlrcb_reset (tap_dance_state_t *state, void *user_data);
48void guirp_finished (qk_tap_dance_state_t *state, void *user_data); 48void guirp_finished (tap_dance_state_t *state, void *user_data);
49void guirp_reset (qk_tap_dance_state_t *state, void *user_data); 49void guirp_reset (tap_dance_state_t *state, void *user_data);
50void sftlcb_finished (qk_tap_dance_state_t *state, void *user_data); 50void sftlcb_finished (tap_dance_state_t *state, void *user_data);
51void sftlcb_reset (qk_tap_dance_state_t *state, void *user_data); 51void sftlcb_reset (tap_dance_state_t *state, void *user_data);
52void sftpls_finished (qk_tap_dance_state_t *state, void *user_data); 52void sftpls_finished (tap_dance_state_t *state, void *user_data);
53void sftpls_reset (qk_tap_dance_state_t *state, void *user_data); 53void sftpls_reset (tap_dance_state_t *state, void *user_data);
54 54
55#define ALT_2 LALT_T(KC_2) 55#define ALT_2 LALT_T(KC_2)
56#define ALT_3 LALT_T(KC_3) 56#define ALT_3 LALT_T(KC_3)
@@ -276,7 +276,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
276 } 276 }
277}; 277};
278 278
279int cur_dance (qk_tap_dance_state_t *state) { 279int cur_dance (tap_dance_state_t *state) {
280 if (state->count == 1) { 280 if (state->count == 1) {
281 if (state->interrupted || !state->pressed) return SINGLE_TAP; 281 if (state->interrupted || !state->pressed) return SINGLE_TAP;
282 else return SINGLE_HOLD; 282 else return SINGLE_HOLD;
@@ -285,7 +285,7 @@ int cur_dance (qk_tap_dance_state_t *state) {
285 else return 3; 285 else return 3;
286} 286}
287 287
288void altlp_finished (qk_tap_dance_state_t *state, void *user_data) { 288void altlp_finished (tap_dance_state_t *state, void *user_data) {
289 td_state = cur_dance(state); 289 td_state = cur_dance(state);
290 switch (td_state) { 290 switch (td_state) {
291 case SINGLE_TAP: 291 case SINGLE_TAP:
@@ -300,7 +300,7 @@ void altlp_finished (qk_tap_dance_state_t *state, void *user_data) {
300 } 300 }
301} 301}
302 302
303void altlp_reset (qk_tap_dance_state_t *state, void *user_data) { 303void altlp_reset (tap_dance_state_t *state, void *user_data) {
304 switch (td_state) { 304 switch (td_state) {
305 case SINGLE_TAP: 305 case SINGLE_TAP:
306 unregister_code16(KC_LPRN); 306 unregister_code16(KC_LPRN);
@@ -313,7 +313,7 @@ void altlp_reset (qk_tap_dance_state_t *state, void *user_data) {
313 } 313 }
314} 314}
315 315
316void ctlrcb_finished (qk_tap_dance_state_t *state, void *user_data) { 316void ctlrcb_finished (tap_dance_state_t *state, void *user_data) {
317 td_state = cur_dance(state); 317 td_state = cur_dance(state);
318 switch (td_state) { 318 switch (td_state) {
319 case SINGLE_TAP: 319 case SINGLE_TAP:
@@ -328,7 +328,7 @@ void ctlrcb_finished (qk_tap_dance_state_t *state, void *user_data) {
328 } 328 }
329} 329}
330 330
331void ctlrcb_reset (qk_tap_dance_state_t *state, void *user_data) { 331void ctlrcb_reset (tap_dance_state_t *state, void *user_data) {
332 switch (td_state) { 332 switch (td_state) {
333 case SINGLE_TAP: 333 case SINGLE_TAP:
334 unregister_code16(KC_RCBR); 334 unregister_code16(KC_RCBR);
@@ -341,7 +341,7 @@ void ctlrcb_reset (qk_tap_dance_state_t *state, void *user_data) {
341 } 341 }
342} 342}
343 343
344void guirp_finished (qk_tap_dance_state_t *state, void *user_data) { 344void guirp_finished (tap_dance_state_t *state, void *user_data) {
345 td_state = cur_dance(state); 345 td_state = cur_dance(state);
346 switch (td_state) { 346 switch (td_state) {
347 case SINGLE_TAP: 347 case SINGLE_TAP:
@@ -356,7 +356,7 @@ void guirp_finished (qk_tap_dance_state_t *state, void *user_data) {
356 } 356 }
357} 357}
358 358
359void guirp_reset (qk_tap_dance_state_t *state, void *user_data) { 359void guirp_reset (tap_dance_state_t *state, void *user_data) {
360 switch (td_state) { 360 switch (td_state) {
361 case SINGLE_TAP: 361 case SINGLE_TAP:
362 unregister_code16(KC_RPRN); 362 unregister_code16(KC_RPRN);
@@ -369,7 +369,7 @@ void guirp_reset (qk_tap_dance_state_t *state, void *user_data) {
369 } 369 }
370} 370}
371 371
372void sftlcb_finished (qk_tap_dance_state_t *state, void *user_data) { 372void sftlcb_finished (tap_dance_state_t *state, void *user_data) {
373 td_state = cur_dance(state); 373 td_state = cur_dance(state);
374 switch (td_state) { 374 switch (td_state) {
375 case SINGLE_TAP: 375 case SINGLE_TAP:
@@ -384,7 +384,7 @@ void sftlcb_finished (qk_tap_dance_state_t *state, void *user_data) {
384 } 384 }
385} 385}
386 386
387void sftlcb_reset (qk_tap_dance_state_t *state, void *user_data) { 387void sftlcb_reset (tap_dance_state_t *state, void *user_data) {
388 switch (td_state) { 388 switch (td_state) {
389 case SINGLE_TAP: 389 case SINGLE_TAP:
390 unregister_code16(KC_LCBR); 390 unregister_code16(KC_LCBR);
@@ -397,7 +397,7 @@ void sftlcb_reset (qk_tap_dance_state_t *state, void *user_data) {
397 } 397 }
398} 398}
399 399
400void sftpls_finished (qk_tap_dance_state_t *state, void *user_data) { 400void sftpls_finished (tap_dance_state_t *state, void *user_data) {
401 td_state = cur_dance(state); 401 td_state = cur_dance(state);
402 switch (td_state) { 402 switch (td_state) {
403 case SINGLE_TAP: 403 case SINGLE_TAP:
@@ -412,7 +412,7 @@ void sftpls_finished (qk_tap_dance_state_t *state, void *user_data) {
412 } 412 }
413} 413}
414 414
415void sftpls_reset (qk_tap_dance_state_t *state, void *user_data) { 415void sftpls_reset (tap_dance_state_t *state, void *user_data) {
416 switch (td_state) { 416 switch (td_state) {
417 case SINGLE_TAP: 417 case SINGLE_TAP:
418 unregister_code16(KC_PLUS); 418 unregister_code16(KC_PLUS);
@@ -425,7 +425,7 @@ void sftpls_reset (qk_tap_dance_state_t *state, void *user_data) {
425 } 425 }
426} 426}
427 427
428qk_tap_dance_action_t tap_dance_actions[] = { 428tap_dance_action_t tap_dance_actions[] = {
429 [ALT_LP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altlp_finished, altlp_reset), 429 [ALT_LP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altlp_finished, altlp_reset),
430 [CTL_RCB] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctlrcb_finished, ctlrcb_reset), 430 [CTL_RCB] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctlrcb_finished, ctlrcb_reset),
431 [GUI_RP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, guirp_finished, guirp_reset), 431 [GUI_RP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, guirp_finished, guirp_reset),
diff --git a/keyboards/marksard/treadstone32/keymaps/default/keymap.c b/keyboards/marksard/treadstone32/keymaps/default/keymap.c
index d0cef28353..cbc8ed42bb 100644
--- a/keyboards/marksard/treadstone32/keymaps/default/keymap.c
+++ b/keyboards/marksard/treadstone32/keymaps/default/keymap.c
@@ -55,7 +55,7 @@ enum custom_keycodes {
55// #define KC_CODO TD(TD_CODO) 55// #define KC_CODO TD(TD_CODO)
56// #define KC_SLRO TD(TD_SLRO) 56// #define KC_SLRO TD(TD_SLRO)
57 57
58// qk_tap_dance_action_t tap_dance_actions[] = { 58// tap_dance_action_t tap_dance_actions[] = {
59// [TD_CODO] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_DOT), 59// [TD_CODO] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_DOT),
60// [TD_SLRO] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, JP_BSLS), 60// [TD_SLRO] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, JP_BSLS),
61// }; 61// };
diff --git a/keyboards/marksard/treadstone32/keymaps/like_jis/keymap.c b/keyboards/marksard/treadstone32/keymaps/like_jis/keymap.c
index 701d6ed688..e11726b7e2 100644
--- a/keyboards/marksard/treadstone32/keymaps/like_jis/keymap.c
+++ b/keyboards/marksard/treadstone32/keymaps/like_jis/keymap.c
@@ -56,7 +56,7 @@ enum custom_keycodes {
56// #define KC_CODO TD(TD_CODO) 56// #define KC_CODO TD(TD_CODO)
57// #define KC_SLRO TD(TD_SLRO) 57// #define KC_SLRO TD(TD_SLRO)
58 58
59// qk_tap_dance_action_t tap_dance_actions[] = { 59// tap_dance_action_t tap_dance_actions[] = {
60// [TD_CODO] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_DOT), 60// [TD_CODO] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_DOT),
61// [TD_SLRO] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, JP_BSLS), 61// [TD_SLRO] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, JP_BSLS),
62// }; 62// };
diff --git a/keyboards/massdrop/alt/keymaps/jdelkins/keymap.c b/keyboards/massdrop/alt/keymaps/jdelkins/keymap.c
index d953b4fcfe..4c9a8860f4 100644
--- a/keyboards/massdrop/alt/keymaps/jdelkins/keymap.c
+++ b/keyboards/massdrop/alt/keymaps/jdelkins/keymap.c
@@ -42,7 +42,7 @@ enum alt_keycodes {
42 42
43int ctl_state = 0; 43int ctl_state = 0;
44 44
45void ctl_finished(qk_tap_dance_state_t *state, void *user_data) { 45void ctl_finished(tap_dance_state_t *state, void *user_data) {
46 ctl_state = cur_dance(state); 46 ctl_state = cur_dance(state);
47 switch(ctl_state) { 47 switch(ctl_state) {
48 case SINGLE_TAP: leader_start(); break; 48 case SINGLE_TAP: leader_start(); break;
@@ -54,7 +54,7 @@ void ctl_finished(qk_tap_dance_state_t *state, void *user_data) {
54 } 54 }
55} 55}
56 56
57void ctl_reset(qk_tap_dance_state_t *state, void *user_data) { 57void ctl_reset(tap_dance_state_t *state, void *user_data) {
58 switch(ctl_state) { 58 switch(ctl_state) {
59 case SINGLE_HOLD: unregister_code(KC_LCTL); break; 59 case SINGLE_HOLD: unregister_code(KC_LCTL); break;
60 case DOUBLE_HOLD: 60 case DOUBLE_HOLD:
@@ -63,7 +63,7 @@ void ctl_reset(qk_tap_dance_state_t *state, void *user_data) {
63 ctl_state = 0; 63 ctl_state = 0;
64} 64}
65 65
66void g_finished(qk_tap_dance_state_t *state, void *user_data) { 66void g_finished(tap_dance_state_t *state, void *user_data) {
67 switch (cur_dance(state)) { 67 switch (cur_dance(state)) {
68 case SINGLE_TAP: 68 case SINGLE_TAP:
69 tap_code16(C(KC_END)); 69 tap_code16(C(KC_END));
@@ -80,7 +80,7 @@ enum {
80 TD_G, 80 TD_G,
81}; 81};
82 82
83qk_tap_dance_action_t tap_dance_actions[] = { 83tap_dance_action_t tap_dance_actions[] = {
84 [TD_LDCTL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctl_finished, ctl_reset), 84 [TD_LDCTL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctl_finished, ctl_reset),
85 [TD_GUI] = ACTION_TAP_DANCE_DOUBLE(KC_LGUI, KC_RGUI), 85 [TD_GUI] = ACTION_TAP_DANCE_DOUBLE(KC_LGUI, KC_RGUI),
86 [TD_G] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, g_finished, NULL), 86 [TD_G] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, g_finished, NULL),
diff --git a/keyboards/massdrop/ctrl/keymaps/endgame/keymap.c b/keyboards/massdrop/ctrl/keymaps/endgame/keymap.c
index aaea8199f1..87b14ff93f 100644
--- a/keyboards/massdrop/ctrl/keymaps/endgame/keymap.c
+++ b/keyboards/massdrop/ctrl/keymaps/endgame/keymap.c
@@ -25,7 +25,7 @@ static const char * sendstring_commands[] = {
25}; 25};
26 26
27//Associate our tap dance key with its functionality 27//Associate our tap dance key with its functionality
28qk_tap_dance_action_t tap_dance_actions[] = { 28tap_dance_action_t tap_dance_actions[] = {
29 [TD_LGUI_ML] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_LGUI, _ML), 29 [TD_LGUI_ML] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_LGUI, _ML),
30 [TD_APP_YL] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_APP, _YL), 30 [TD_APP_YL] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_APP, _YL),
31 [TD_CTRL_TERM] = ACTION_TAP_DANCE_DOUBLE(KC_LCTL, LCA(KC_T)), 31 [TD_CTRL_TERM] = ACTION_TAP_DANCE_DOUBLE(KC_LCTL, LCA(KC_T)),
diff --git a/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c b/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c
index 3dbb48f16c..ac41b17a96 100644
--- a/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c
+++ b/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.c
@@ -355,7 +355,7 @@ bool rgb_matrix_indicators_user(void) {
355 355
356 356
357 357
358td_state_t cur_dance(qk_tap_dance_state_t *state) { 358td_state_t cur_dance(tap_dance_state_t *state) {
359 if (state->pressed && !state->interrupted) { 359 if (state->pressed && !state->interrupted) {
360 if (state->count == 1) { return TD_SINGLE_HOLD; } 360 if (state->count == 1) { return TD_SINGLE_HOLD; }
361 return TD_DOUBLE_HOLD; 361 return TD_DOUBLE_HOLD;
@@ -368,7 +368,7 @@ static td_tap_t fn_tap_state = {
368 .state = TD_NONE 368 .state = TD_NONE
369}; 369};
370 370
371void fn_tap_finished(qk_tap_dance_state_t *state, void *user_data) { 371void fn_tap_finished(tap_dance_state_t *state, void *user_data) {
372 fn_tap_state.state = cur_dance(state); 372 fn_tap_state.state = cur_dance(state);
373 switch (fn_tap_state.state) { 373 switch (fn_tap_state.state) {
374 case TD_SINGLE_HOLD: 374 case TD_SINGLE_HOLD:
@@ -387,7 +387,7 @@ void fn_tap_finished(qk_tap_dance_state_t *state, void *user_data) {
387 } 387 }
388} 388}
389 389
390void fn_tap_reset(qk_tap_dance_state_t *state, void *user_data) { 390void fn_tap_reset(tap_dance_state_t *state, void *user_data) {
391 switch (fn_tap_state.state) { 391 switch (fn_tap_state.state) {
392 case TD_UNKNOWN: 392 case TD_UNKNOWN:
393 unregister_code(KC_APP); 393 unregister_code(KC_APP);
@@ -406,6 +406,6 @@ void fn_tap_reset(qk_tap_dance_state_t *state, void *user_data) {
406 fn_tap_state.state = TD_NONE; 406 fn_tap_state.state = TD_NONE;
407} 407}
408 408
409qk_tap_dance_action_t tap_dance_actions[] = { 409tap_dance_action_t tap_dance_actions[] = {
410 [TD_FN_SWITCH] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, fn_tap_finished, fn_tap_reset) 410 [TD_FN_SWITCH] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, fn_tap_finished, fn_tap_reset)
411}; 411};
diff --git a/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.h b/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.h
index 4f5238e702..2dae7131e4 100644
--- a/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.h
+++ b/keyboards/massdrop/ctrl/keymaps/xanimos/keymap.h
@@ -86,11 +86,11 @@ typedef struct {
86// Declare your tapdance functions: 86// Declare your tapdance functions:
87 87
88// Function to determine the current tapdance state 88// Function to determine the current tapdance state
89td_state_t cur_dance(qk_tap_dance_state_t *state); 89td_state_t cur_dance(tap_dance_state_t *state);
90 90
91// `finished` and `reset` functions for each tapdance keycode 91// `finished` and `reset` functions for each tapdance keycode
92void fn_tap_finished(qk_tap_dance_state_t *state, void *user_data); 92void fn_tap_finished(tap_dance_state_t *state, void *user_data);
93void fn_tap_reset(qk_tap_dance_state_t *state, void *user_data); 93void fn_tap_reset(tap_dance_state_t *state, void *user_data);
94 94
95enum ctrl_keycodes { 95enum ctrl_keycodes {
96 MD_BOOT = SAFE_RANGE, // Restart into bootloader after hold timeout 96 MD_BOOT = SAFE_RANGE, // Restart into bootloader after hold timeout
diff --git a/keyboards/matrix/noah/keymaps/blockader/keymap.c b/keyboards/matrix/noah/keymaps/blockader/keymap.c
index b6d9a9acc3..cec0905677 100644
--- a/keyboards/matrix/noah/keymaps/blockader/keymap.c
+++ b/keyboards/matrix/noah/keymaps/blockader/keymap.c
@@ -32,7 +32,7 @@ enum{
32 DANCE_PGUP_TOP, 32 DANCE_PGUP_TOP,
33}; 33};
34 34
35qk_tap_dance_action_t tap_dance_actions[] = { 35tap_dance_action_t tap_dance_actions[] = {
36 [DANCE_PGDN_BOTTOM] = ACTION_TAP_DANCE_DOUBLE(KC_PGDN, LGUI(KC_DOWN)), 36 [DANCE_PGDN_BOTTOM] = ACTION_TAP_DANCE_DOUBLE(KC_PGDN, LGUI(KC_DOWN)),
37 [DANCE_PGUP_TOP] = ACTION_TAP_DANCE_DOUBLE(KC_PGUP, LGUI(KC_UP)), 37 [DANCE_PGUP_TOP] = ACTION_TAP_DANCE_DOUBLE(KC_PGUP, LGUI(KC_UP)),
38}; 38};
diff --git a/keyboards/mechkeys/mechmini/v2/keymaps/lbibass_625_space/keymap.c b/keyboards/mechkeys/mechmini/v2/keymaps/lbibass_625_space/keymap.c
index e39e6d00b2..566a2f9bee 100755
--- a/keyboards/mechkeys/mechmini/v2/keymaps/lbibass_625_space/keymap.c
+++ b/keyboards/mechkeys/mechmini/v2/keymaps/lbibass_625_space/keymap.c
@@ -11,7 +11,7 @@ enum
11 TD_DOTCOM = 0 11 TD_DOTCOM = 0
12}; 12};
13//Tap Dance Definitions 13//Tap Dance Definitions
14qk_tap_dance_action_t tap_dance_actions[] = { 14tap_dance_action_t tap_dance_actions[] = {
15 //Tap once for Esc, twice for Caps Lock 15 //Tap once for Esc, twice for Caps Lock
16 [TD_DOTCOM] = ACTION_TAP_DANCE_DOUBLE(KC_COMMA, KC_DOT) 16 [TD_DOTCOM] = ACTION_TAP_DANCE_DOUBLE(KC_COMMA, KC_DOT)
17 // Other declarations would go here, separated by commas, if you have them 17 // Other declarations would go here, separated by commas, if you have them
diff --git a/keyboards/mechkeys/mechmini/v2/keymaps/wsturgiss/keymap.c b/keyboards/mechkeys/mechmini/v2/keymaps/wsturgiss/keymap.c
index c55bc30ada..2338bb7d04 100644
--- a/keyboards/mechkeys/mechmini/v2/keymaps/wsturgiss/keymap.c
+++ b/keyboards/mechkeys/mechmini/v2/keymaps/wsturgiss/keymap.c
@@ -13,7 +13,7 @@ enum {
13}; 13};
14 14
15//Tap Dance Definitions 15//Tap Dance Definitions
16qk_tap_dance_action_t tap_dance_actions[] = { 16tap_dance_action_t tap_dance_actions[] = {
17 //Tap once for ;, twice for ' -not using this currently 17 //Tap once for ;, twice for ' -not using this currently
18 [TD_SEMI_QUOT] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_QUOT), 18 [TD_SEMI_QUOT] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_QUOT),
19 //Tap once for , twice for - 19 //Tap once for , twice for -
diff --git a/keyboards/mechwild/bde/lefty/keymaps/fancy/keymap.c b/keyboards/mechwild/bde/lefty/keymaps/fancy/keymap.c
index 3240dbdfb2..b70ac7a8ed 100644
--- a/keyboards/mechwild/bde/lefty/keymaps/fancy/keymap.c
+++ b/keyboards/mechwild/bde/lefty/keymaps/fancy/keymap.c
@@ -44,9 +44,9 @@ enum {
44 left_enter, 44 left_enter,
45}; 45};
46 46
47uint8_t cur_dance(qk_tap_dance_state_t *state); 47uint8_t cur_dance(tap_dance_state_t *state);
48void left_enter_finished(qk_tap_dance_state_t *state, void *user_data); 48void left_enter_finished(tap_dance_state_t *state, void *user_data);
49void left_enter_reset(qk_tap_dance_state_t *state, void *user_data); 49void left_enter_reset(tap_dance_state_t *state, void *user_data);
50 50
51 51
52 52
@@ -79,7 +79,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
79}; 79};
80 80
81 81
82uint8_t cur_dance(qk_tap_dance_state_t *state) { 82uint8_t cur_dance(tap_dance_state_t *state) {
83 if (state->count == 1) { 83 if (state->count == 1) {
84 if (state->interrupted || !state->pressed) return SINGLE_TAP; 84 if (state->interrupted || !state->pressed) return SINGLE_TAP;
85 // Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'. 85 // Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'.
@@ -95,7 +95,7 @@ static tap left_enter_tap_state = {
95 .state = 0 95 .state = 0
96}; 96};
97 97
98void left_enter_finished(qk_tap_dance_state_t *state, void *user_data) { 98void left_enter_finished(tap_dance_state_t *state, void *user_data) {
99 left_enter_tap_state.state = cur_dance(state); 99 left_enter_tap_state.state = cur_dance(state);
100 switch (left_enter_tap_state.state) { 100 switch (left_enter_tap_state.state) {
101 //case SINGLE_TAP: register_code(KC_ENT); break; 101 //case SINGLE_TAP: register_code(KC_ENT); break;
@@ -104,7 +104,7 @@ void left_enter_finished(qk_tap_dance_state_t *state, void *user_data) {
104 } 104 }
105} 105}
106 106
107void left_enter_reset(qk_tap_dance_state_t *state, void *user_data) { 107void left_enter_reset(tap_dance_state_t *state, void *user_data) {
108 switch (left_enter_tap_state.state) { 108 switch (left_enter_tap_state.state) {
109 //case SINGLE_TAP: unregister_code(KC_ENT); break; 109 //case SINGLE_TAP: unregister_code(KC_ENT); break;
110 case SINGLE_HOLD: unregister_code(KC_LSFT); break; 110 case SINGLE_HOLD: unregister_code(KC_LSFT); break;
@@ -113,7 +113,7 @@ void left_enter_reset(qk_tap_dance_state_t *state, void *user_data) {
113 left_enter_tap_state.state = 0; 113 left_enter_tap_state.state = 0;
114} 114}
115 115
116qk_tap_dance_action_t tap_dance_actions[] = { 116tap_dance_action_t tap_dance_actions[] = {
117 [left_enter] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, left_enter_finished, left_enter_reset) 117 [left_enter] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, left_enter_finished, left_enter_reset)
118}; 118};
119 119
diff --git a/keyboards/mechwild/mercutio/keymaps/fearless_spiff/keymap.c b/keyboards/mechwild/mercutio/keymaps/fearless_spiff/keymap.c
index f150c04803..76438f9dc3 100644
--- a/keyboards/mechwild/mercutio/keymaps/fearless_spiff/keymap.c
+++ b/keyboards/mechwild/mercutio/keymaps/fearless_spiff/keymap.c
@@ -58,7 +58,7 @@ enum {
58}; 58};
59 59
60// Tap Dance definitions 60// Tap Dance definitions
61qk_tap_dance_action_t tap_dance_actions[] = { 61tap_dance_action_t tap_dance_actions[] = {
62 // Tap once for Tab, twice for Esc 62 // Tap once for Tab, twice for Esc
63 [TD_TAB_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_ESC), 63 [TD_TAB_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_ESC),
64}; 64};
diff --git a/keyboards/mechwild/mercutio/keymaps/fearless_spiff_en/keymap.c b/keyboards/mechwild/mercutio/keymaps/fearless_spiff_en/keymap.c
index b39bc8b123..c79c00a707 100644
--- a/keyboards/mechwild/mercutio/keymaps/fearless_spiff_en/keymap.c
+++ b/keyboards/mechwild/mercutio/keymaps/fearless_spiff_en/keymap.c
@@ -57,7 +57,7 @@ enum {
57}; 57};
58 58
59// Tap Dance definitions 59// Tap Dance definitions
60qk_tap_dance_action_t tap_dance_actions[] = { 60tap_dance_action_t tap_dance_actions[] = {
61 // Tap once for Tab, twice for Esc 61 // Tap once for Tab, twice for Esc
62 [TD_TAB_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_ESC), 62 [TD_TAB_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_ESC),
63}; 63};
diff --git a/keyboards/minimacro5/keymaps/devdev/keymap.c b/keyboards/minimacro5/keymaps/devdev/keymap.c
index 3c203fcc37..cb183a91b7 100644
--- a/keyboards/minimacro5/keymaps/devdev/keymap.c
+++ b/keyboards/minimacro5/keymaps/devdev/keymap.c
@@ -114,7 +114,7 @@ void keyboard_post_init_user(void) {
114} 114}
115 115
116// Tap Dance definitions 116// Tap Dance definitions
117qk_tap_dance_action_t tap_dance_actions[] = { 117tap_dance_action_t tap_dance_actions[] = {
118 // Tap once for Escape, twice for Caps Lock 118 // Tap once for Escape, twice for Caps Lock
119 [TD_TO_DISCORD] = ACTION_TAP_DANCE_LAYER_MOVE(KC_MUTE, _DISCORD), 119 [TD_TO_DISCORD] = ACTION_TAP_DANCE_LAYER_MOVE(KC_MUTE, _DISCORD),
120 [TD_TO_PHOTOSHOP] = ACTION_TAP_DANCE_LAYER_MOVE(KC_E, _PHOTOSHOP), 120 [TD_TO_PHOTOSHOP] = ACTION_TAP_DANCE_LAYER_MOVE(KC_E, _PHOTOSHOP),
diff --git a/keyboards/mt/mt980/keymaps/walker/keymap.c b/keyboards/mt/mt980/keymaps/walker/keymap.c
index 87e0998687..4e284ec913 100644
--- a/keyboards/mt/mt980/keymaps/walker/keymap.c
+++ b/keyboards/mt/mt980/keymaps/walker/keymap.c
@@ -20,9 +20,9 @@ enum {
20 ALT_L1 = 0 20 ALT_L1 = 0
21}; 21};
22 22
23int cur_dance (qk_tap_dance_state_t *state); 23int cur_dance (tap_dance_state_t *state);
24void alt_finished (qk_tap_dance_state_t *state, void *user_data); 24void alt_finished (tap_dance_state_t *state, void *user_data);
25void alt_reset (qk_tap_dance_state_t *state, void *user_data); 25void alt_reset (tap_dance_state_t *state, void *user_data);
26 26
27const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 27const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
28 28
@@ -44,7 +44,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
44 44
45}; 45};
46 46
47int cur_dance (qk_tap_dance_state_t *state) { 47int cur_dance (tap_dance_state_t *state) {
48 if (state->count == 1) { 48 if (state->count == 1) {
49 if (state->pressed) return SINGLE_HOLD; 49 if (state->pressed) return SINGLE_HOLD;
50 else return SINGLE_TAP; 50 else return SINGLE_TAP;
@@ -65,7 +65,7 @@ static tap alttap_state = {
65 .state = 0 65 .state = 0
66}; 66};
67 67
68void alt_finished (qk_tap_dance_state_t *state, void *user_data) { 68void alt_finished (tap_dance_state_t *state, void *user_data) {
69 alttap_state.state = cur_dance(state); 69 alttap_state.state = cur_dance(state);
70 switch (alttap_state.state) { 70 switch (alttap_state.state) {
71 case SINGLE_TAP: set_oneshot_layer(1, ONESHOT_START); clear_oneshot_layer_state(ONESHOT_PRESSED); break; 71 case SINGLE_TAP: set_oneshot_layer(1, ONESHOT_START); clear_oneshot_layer_state(ONESHOT_PRESSED); break;
@@ -75,7 +75,7 @@ void alt_finished (qk_tap_dance_state_t *state, void *user_data) {
75 } 75 }
76} 76}
77 77
78void alt_reset (qk_tap_dance_state_t *state, void *user_data) { 78void alt_reset (tap_dance_state_t *state, void *user_data) {
79 switch (alttap_state.state) { 79 switch (alttap_state.state) {
80 case SINGLE_TAP: break; 80 case SINGLE_TAP: break;
81 case SINGLE_HOLD: unregister_code(KC_LALT); break; 81 case SINGLE_HOLD: unregister_code(KC_LALT); break;
@@ -85,7 +85,7 @@ void alt_reset (qk_tap_dance_state_t *state, void *user_data) {
85 alttap_state.state = 0; 85 alttap_state.state = 0;
86} 86}
87 87
88qk_tap_dance_action_t tap_dance_actions[] = { 88tap_dance_action_t tap_dance_actions[] = {
89 [ALT_L1] = ACTION_TAP_DANCE_FN_ADVANCED(NULL,alt_finished, alt_reset) 89 [ALT_L1] = ACTION_TAP_DANCE_FN_ADVANCED(NULL,alt_finished, alt_reset)
90}; 90};
91 91
diff --git a/keyboards/nasu/keymaps/mariocs/keymap.c b/keyboards/nasu/keymaps/mariocs/keymap.c
index d68ff76dbf..d8cae4295d 100644
--- a/keyboards/nasu/keymaps/mariocs/keymap.c
+++ b/keyboards/nasu/keymaps/mariocs/keymap.c
@@ -25,7 +25,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
25 return state; 25 return state;
26} 26}
27 27
28qk_tap_dance_action_t tap_dance_actions[] = { 28tap_dance_action_t tap_dance_actions[] = {
29 [TD_LGUI] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_LGUI, 1), 29 [TD_LGUI] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_LGUI, 1),
30}; 30};
31 31
diff --git a/keyboards/numatreus/keymaps/like_jis/keymap.c b/keyboards/numatreus/keymaps/like_jis/keymap.c
index fbcbea84c2..bfb258c37e 100644
--- a/keyboards/numatreus/keymaps/like_jis/keymap.c
+++ b/keyboards/numatreus/keymaps/like_jis/keymap.c
@@ -56,7 +56,7 @@ enum tapdances{
56#define KC_CODO TD(TD_CODO) 56#define KC_CODO TD(TD_CODO)
57// #define KC_MNUB TD(TD_MNUB) 57// #define KC_MNUB TD(TD_MNUB)
58 58
59qk_tap_dance_action_t tap_dance_actions[] = { 59tap_dance_action_t tap_dance_actions[] = {
60 [TD_CODO] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_DOT), 60 [TD_CODO] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_DOT),
61 // [TD_MNUB] = ACTION_TAP_DANCE_DOUBLE(KC_MINS, LSFT(JP_BSLS)), 61 // [TD_MNUB] = ACTION_TAP_DANCE_DOUBLE(KC_MINS, LSFT(JP_BSLS)),
62}; 62};
diff --git a/keyboards/planck/keymaps/altgr/common/keycode_functions.h b/keyboards/planck/keymaps/altgr/common/keycode_functions.h
index e0ae15089c..1aed08b37a 100644
--- a/keyboards/planck/keymaps/altgr/common/keycode_functions.h
+++ b/keyboards/planck/keymaps/altgr/common/keycode_functions.h
@@ -109,7 +109,7 @@ void double_shift(uint16_t keycode, uint8_t layer)
109} 109}
110 110
111// tap dance LT (LAYER, KEY) emulation with <KEY><DOWN> -> <KEY><SHIFT> and auto-repeat extensions! 111// tap dance LT (LAYER, KEY) emulation with <KEY><DOWN> -> <KEY><SHIFT> and auto-repeat extensions!
112void tap_shift(qk_tap_dance_state_t *state, uint16_t keycode, uint8_t layer) 112void tap_shift(tap_dance_state_t *state, uint16_t keycode, uint8_t layer)
113{ 113{
114 // double tap plus down 114 // double tap plus down
115 if (state->count > 2) { 115 if (state->count > 2) {
@@ -152,23 +152,23 @@ void tap_reset(uint16_t keycode, uint8_t layer)
152} 152}
153 153
154// augment pseudo LT (_RSHIFT, KC_ENT) handling below for rapid <ENTER><SHIFT> sequences 154// augment pseudo LT (_RSHIFT, KC_ENT) handling below for rapid <ENTER><SHIFT> sequences
155void enter(qk_tap_dance_state_t *state, void *user_data) 155void enter(tap_dance_state_t *state, void *user_data)
156{ 156{
157 tap_shift(state, KC_ENT, _RSHIFT); 157 tap_shift(state, KC_ENT, _RSHIFT);
158} 158}
159 159
160void enter_reset(qk_tap_dance_state_t *state, void *user_data) 160void enter_reset(tap_dance_state_t *state, void *user_data)
161{ 161{
162 tap_reset(KC_ENT, _RSHIFT); 162 tap_reset(KC_ENT, _RSHIFT);
163} 163}
164 164
165// augment pseudo LT (_LSHIFT, KC_SPC) handling below for rapid <SPACE><SHIFT> sequences 165// augment pseudo LT (_LSHIFT, KC_SPC) handling below for rapid <SPACE><SHIFT> sequences
166void space(qk_tap_dance_state_t *state, void *user_data) 166void space(tap_dance_state_t *state, void *user_data)
167{ 167{
168 tap_shift(state, KC_SPC, _LSHIFT); 168 tap_shift(state, KC_SPC, _LSHIFT);
169} 169}
170 170
171void space_reset(qk_tap_dance_state_t *state, void *user_data) 171void space_reset(tap_dance_state_t *state, void *user_data)
172{ 172{
173 tap_reset(KC_SPC, _LSHIFT); 173 tap_reset(KC_SPC, _LSHIFT);
174} 174}
@@ -191,7 +191,7 @@ void double_max(uint8_t count, uint8_t shift, uint16_t keycode)
191 } 191 }
192} 192}
193 193
194void colon(qk_tap_dance_state_t *state, void *user_data) 194void colon(tap_dance_state_t *state, void *user_data)
195{ 195{
196 if (state->count > 2) { 196 if (state->count > 2) {
197 tap_key (KC_SPC); 197 tap_key (KC_SPC);
@@ -205,7 +205,7 @@ void colon(qk_tap_dance_state_t *state, void *user_data)
205 reset_tap_dance(state); 205 reset_tap_dance(state);
206} 206}
207 207
208void eql(qk_tap_dance_state_t *state, void *user_data) 208void eql(tap_dance_state_t *state, void *user_data)
209{ 209{
210 if (state->count > 2) { 210 if (state->count > 2) {
211 tap_key(KC_SPC); 211 tap_key(KC_SPC);
@@ -219,7 +219,7 @@ void eql(qk_tap_dance_state_t *state, void *user_data)
219 reset_tap_dance(state); 219 reset_tap_dance(state);
220} 220}
221 221
222void greater(qk_tap_dance_state_t *state, void *user_data) 222void greater(tap_dance_state_t *state, void *user_data)
223{ 223{
224 if (state->count > 2) { 224 if (state->count > 2) {
225 tap_key (KC_SPC); 225 tap_key (KC_SPC);
@@ -233,7 +233,7 @@ void greater(qk_tap_dance_state_t *state, void *user_data)
233 reset_tap_dance(state); 233 reset_tap_dance(state);
234} 234}
235 235
236void lesser(qk_tap_dance_state_t *state, void *user_data) 236void lesser(tap_dance_state_t *state, void *user_data)
237{ 237{
238 if (state->count > 2) { 238 if (state->count > 2) {
239 tap_key (KC_SPC); 239 tap_key (KC_SPC);
@@ -247,7 +247,7 @@ void lesser(qk_tap_dance_state_t *state, void *user_data)
247 reset_tap_dance(state); 247 reset_tap_dance(state);
248} 248}
249 249
250void tilde(qk_tap_dance_state_t *state, void *user_data) 250void tilde(tap_dance_state_t *state, void *user_data)
251{ 251{
252 // double tap plus down: repeating keycode 252 // double tap plus down: repeating keycode
253 if (state->count > 2) { 253 if (state->count > 2) {
@@ -264,7 +264,7 @@ void tilde(qk_tap_dance_state_t *state, void *user_data)
264 } 264 }
265} 265}
266 266
267void tilde_reset(qk_tap_dance_state_t *state, void *user_data) 267void tilde_reset(tap_dance_state_t *state, void *user_data)
268{ 268{
269 unregister_code(KC_GRV); 269 unregister_code(KC_GRV);
270 unregister_code(KC_LSFT); 270 unregister_code(KC_LSFT);
@@ -293,7 +293,7 @@ void symbol_pair(uint8_t shift, uint16_t left, uint16_t right)
293#define CLOSE 1 293#define CLOSE 1
294 294
295// tap dance symbol pairs 295// tap dance symbol pairs
296void tap_pair(qk_tap_dance_state_t *state, uint8_t shift, uint16_t left, uint16_t right, uint16_t modifier, uint8_t close) 296void tap_pair(tap_dance_state_t *state, uint8_t shift, uint16_t left, uint16_t right, uint16_t modifier, uint8_t close)
297{ 297{
298 // triple tap: left right with cursor between symbol pair a la vim :-) 298 // triple tap: left right with cursor between symbol pair a la vim :-)
299 if (state->count > 2) { 299 if (state->count > 2) {
@@ -324,69 +324,69 @@ void tap_pair(qk_tap_dance_state_t *state, uint8_t shift, uint16_t left, uint16_
324 } 324 }
325} 325}
326 326
327void doublequote(qk_tap_dance_state_t *state, void *user_data) 327void doublequote(tap_dance_state_t *state, void *user_data)
328{ 328{
329 tap_pair(state, S_ALWAYS, KC_QUOT, KC_QUOT, 0, 0); 329 tap_pair(state, S_ALWAYS, KC_QUOT, KC_QUOT, 0, 0);
330} 330}
331 331
332void grave(qk_tap_dance_state_t *state, void *user_data) 332void grave(tap_dance_state_t *state, void *user_data)
333{ 333{
334 tap_pair(state, S_NEVER, KC_GRV, KC_GRV, 0, 0); 334 tap_pair(state, S_NEVER, KC_GRV, KC_GRV, 0, 0);
335} 335}
336 336
337void lbrace(qk_tap_dance_state_t *state, void *user_data) 337void lbrace(tap_dance_state_t *state, void *user_data)
338{ 338{
339 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, 0); 339 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, 0);
340} 340}
341 341
342void lcurly(qk_tap_dance_state_t *state, void *user_data) 342void lcurly(tap_dance_state_t *state, void *user_data)
343{ 343{
344 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, 0); 344 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, 0);
345} 345}
346 346
347void lparen(qk_tap_dance_state_t *state, void *user_data) 347void lparen(tap_dance_state_t *state, void *user_data)
348{ 348{
349 tap_pair(state, S_ALWAYS, KC_9, KC_0, KC_LCTL, 0); 349 tap_pair(state, S_ALWAYS, KC_9, KC_0, KC_LCTL, 0);
350} 350}
351 351
352void lparen_reset(qk_tap_dance_state_t *state, void *user_data) 352void lparen_reset(tap_dance_state_t *state, void *user_data)
353{ 353{
354 unregister_code(KC_LCTL); 354 unregister_code(KC_LCTL);
355} 355}
356 356
357void quote(qk_tap_dance_state_t *state, void *user_data) 357void quote(tap_dance_state_t *state, void *user_data)
358{ 358{
359 tap_pair(state, S_NEVER, KC_QUOT, KC_QUOT, 0, 0); 359 tap_pair(state, S_NEVER, KC_QUOT, KC_QUOT, 0, 0);
360} 360}
361 361
362void rangle(qk_tap_dance_state_t *state, void *user_data) 362void rangle(tap_dance_state_t *state, void *user_data)
363{ 363{
364 tap_pair(state, S_ALWAYS, KC_COMM, KC_DOT, 0, CLOSE); 364 tap_pair(state, S_ALWAYS, KC_COMM, KC_DOT, 0, CLOSE);
365} 365}
366 366
367void rbrace(qk_tap_dance_state_t *state, void *user_data) 367void rbrace(tap_dance_state_t *state, void *user_data)
368{ 368{
369 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, CLOSE); 369 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, CLOSE);
370} 370}
371 371
372void rcurly(qk_tap_dance_state_t *state, void *user_data) 372void rcurly(tap_dance_state_t *state, void *user_data)
373{ 373{
374 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, CLOSE); 374 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, CLOSE);
375} 375}
376 376
377void rparen(qk_tap_dance_state_t *state, void *user_data) 377void rparen(tap_dance_state_t *state, void *user_data)
378{ 378{
379 tap_pair(state, S_ALWAYS, KC_9, KC_0, 0, CLOSE); 379 tap_pair(state, S_ALWAYS, KC_9, KC_0, 0, CLOSE);
380} 380}
381 381
382void rparen_reset(qk_tap_dance_state_t *state, void *user_data) 382void rparen_reset(tap_dance_state_t *state, void *user_data)
383{ 383{
384 unregister_code(KC_LCTL); 384 unregister_code(KC_LCTL);
385} 385}
386 386
387// ............................................................ Tap Dance Insert 387// ............................................................ Tap Dance Insert
388 388
389void comma(qk_tap_dance_state_t *state, void *user_data) 389void comma(tap_dance_state_t *state, void *user_data)
390{ 390{
391 tap_key(KC_COMM); 391 tap_key(KC_COMM);
392 if (state->count > 1) { 392 if (state->count > 1) {
@@ -395,7 +395,7 @@ void comma(qk_tap_dance_state_t *state, void *user_data)
395 reset_tap_dance(state); 395 reset_tap_dance(state);
396} 396}
397 397
398void dot(qk_tap_dance_state_t *state, void *user_data) 398void dot(tap_dance_state_t *state, void *user_data)
399{ 399{
400 if (state->count > 1) { 400 if (state->count > 1) {
401 shift_key(KC_COLN); 401 shift_key(KC_COLN);
@@ -407,7 +407,7 @@ void dot(qk_tap_dance_state_t *state, void *user_data)
407} 407}
408 408
409// compile time macro string, see functions/hardware planck script 409// compile time macro string, see functions/hardware planck script
410void private(qk_tap_dance_state_t *state, void *user_data) 410void private(tap_dance_state_t *state, void *user_data)
411{ 411{
412 if (state->count > 1) { 412 if (state->count > 1) {
413#ifdef PRIVATE_STRING 413#ifdef PRIVATE_STRING
@@ -418,7 +418,7 @@ void private(qk_tap_dance_state_t *state, void *user_data)
418} 418}
419 419
420// config.h defined string 420// config.h defined string
421void send(qk_tap_dance_state_t *state, void *user_data) 421void send(tap_dance_state_t *state, void *user_data)
422{ 422{
423 if (state->count > 1) { 423 if (state->count > 1) {
424 SEND_STRING(PUBLIC_STRING); 424 SEND_STRING(PUBLIC_STRING);
@@ -428,7 +428,7 @@ void send(qk_tap_dance_state_t *state, void *user_data)
428 428
429// .......................................................... Tap Dance One Shot 429// .......................................................... Tap Dance One Shot
430 430
431void caps(qk_tap_dance_state_t *state, void *user_data) 431void caps(tap_dance_state_t *state, void *user_data)
432{ 432{
433 if (state->count > 1) { 433 if (state->count > 1) {
434 tap_key(KC_CAPS); 434 tap_key(KC_CAPS);
@@ -439,14 +439,14 @@ void caps(qk_tap_dance_state_t *state, void *user_data)
439 } 439 }
440} 440}
441 441
442void caps_reset(qk_tap_dance_state_t *state, void *user_data) 442void caps_reset(tap_dance_state_t *state, void *user_data)
443{ 443{
444 unregister_code(KC_LSFT); 444 unregister_code(KC_LSFT);
445} 445}
446 446
447// ................................................................... Tap Dance 447// ................................................................... Tap Dance
448 448
449qk_tap_dance_action_t tap_dance_actions[] = { 449tap_dance_action_t tap_dance_actions[] = {
450 [_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, caps, caps_reset) 450 [_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, caps, caps_reset)
451 ,[_COLN] = ACTION_TAP_DANCE_FN (colon) 451 ,[_COLN] = ACTION_TAP_DANCE_FN (colon)
452 ,[_COMM] = ACTION_TAP_DANCE_FN (comma) 452 ,[_COMM] = ACTION_TAP_DANCE_FN (comma)
diff --git a/keyboards/planck/keymaps/ariccb/keymap.c b/keyboards/planck/keymaps/ariccb/keymap.c
index c507a6fe5e..4237955bb5 100644
--- a/keyboards/planck/keymaps/ariccb/keymap.c
+++ b/keyboards/planck/keymaps/ariccb/keymap.c
@@ -98,11 +98,11 @@ enum {
98 98
99// Declare the functions to be used with your tap dance key(s) 99// Declare the functions to be used with your tap dance key(s)
100// Function associated with all tap dances 100// Function associated with all tap dances
101td_state_t cur_dance(qk_tap_dance_state_t *state); 101td_state_t cur_dance(tap_dance_state_t *state);
102 102
103// Functions associated with individual tap dances 103// Functions associated with individual tap dances
104void usl_finished(qk_tap_dance_state_t *state, void *user_data); 104void usl_finished(tap_dance_state_t *state, void *user_data);
105void usl_reset(qk_tap_dance_state_t *state, void *user_data); 105void usl_reset(tap_dance_state_t *state, void *user_data);
106 106
107/* ----------------------------------------------------------------------------------------------------------------------------- */ 107/* ----------------------------------------------------------------------------------------------------------------------------- */
108 108
@@ -304,7 +304,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
304 return state; 304 return state;
305} 305}
306 306
307// void dance_media (qk_tap_dance_state_t *state, void *user_data) 307// void dance_media (tap_dance_state_t *state, void *user_data)
308// if (state->count == 1) { 308// if (state->count == 1) {
309// tap_code(KC_MPLY); 309// tap_code(KC_MPLY);
310// } else if (state->count == 2) { 310// } else if (state->count == 2) {
@@ -316,12 +316,12 @@ layer_state_t layer_state_set_user(layer_state_t state) {
316// } 316// }
317// } 317// }
318 318
319// qk_tap_dance_action_t tap_dance_actions[] = { 319// tap_dance_action_t tap_dance_actions[] = {
320// [0] = ACTION_TAP_DANCE_FN (dance_media), 320// [0] = ACTION_TAP_DANCE_FN (dance_media),
321// }; 321// };
322 322
323// Determine the current tap dance state 323// Determine the current tap dance state
324td_state_t cur_dance(qk_tap_dance_state_t *state) { 324td_state_t cur_dance(tap_dance_state_t *state) {
325 if (state->interrupted) return TD_SINGLE_HOLD; 325 if (state->interrupted) return TD_SINGLE_HOLD;
326 if (state->count == 1) { 326 if (state->count == 1) {
327 if (!state->pressed) return TD_SINGLE_TAP; 327 if (!state->pressed) return TD_SINGLE_TAP;
@@ -337,7 +337,7 @@ static td_tap_t usl_tap_state = {
337}; 337};
338 338
339// Functions that control what our tap dance key does 339// Functions that control what our tap dance key does
340void usl_finished(qk_tap_dance_state_t *state, void *user_data) { 340void usl_finished(tap_dance_state_t *state, void *user_data) {
341 usl_tap_state.state = cur_dance(state); 341 usl_tap_state.state = cur_dance(state);
342 switch (usl_tap_state.state) { 342 switch (usl_tap_state.state) {
343 case TD_SINGLE_TAP: 343 case TD_SINGLE_TAP:
@@ -368,7 +368,7 @@ void usl_finished(qk_tap_dance_state_t *state, void *user_data) {
368 } 368 }
369} 369}
370 370
371void usl_reset(qk_tap_dance_state_t *state, void *user_data) { 371void usl_reset(tap_dance_state_t *state, void *user_data) {
372 // If the key was held down and now is released then switch off the layer 372 // If the key was held down and now is released then switch off the layer
373 if (usl_tap_state.state == TD_SINGLE_HOLD) { 373 if (usl_tap_state.state == TD_SINGLE_HOLD) {
374 layer_off(_LOWER); 374 layer_off(_LOWER);
@@ -378,7 +378,7 @@ void usl_reset(qk_tap_dance_state_t *state, void *user_data) {
378} 378}
379 379
380// Associate our tap dance key with its functionality 380// Associate our tap dance key with its functionality
381qk_tap_dance_action_t tap_dance_actions[] = { 381tap_dance_action_t tap_dance_actions[] = {
382 [UNDS_LOWER] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, usl_finished, usl_reset) 382 [UNDS_LOWER] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, usl_finished, usl_reset)
383}; 383};
384 384
diff --git a/keyboards/planck/keymaps/circuit/keymap.c b/keyboards/planck/keymaps/circuit/keymap.c
index d259914d8a..4b3db082a7 100644
--- a/keyboards/planck/keymaps/circuit/keymap.c
+++ b/keyboards/planck/keymaps/circuit/keymap.c
@@ -36,7 +36,7 @@ enum planck_keycodes {
36 36
37// Tap Dance Definitions 37// Tap Dance Definitions
38#ifdef TAP_DANCE_ENABLE 38#ifdef TAP_DANCE_ENABLE
39qk_tap_dance_action_t tap_dance_actions[] = { 39tap_dance_action_t tap_dance_actions[] = {
40 [0] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS) 40 [0] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS)
41}; 41};
42#endif 42#endif
diff --git a/keyboards/planck/keymaps/copface/keymap.c b/keyboards/planck/keymaps/copface/keymap.c
index da23715949..8435ef405d 100644
--- a/keyboards/planck/keymaps/copface/keymap.c
+++ b/keyboards/planck/keymaps/copface/keymap.c
@@ -53,7 +53,7 @@ enum tapdancers {
53}; 53};
54 54
55//Tap Dance Definitions 55//Tap Dance Definitions
56qk_tap_dance_action_t tap_dance_actions[] = { 56tap_dance_action_t tap_dance_actions[] = {
57 [T_BR] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_RBRC), 57 [T_BR] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_RBRC),
58 [T_PA] = ACTION_TAP_DANCE_DOUBLE(KC_LPRN, KC_RPRN), 58 [T_PA] = ACTION_TAP_DANCE_DOUBLE(KC_LPRN, KC_RPRN),
59 [T_CU] = ACTION_TAP_DANCE_DOUBLE(KC_LCBR, KC_RCBR), 59 [T_CU] = ACTION_TAP_DANCE_DOUBLE(KC_LCBR, KC_RCBR),
diff --git a/keyboards/planck/keymaps/corvec/tapdance.c b/keyboards/planck/keymaps/corvec/tapdance.c
index a597fe29fa..35eef2d838 100644
--- a/keyboards/planck/keymaps/corvec/tapdance.c
+++ b/keyboards/planck/keymaps/corvec/tapdance.c
@@ -30,7 +30,7 @@ typedef struct {
30 int state; 30 int state;
31} tap; 31} tap;
32 32
33int cur_dance (qk_tap_dance_state_t *state) { 33int cur_dance (tap_dance_state_t *state) {
34 if (state->count == 1) { 34 if (state->count == 1) {
35 if (state->interrupted || !state->pressed) { 35 if (state->interrupted || !state->pressed) {
36 return SINGLE_TAP; 36 return SINGLE_TAP;
@@ -57,7 +57,7 @@ static tap quote_state = {
57 .state = 0 57 .state = 0
58}; 58};
59 59
60void quote_finished(qk_tap_dance_state_t *state, void *user_data) { 60void quote_finished(tap_dance_state_t *state, void *user_data) {
61 quote_state.state = cur_dance(state); 61 quote_state.state = cur_dance(state);
62 switch(quote_state.state) { 62 switch(quote_state.state) {
63 case SINGLE_TAP: register_code(KC_QUOT); break; 63 case SINGLE_TAP: register_code(KC_QUOT); break;
@@ -66,7 +66,7 @@ void quote_finished(qk_tap_dance_state_t *state, void *user_data) {
66 case DOUBLE_SINGLE_TAP: register_code(KC_QUOT); unregister_code(KC_QUOT); register_code(KC_QUOT); break; 66 case DOUBLE_SINGLE_TAP: register_code(KC_QUOT); unregister_code(KC_QUOT); register_code(KC_QUOT); break;
67 } 67 }
68} 68}
69void quote_reset(qk_tap_dance_state_t *state, void *user_data) { 69void quote_reset(tap_dance_state_t *state, void *user_data) {
70 switch(quote_state.state) { 70 switch(quote_state.state) {
71 case SINGLE_TAP: unregister_code(KC_QUOT); break; 71 case SINGLE_TAP: unregister_code(KC_QUOT); break;
72 case SINGLE_HOLD: layer_off(_LEANDOWN); break; 72 case SINGLE_HOLD: layer_off(_LEANDOWN); break;
@@ -85,7 +85,7 @@ static tap ralt_state = {
85 .state = 0 85 .state = 0
86}; 86};
87 87
88void ralt_finished(qk_tap_dance_state_t *state, void *user_data) { 88void ralt_finished(tap_dance_state_t *state, void *user_data) {
89 ralt_state.state = cur_dance(state); 89 ralt_state.state = cur_dance(state);
90 switch(ralt_state.state) { 90 switch(ralt_state.state) {
91 case SINGLE_TAP: register_code(KC_LBRC); break; 91 case SINGLE_TAP: register_code(KC_LBRC); break;
@@ -95,7 +95,7 @@ void ralt_finished(qk_tap_dance_state_t *state, void *user_data) {
95 case DOUBLE_SINGLE_TAP: register_code(KC_RALT); break; 95 case DOUBLE_SINGLE_TAP: register_code(KC_RALT); break;
96 } 96 }
97} 97}
98void ralt_reset(qk_tap_dance_state_t *state, void *user_data) { 98void ralt_reset(tap_dance_state_t *state, void *user_data) {
99 switch(ralt_state.state) { 99 switch(ralt_state.state) {
100 case SINGLE_TAP: unregister_code(KC_LBRC); break; 100 case SINGLE_TAP: unregister_code(KC_LBRC); break;
101 case SINGLE_HOLD: unregister_code(KC_RALT); break; 101 case SINGLE_HOLD: unregister_code(KC_RALT); break;
@@ -114,7 +114,7 @@ static tap rgui_state = {
114 .state = 0 114 .state = 0
115}; 115};
116 116
117void rgui_finished(qk_tap_dance_state_t *state, void *user_data) { 117void rgui_finished(tap_dance_state_t *state, void *user_data) {
118 rgui_state.state = cur_dance(state); 118 rgui_state.state = cur_dance(state);
119 switch(rgui_state.state) { 119 switch(rgui_state.state) {
120 case SINGLE_TAP: register_code(KC_RBRC); break; 120 case SINGLE_TAP: register_code(KC_RBRC); break;
@@ -124,7 +124,7 @@ void rgui_finished(qk_tap_dance_state_t *state, void *user_data) {
124 case DOUBLE_SINGLE_TAP: register_code(KC_RGUI); break; 124 case DOUBLE_SINGLE_TAP: register_code(KC_RGUI); break;
125 } 125 }
126} 126}
127void rgui_reset(qk_tap_dance_state_t *state, void *user_data) { 127void rgui_reset(tap_dance_state_t *state, void *user_data) {
128 switch(rgui_state.state) { 128 switch(rgui_state.state) {
129 case SINGLE_TAP: unregister_code(KC_RBRC); break; 129 case SINGLE_TAP: unregister_code(KC_RBRC); break;
130 case SINGLE_HOLD: unregister_code(KC_RGUI); break; 130 case SINGLE_HOLD: unregister_code(KC_RGUI); break;
@@ -146,7 +146,7 @@ enum {
146 TD_RBRC_RGUI_RCBR 146 TD_RBRC_RGUI_RCBR
147}; 147};
148 148
149qk_tap_dance_action_t tap_dance_actions[] = { 149tap_dance_action_t tap_dance_actions[] = {
150 // Tap once for Alt, twice for Shift 150 // Tap once for Alt, twice for Shift
151 [TD_ALT_SHIFT] = ACTION_TAP_DANCE_DOUBLE(KC_RALT, KC_RSFT), 151 [TD_ALT_SHIFT] = ACTION_TAP_DANCE_DOUBLE(KC_RALT, KC_RSFT),
152 [TD_QUOT_LEAN_MINS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, quote_finished, quote_reset), 152 [TD_QUOT_LEAN_MINS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, quote_finished, quote_reset),
diff --git a/keyboards/planck/keymaps/davidrambo/keymap.c b/keyboards/planck/keymaps/davidrambo/keymap.c
index bd0603a760..2770bb60e3 100644
--- a/keyboards/planck/keymaps/davidrambo/keymap.c
+++ b/keyboards/planck/keymaps/davidrambo/keymap.c
@@ -91,7 +91,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
91}; 91};
92 92
93// Shift vs capslock function. From bbaserdem's Planck keymap. 93// Shift vs capslock function. From bbaserdem's Planck keymap.
94void caps_tap (qk_tap_dance_state_t *state, void *user_data) { 94void caps_tap (tap_dance_state_t *state, void *user_data) {
95 if (state->count == 1) { 95 if (state->count == 1) {
96 register_code (KC_LSFT); 96 register_code (KC_LSFT);
97 } else if (state->count == 2) { 97 } else if (state->count == 2) {
@@ -99,7 +99,7 @@ void caps_tap (qk_tap_dance_state_t *state, void *user_data) {
99 register_code (KC_CAPS); 99 register_code (KC_CAPS);
100 } 100 }
101} 101}
102void caps_tap_end (qk_tap_dance_state_t *state, void *user_data) { 102void caps_tap_end (tap_dance_state_t *state, void *user_data) {
103 if (state->count == 1) { 103 if (state->count == 1) {
104 unregister_code (KC_LSFT); 104 unregister_code (KC_LSFT);
105 } else { 105 } else {
@@ -108,7 +108,7 @@ void caps_tap_end (qk_tap_dance_state_t *state, void *user_data) {
108} 108}
109 109
110//Tap Dance Definitions 110//Tap Dance Definitions
111qk_tap_dance_action_t tap_dance_actions[] = { 111tap_dance_action_t tap_dance_actions[] = {
112 //Tap once for Shift, twice for Caps Lock 112 //Tap once for Shift, twice for Caps Lock
113 [SFT_LCK] = ACTION_TAP_DANCE_FN_ADVANCED( caps_tap, NULL, caps_tap_end ) 113 [SFT_LCK] = ACTION_TAP_DANCE_FN_ADVANCED( caps_tap, NULL, caps_tap_end )
114}; 114};
diff --git a/keyboards/planck/keymaps/dc/keymap.c b/keyboards/planck/keymaps/dc/keymap.c
index 83b6f9eaad..6a4da9546f 100644
--- a/keyboards/planck/keymaps/dc/keymap.c
+++ b/keyboards/planck/keymaps/dc/keymap.c
@@ -26,7 +26,7 @@ enum tap_dance_codes {
26 CT_DEL_ESC 26 CT_DEL_ESC
27}; 27};
28 28
29qk_tap_dance_action_t tap_dance_actions[] = { 29tap_dance_action_t tap_dance_actions[] = {
30 [0] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_LPRN), 30 [0] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_LPRN),
31 [1] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_LCBR), 31 [1] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_LCBR),
32 [2] = ACTION_TAP_DANCE_DOUBLE(KC_J, KC_LBRC), 32 [2] = ACTION_TAP_DANCE_DOUBLE(KC_J, KC_LBRC),
diff --git a/keyboards/planck/keymaps/dodger/keymap.c b/keyboards/planck/keymaps/dodger/keymap.c
index 1ef2645395..76493e714d 100644
--- a/keyboards/planck/keymaps/dodger/keymap.c
+++ b/keyboards/planck/keymaps/dodger/keymap.c
@@ -44,7 +44,7 @@ enum {
44 TD_ESC_CAPS 44 TD_ESC_CAPS
45}; 45};
46 46
47qk_tap_dance_action_t tap_dance_actions[] = { 47tap_dance_action_t tap_dance_actions[] = {
48 [TD_SPC_ENT] = ACTION_TAP_DANCE_DOUBLE(KC_SPC, KC_ENT), 48 [TD_SPC_ENT] = ACTION_TAP_DANCE_DOUBLE(KC_SPC, KC_ENT),
49 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS) 49 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS)
50}; 50};
diff --git a/keyboards/planck/keymaps/dr_notsokind/keymap.c b/keyboards/planck/keymaps/dr_notsokind/keymap.c
index 901c7cc23e..0338e1806e 100644
--- a/keyboards/planck/keymaps/dr_notsokind/keymap.c
+++ b/keyboards/planck/keymaps/dr_notsokind/keymap.c
@@ -50,7 +50,7 @@ enum planck_keycodes {
50 50
51// Tap Dance Definitions 51// Tap Dance Definitions
52#ifdef TAP_DANCE_ENABLE 52#ifdef TAP_DANCE_ENABLE
53qk_tap_dance_action_t tap_dance_actions[] = { 53tap_dance_action_t tap_dance_actions[] = {
54 [0] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS) 54 [0] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS)
55}; 55};
56#endif 56#endif
diff --git a/keyboards/planck/keymaps/dvorak2space/keymap.c b/keyboards/planck/keymaps/dvorak2space/keymap.c
index 08d56dd97a..928f71ab1c 100644
--- a/keyboards/planck/keymaps/dvorak2space/keymap.c
+++ b/keyboards/planck/keymaps/dvorak2space/keymap.c
@@ -179,7 +179,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { //X_KEY doesn'
179}; 179};
180 180
181//tapdance state evaluation 181//tapdance state evaluation
182int cur_dance(qk_tap_dance_state_t *state) { 182int cur_dance(tap_dance_state_t *state) {
183 int press = 0; 183 int press = 0;
184 switch(state->count) { 184 switch(state->count) {
185 case 1: 185 case 1:
@@ -196,11 +196,11 @@ int cur_dance(qk_tap_dance_state_t *state) {
196 return press; 196 return press;
197} 197}
198 198
199void back_tap(qk_tap_dance_state_t *state, void *user_data) { tap_code(KC_BACKSPACE); } 199void back_tap(tap_dance_state_t *state, void *user_data) { tap_code(KC_BACKSPACE); }
200 200
201void back_finished(qk_tap_dance_state_t *state, void *user_data) { if(!(state->interrupted || !state->pressed)) tap_code16(LCTL(KC_BACKSPACE)); } 201void back_finished(tap_dance_state_t *state, void *user_data) { if(!(state->interrupted || !state->pressed)) tap_code16(LCTL(KC_BACKSPACE)); }
202 202
203void slash_finished(qk_tap_dance_state_t *state, void *user_data) { 203void slash_finished(tap_dance_state_t *state, void *user_data) {
204 int td_state = cur_dance(state); 204 int td_state = cur_dance(state);
205 switch(td_state) { 205 switch(td_state) {
206 case SINGLE_TAP: 206 case SINGLE_TAP:
@@ -213,7 +213,7 @@ void slash_finished(qk_tap_dance_state_t *state, void *user_data) {
213 } 213 }
214} 214}
215 215
216void dash_finished(qk_tap_dance_state_t *state, void *user_data) { 216void dash_finished(tap_dance_state_t *state, void *user_data) {
217 int td_state = cur_dance(state); 217 int td_state = cur_dance(state);
218 switch(td_state) { 218 switch(td_state) {
219 case SINGLE_TAP: 219 case SINGLE_TAP:
@@ -233,7 +233,7 @@ void dash_finished(qk_tap_dance_state_t *state, void *user_data) {
233 } 233 }
234} 234}
235 235
236qk_tap_dance_action_t tap_dance_actions[] = { 236tap_dance_action_t tap_dance_actions[] = {
237 [LPN] = ACTION_TAP_DANCE_DOUBLE(KC_LPRN, KC_LBRC), 237 [LPN] = ACTION_TAP_DANCE_DOUBLE(KC_LPRN, KC_LBRC),
238 [RPN] = ACTION_TAP_DANCE_DOUBLE(KC_RPRN, KC_RBRC), 238 [RPN] = ACTION_TAP_DANCE_DOUBLE(KC_RPRN, KC_RBRC),
239 [FB] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, slash_finished, NULL), 239 [FB] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, slash_finished, NULL),
diff --git a/keyboards/planck/keymaps/hiea/common/keycode_functions.h b/keyboards/planck/keymaps/hiea/common/keycode_functions.h
index e0ae15089c..1aed08b37a 100644
--- a/keyboards/planck/keymaps/hiea/common/keycode_functions.h
+++ b/keyboards/planck/keymaps/hiea/common/keycode_functions.h
@@ -109,7 +109,7 @@ void double_shift(uint16_t keycode, uint8_t layer)
109} 109}
110 110
111// tap dance LT (LAYER, KEY) emulation with <KEY><DOWN> -> <KEY><SHIFT> and auto-repeat extensions! 111// tap dance LT (LAYER, KEY) emulation with <KEY><DOWN> -> <KEY><SHIFT> and auto-repeat extensions!
112void tap_shift(qk_tap_dance_state_t *state, uint16_t keycode, uint8_t layer) 112void tap_shift(tap_dance_state_t *state, uint16_t keycode, uint8_t layer)
113{ 113{
114 // double tap plus down 114 // double tap plus down
115 if (state->count > 2) { 115 if (state->count > 2) {
@@ -152,23 +152,23 @@ void tap_reset(uint16_t keycode, uint8_t layer)
152} 152}
153 153
154// augment pseudo LT (_RSHIFT, KC_ENT) handling below for rapid <ENTER><SHIFT> sequences 154// augment pseudo LT (_RSHIFT, KC_ENT) handling below for rapid <ENTER><SHIFT> sequences
155void enter(qk_tap_dance_state_t *state, void *user_data) 155void enter(tap_dance_state_t *state, void *user_data)
156{ 156{
157 tap_shift(state, KC_ENT, _RSHIFT); 157 tap_shift(state, KC_ENT, _RSHIFT);
158} 158}
159 159
160void enter_reset(qk_tap_dance_state_t *state, void *user_data) 160void enter_reset(tap_dance_state_t *state, void *user_data)
161{ 161{
162 tap_reset(KC_ENT, _RSHIFT); 162 tap_reset(KC_ENT, _RSHIFT);
163} 163}
164 164
165// augment pseudo LT (_LSHIFT, KC_SPC) handling below for rapid <SPACE><SHIFT> sequences 165// augment pseudo LT (_LSHIFT, KC_SPC) handling below for rapid <SPACE><SHIFT> sequences
166void space(qk_tap_dance_state_t *state, void *user_data) 166void space(tap_dance_state_t *state, void *user_data)
167{ 167{
168 tap_shift(state, KC_SPC, _LSHIFT); 168 tap_shift(state, KC_SPC, _LSHIFT);
169} 169}
170 170
171void space_reset(qk_tap_dance_state_t *state, void *user_data) 171void space_reset(tap_dance_state_t *state, void *user_data)
172{ 172{
173 tap_reset(KC_SPC, _LSHIFT); 173 tap_reset(KC_SPC, _LSHIFT);
174} 174}
@@ -191,7 +191,7 @@ void double_max(uint8_t count, uint8_t shift, uint16_t keycode)
191 } 191 }
192} 192}
193 193
194void colon(qk_tap_dance_state_t *state, void *user_data) 194void colon(tap_dance_state_t *state, void *user_data)
195{ 195{
196 if (state->count > 2) { 196 if (state->count > 2) {
197 tap_key (KC_SPC); 197 tap_key (KC_SPC);
@@ -205,7 +205,7 @@ void colon(qk_tap_dance_state_t *state, void *user_data)
205 reset_tap_dance(state); 205 reset_tap_dance(state);
206} 206}
207 207
208void eql(qk_tap_dance_state_t *state, void *user_data) 208void eql(tap_dance_state_t *state, void *user_data)
209{ 209{
210 if (state->count > 2) { 210 if (state->count > 2) {
211 tap_key(KC_SPC); 211 tap_key(KC_SPC);
@@ -219,7 +219,7 @@ void eql(qk_tap_dance_state_t *state, void *user_data)
219 reset_tap_dance(state); 219 reset_tap_dance(state);
220} 220}
221 221
222void greater(qk_tap_dance_state_t *state, void *user_data) 222void greater(tap_dance_state_t *state, void *user_data)
223{ 223{
224 if (state->count > 2) { 224 if (state->count > 2) {
225 tap_key (KC_SPC); 225 tap_key (KC_SPC);
@@ -233,7 +233,7 @@ void greater(qk_tap_dance_state_t *state, void *user_data)
233 reset_tap_dance(state); 233 reset_tap_dance(state);
234} 234}
235 235
236void lesser(qk_tap_dance_state_t *state, void *user_data) 236void lesser(tap_dance_state_t *state, void *user_data)
237{ 237{
238 if (state->count > 2) { 238 if (state->count > 2) {
239 tap_key (KC_SPC); 239 tap_key (KC_SPC);
@@ -247,7 +247,7 @@ void lesser(qk_tap_dance_state_t *state, void *user_data)
247 reset_tap_dance(state); 247 reset_tap_dance(state);
248} 248}
249 249
250void tilde(qk_tap_dance_state_t *state, void *user_data) 250void tilde(tap_dance_state_t *state, void *user_data)
251{ 251{
252 // double tap plus down: repeating keycode 252 // double tap plus down: repeating keycode
253 if (state->count > 2) { 253 if (state->count > 2) {
@@ -264,7 +264,7 @@ void tilde(qk_tap_dance_state_t *state, void *user_data)
264 } 264 }
265} 265}
266 266
267void tilde_reset(qk_tap_dance_state_t *state, void *user_data) 267void tilde_reset(tap_dance_state_t *state, void *user_data)
268{ 268{
269 unregister_code(KC_GRV); 269 unregister_code(KC_GRV);
270 unregister_code(KC_LSFT); 270 unregister_code(KC_LSFT);
@@ -293,7 +293,7 @@ void symbol_pair(uint8_t shift, uint16_t left, uint16_t right)
293#define CLOSE 1 293#define CLOSE 1
294 294
295// tap dance symbol pairs 295// tap dance symbol pairs
296void tap_pair(qk_tap_dance_state_t *state, uint8_t shift, uint16_t left, uint16_t right, uint16_t modifier, uint8_t close) 296void tap_pair(tap_dance_state_t *state, uint8_t shift, uint16_t left, uint16_t right, uint16_t modifier, uint8_t close)
297{ 297{
298 // triple tap: left right with cursor between symbol pair a la vim :-) 298 // triple tap: left right with cursor between symbol pair a la vim :-)
299 if (state->count > 2) { 299 if (state->count > 2) {
@@ -324,69 +324,69 @@ void tap_pair(qk_tap_dance_state_t *state, uint8_t shift, uint16_t left, uint16_
324 } 324 }
325} 325}
326 326
327void doublequote(qk_tap_dance_state_t *state, void *user_data) 327void doublequote(tap_dance_state_t *state, void *user_data)
328{ 328{
329 tap_pair(state, S_ALWAYS, KC_QUOT, KC_QUOT, 0, 0); 329 tap_pair(state, S_ALWAYS, KC_QUOT, KC_QUOT, 0, 0);
330} 330}
331 331
332void grave(qk_tap_dance_state_t *state, void *user_data) 332void grave(tap_dance_state_t *state, void *user_data)
333{ 333{
334 tap_pair(state, S_NEVER, KC_GRV, KC_GRV, 0, 0); 334 tap_pair(state, S_NEVER, KC_GRV, KC_GRV, 0, 0);
335} 335}
336 336
337void lbrace(qk_tap_dance_state_t *state, void *user_data) 337void lbrace(tap_dance_state_t *state, void *user_data)
338{ 338{
339 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, 0); 339 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, 0);
340} 340}
341 341
342void lcurly(qk_tap_dance_state_t *state, void *user_data) 342void lcurly(tap_dance_state_t *state, void *user_data)
343{ 343{
344 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, 0); 344 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, 0);
345} 345}
346 346
347void lparen(qk_tap_dance_state_t *state, void *user_data) 347void lparen(tap_dance_state_t *state, void *user_data)
348{ 348{
349 tap_pair(state, S_ALWAYS, KC_9, KC_0, KC_LCTL, 0); 349 tap_pair(state, S_ALWAYS, KC_9, KC_0, KC_LCTL, 0);
350} 350}
351 351
352void lparen_reset(qk_tap_dance_state_t *state, void *user_data) 352void lparen_reset(tap_dance_state_t *state, void *user_data)
353{ 353{
354 unregister_code(KC_LCTL); 354 unregister_code(KC_LCTL);
355} 355}
356 356
357void quote(qk_tap_dance_state_t *state, void *user_data) 357void quote(tap_dance_state_t *state, void *user_data)
358{ 358{
359 tap_pair(state, S_NEVER, KC_QUOT, KC_QUOT, 0, 0); 359 tap_pair(state, S_NEVER, KC_QUOT, KC_QUOT, 0, 0);
360} 360}
361 361
362void rangle(qk_tap_dance_state_t *state, void *user_data) 362void rangle(tap_dance_state_t *state, void *user_data)
363{ 363{
364 tap_pair(state, S_ALWAYS, KC_COMM, KC_DOT, 0, CLOSE); 364 tap_pair(state, S_ALWAYS, KC_COMM, KC_DOT, 0, CLOSE);
365} 365}
366 366
367void rbrace(qk_tap_dance_state_t *state, void *user_data) 367void rbrace(tap_dance_state_t *state, void *user_data)
368{ 368{
369 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, CLOSE); 369 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, CLOSE);
370} 370}
371 371
372void rcurly(qk_tap_dance_state_t *state, void *user_data) 372void rcurly(tap_dance_state_t *state, void *user_data)
373{ 373{
374 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, CLOSE); 374 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, CLOSE);
375} 375}
376 376
377void rparen(qk_tap_dance_state_t *state, void *user_data) 377void rparen(tap_dance_state_t *state, void *user_data)
378{ 378{
379 tap_pair(state, S_ALWAYS, KC_9, KC_0, 0, CLOSE); 379 tap_pair(state, S_ALWAYS, KC_9, KC_0, 0, CLOSE);
380} 380}
381 381
382void rparen_reset(qk_tap_dance_state_t *state, void *user_data) 382void rparen_reset(tap_dance_state_t *state, void *user_data)
383{ 383{
384 unregister_code(KC_LCTL); 384 unregister_code(KC_LCTL);
385} 385}
386 386
387// ............................................................ Tap Dance Insert 387// ............................................................ Tap Dance Insert
388 388
389void comma(qk_tap_dance_state_t *state, void *user_data) 389void comma(tap_dance_state_t *state, void *user_data)
390{ 390{
391 tap_key(KC_COMM); 391 tap_key(KC_COMM);
392 if (state->count > 1) { 392 if (state->count > 1) {
@@ -395,7 +395,7 @@ void comma(qk_tap_dance_state_t *state, void *user_data)
395 reset_tap_dance(state); 395 reset_tap_dance(state);
396} 396}
397 397
398void dot(qk_tap_dance_state_t *state, void *user_data) 398void dot(tap_dance_state_t *state, void *user_data)
399{ 399{
400 if (state->count > 1) { 400 if (state->count > 1) {
401 shift_key(KC_COLN); 401 shift_key(KC_COLN);
@@ -407,7 +407,7 @@ void dot(qk_tap_dance_state_t *state, void *user_data)
407} 407}
408 408
409// compile time macro string, see functions/hardware planck script 409// compile time macro string, see functions/hardware planck script
410void private(qk_tap_dance_state_t *state, void *user_data) 410void private(tap_dance_state_t *state, void *user_data)
411{ 411{
412 if (state->count > 1) { 412 if (state->count > 1) {
413#ifdef PRIVATE_STRING 413#ifdef PRIVATE_STRING
@@ -418,7 +418,7 @@ void private(qk_tap_dance_state_t *state, void *user_data)
418} 418}
419 419
420// config.h defined string 420// config.h defined string
421void send(qk_tap_dance_state_t *state, void *user_data) 421void send(tap_dance_state_t *state, void *user_data)
422{ 422{
423 if (state->count > 1) { 423 if (state->count > 1) {
424 SEND_STRING(PUBLIC_STRING); 424 SEND_STRING(PUBLIC_STRING);
@@ -428,7 +428,7 @@ void send(qk_tap_dance_state_t *state, void *user_data)
428 428
429// .......................................................... Tap Dance One Shot 429// .......................................................... Tap Dance One Shot
430 430
431void caps(qk_tap_dance_state_t *state, void *user_data) 431void caps(tap_dance_state_t *state, void *user_data)
432{ 432{
433 if (state->count > 1) { 433 if (state->count > 1) {
434 tap_key(KC_CAPS); 434 tap_key(KC_CAPS);
@@ -439,14 +439,14 @@ void caps(qk_tap_dance_state_t *state, void *user_data)
439 } 439 }
440} 440}
441 441
442void caps_reset(qk_tap_dance_state_t *state, void *user_data) 442void caps_reset(tap_dance_state_t *state, void *user_data)
443{ 443{
444 unregister_code(KC_LSFT); 444 unregister_code(KC_LSFT);
445} 445}
446 446
447// ................................................................... Tap Dance 447// ................................................................... Tap Dance
448 448
449qk_tap_dance_action_t tap_dance_actions[] = { 449tap_dance_action_t tap_dance_actions[] = {
450 [_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, caps, caps_reset) 450 [_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, caps, caps_reset)
451 ,[_COLN] = ACTION_TAP_DANCE_FN (colon) 451 ,[_COLN] = ACTION_TAP_DANCE_FN (colon)
452 ,[_COMM] = ACTION_TAP_DANCE_FN (comma) 452 ,[_COMM] = ACTION_TAP_DANCE_FN (comma)
diff --git a/keyboards/planck/keymaps/hieax/common/keycode_functions.h b/keyboards/planck/keymaps/hieax/common/keycode_functions.h
index a26b562fff..ecf3636ae8 100644
--- a/keyboards/planck/keymaps/hieax/common/keycode_functions.h
+++ b/keyboards/planck/keymaps/hieax/common/keycode_functions.h
@@ -115,7 +115,7 @@ void double_shift(uint16_t keycode, uint8_t layer)
115} 115}
116 116
117// tap dance LT (LAYER, KEY) emulation with <KEY><DOWN> -> <KEY><SHIFT> and auto-repeat extensions! 117// tap dance LT (LAYER, KEY) emulation with <KEY><DOWN> -> <KEY><SHIFT> and auto-repeat extensions!
118void tap_shift(qk_tap_dance_state_t *state, uint16_t keycode, uint8_t layer) 118void tap_shift(tap_dance_state_t *state, uint16_t keycode, uint8_t layer)
119{ 119{
120 // double tap plus down 120 // double tap plus down
121 if (state->count > 2) { 121 if (state->count > 2) {
@@ -158,23 +158,23 @@ void tap_reset(uint16_t keycode, uint8_t layer)
158} 158}
159 159
160// augment pseudo LT (_RSHIFT, KC_ENT) handling below for rapid <ENTER><SHIFT> sequences 160// augment pseudo LT (_RSHIFT, KC_ENT) handling below for rapid <ENTER><SHIFT> sequences
161void enter(qk_tap_dance_state_t *state, void *user_data) 161void enter(tap_dance_state_t *state, void *user_data)
162{ 162{
163 tap_shift(state, KC_ENT, _RSHIFT); 163 tap_shift(state, KC_ENT, _RSHIFT);
164} 164}
165 165
166void enter_reset(qk_tap_dance_state_t *state, void *user_data) 166void enter_reset(tap_dance_state_t *state, void *user_data)
167{ 167{
168 tap_reset(KC_ENT, _RSHIFT); 168 tap_reset(KC_ENT, _RSHIFT);
169} 169}
170 170
171// augment pseudo LT (_LSHIFT, KC_SPC) handling below for rapid <SPACE><SHIFT> sequences 171// augment pseudo LT (_LSHIFT, KC_SPC) handling below for rapid <SPACE><SHIFT> sequences
172void space(qk_tap_dance_state_t *state, void *user_data) 172void space(tap_dance_state_t *state, void *user_data)
173{ 173{
174 tap_shift(state, KC_SPC, _LSHIFT); 174 tap_shift(state, KC_SPC, _LSHIFT);
175} 175}
176 176
177void space_reset(qk_tap_dance_state_t *state, void *user_data) 177void space_reset(tap_dance_state_t *state, void *user_data)
178{ 178{
179 tap_reset(KC_SPC, _LSHIFT); 179 tap_reset(KC_SPC, _LSHIFT);
180} 180}
@@ -197,7 +197,7 @@ void double_max(uint8_t count, uint8_t shift, uint16_t keycode)
197 } 197 }
198} 198}
199 199
200void colon(qk_tap_dance_state_t *state, void *user_data) 200void colon(tap_dance_state_t *state, void *user_data)
201{ 201{
202 if (state->count > 2) { 202 if (state->count > 2) {
203 tap_key (KC_SPC); 203 tap_key (KC_SPC);
@@ -211,7 +211,7 @@ void colon(qk_tap_dance_state_t *state, void *user_data)
211 reset_tap_dance(state); 211 reset_tap_dance(state);
212} 212}
213 213
214void eql(qk_tap_dance_state_t *state, void *user_data) 214void eql(tap_dance_state_t *state, void *user_data)
215{ 215{
216 if (state->count > 2) { 216 if (state->count > 2) {
217 tap_key(KC_SPC); 217 tap_key(KC_SPC);
@@ -225,7 +225,7 @@ void eql(qk_tap_dance_state_t *state, void *user_data)
225 reset_tap_dance(state); 225 reset_tap_dance(state);
226} 226}
227 227
228void greater(qk_tap_dance_state_t *state, void *user_data) 228void greater(tap_dance_state_t *state, void *user_data)
229{ 229{
230 if (state->count > 2) { 230 if (state->count > 2) {
231 tap_key (KC_SPC); 231 tap_key (KC_SPC);
@@ -239,7 +239,7 @@ void greater(qk_tap_dance_state_t *state, void *user_data)
239 reset_tap_dance(state); 239 reset_tap_dance(state);
240} 240}
241 241
242void lesser(qk_tap_dance_state_t *state, void *user_data) 242void lesser(tap_dance_state_t *state, void *user_data)
243{ 243{
244 if (state->count > 2) { 244 if (state->count > 2) {
245 tap_key (KC_SPC); 245 tap_key (KC_SPC);
@@ -253,7 +253,7 @@ void lesser(qk_tap_dance_state_t *state, void *user_data)
253 reset_tap_dance(state); 253 reset_tap_dance(state);
254} 254}
255 255
256void tilde(qk_tap_dance_state_t *state, void *user_data) 256void tilde(tap_dance_state_t *state, void *user_data)
257{ 257{
258 // double tap plus down: repeating keycode 258 // double tap plus down: repeating keycode
259 if (state->count > 2) { 259 if (state->count > 2) {
@@ -270,7 +270,7 @@ void tilde(qk_tap_dance_state_t *state, void *user_data)
270 } 270 }
271} 271}
272 272
273void tilde_reset(qk_tap_dance_state_t *state, void *user_data) 273void tilde_reset(tap_dance_state_t *state, void *user_data)
274{ 274{
275 unregister_code(KC_GRV); 275 unregister_code(KC_GRV);
276 unregister_code(KC_LSFT); 276 unregister_code(KC_LSFT);
@@ -299,7 +299,7 @@ void symbol_pair(uint8_t shift, uint16_t left, uint16_t right)
299#define CLOSE 1 299#define CLOSE 1
300 300
301// tap dance symbol pairs 301// tap dance symbol pairs
302void tap_pair(qk_tap_dance_state_t *state, uint8_t shift, uint16_t left, uint16_t right, uint16_t modifier, uint8_t close) 302void tap_pair(tap_dance_state_t *state, uint8_t shift, uint16_t left, uint16_t right, uint16_t modifier, uint8_t close)
303{ 303{
304 // triple tap: left right with cursor between symbol pair a la vim :-) 304 // triple tap: left right with cursor between symbol pair a la vim :-)
305 if (state->count > 2) { 305 if (state->count > 2) {
@@ -330,69 +330,69 @@ void tap_pair(qk_tap_dance_state_t *state, uint8_t shift, uint16_t left, uint16_
330 } 330 }
331} 331}
332 332
333void doublequote(qk_tap_dance_state_t *state, void *user_data) 333void doublequote(tap_dance_state_t *state, void *user_data)
334{ 334{
335 tap_pair(state, S_ALWAYS, KC_QUOT, KC_QUOT, 0, 0); 335 tap_pair(state, S_ALWAYS, KC_QUOT, KC_QUOT, 0, 0);
336} 336}
337 337
338void grave(qk_tap_dance_state_t *state, void *user_data) 338void grave(tap_dance_state_t *state, void *user_data)
339{ 339{
340 tap_pair(state, S_NEVER, KC_GRV, KC_GRV, 0, 0); 340 tap_pair(state, S_NEVER, KC_GRV, KC_GRV, 0, 0);
341} 341}
342 342
343void lbrace(qk_tap_dance_state_t *state, void *user_data) 343void lbrace(tap_dance_state_t *state, void *user_data)
344{ 344{
345 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, 0); 345 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, 0);
346} 346}
347 347
348void lcurly(qk_tap_dance_state_t *state, void *user_data) 348void lcurly(tap_dance_state_t *state, void *user_data)
349{ 349{
350 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, 0); 350 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, 0);
351} 351}
352 352
353void lparen(qk_tap_dance_state_t *state, void *user_data) 353void lparen(tap_dance_state_t *state, void *user_data)
354{ 354{
355 tap_pair(state, S_ALWAYS, KC_9, KC_0, KC_LCTL, 0); 355 tap_pair(state, S_ALWAYS, KC_9, KC_0, KC_LCTL, 0);
356} 356}
357 357
358void lparen_reset(qk_tap_dance_state_t *state, void *user_data) 358void lparen_reset(tap_dance_state_t *state, void *user_data)
359{ 359{
360 unregister_code(KC_LCTL); 360 unregister_code(KC_LCTL);
361} 361}
362 362
363void quote(qk_tap_dance_state_t *state, void *user_data) 363void quote(tap_dance_state_t *state, void *user_data)
364{ 364{
365 tap_pair(state, S_NEVER, KC_QUOT, KC_QUOT, 0, 0); 365 tap_pair(state, S_NEVER, KC_QUOT, KC_QUOT, 0, 0);
366} 366}
367 367
368void rangle(qk_tap_dance_state_t *state, void *user_data) 368void rangle(tap_dance_state_t *state, void *user_data)
369{ 369{
370 tap_pair(state, S_ALWAYS, KC_COMM, KC_DOT, 0, CLOSE); 370 tap_pair(state, S_ALWAYS, KC_COMM, KC_DOT, 0, CLOSE);
371} 371}
372 372
373void rbrace(qk_tap_dance_state_t *state, void *user_data) 373void rbrace(tap_dance_state_t *state, void *user_data)
374{ 374{
375 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, CLOSE); 375 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, CLOSE);
376} 376}
377 377
378void rcurly(qk_tap_dance_state_t *state, void *user_data) 378void rcurly(tap_dance_state_t *state, void *user_data)
379{ 379{
380 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, CLOSE); 380 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, CLOSE);
381} 381}
382 382
383void rparen(qk_tap_dance_state_t *state, void *user_data) 383void rparen(tap_dance_state_t *state, void *user_data)
384{ 384{
385 tap_pair(state, S_ALWAYS, KC_9, KC_0, 0, CLOSE); 385 tap_pair(state, S_ALWAYS, KC_9, KC_0, 0, CLOSE);
386} 386}
387 387
388void rparen_reset(qk_tap_dance_state_t *state, void *user_data) 388void rparen_reset(tap_dance_state_t *state, void *user_data)
389{ 389{
390 unregister_code(KC_LCTL); 390 unregister_code(KC_LCTL);
391} 391}
392 392
393// ............................................................ Tap Dance Insert 393// ............................................................ Tap Dance Insert
394 394
395void comma(qk_tap_dance_state_t *state, void *user_data) 395void comma(tap_dance_state_t *state, void *user_data)
396{ 396{
397 tap_key(KC_COMM); 397 tap_key(KC_COMM);
398 if (state->count > 1) { 398 if (state->count > 1) {
@@ -401,7 +401,7 @@ void comma(qk_tap_dance_state_t *state, void *user_data)
401 reset_tap_dance(state); 401 reset_tap_dance(state);
402} 402}
403 403
404void dot(qk_tap_dance_state_t *state, void *user_data) 404void dot(tap_dance_state_t *state, void *user_data)
405{ 405{
406 if (state->count > 1) { 406 if (state->count > 1) {
407 shift_key(KC_COLN); 407 shift_key(KC_COLN);
@@ -413,7 +413,7 @@ void dot(qk_tap_dance_state_t *state, void *user_data)
413} 413}
414 414
415// compile time macro string, see functions/hardware planck script 415// compile time macro string, see functions/hardware planck script
416void private(qk_tap_dance_state_t *state, void *user_data) 416void private(tap_dance_state_t *state, void *user_data)
417{ 417{
418 if (state->count > 1) { 418 if (state->count > 1) {
419#ifdef PRIVATE_STRING 419#ifdef PRIVATE_STRING
@@ -424,7 +424,7 @@ void private(qk_tap_dance_state_t *state, void *user_data)
424} 424}
425 425
426// config.h defined string 426// config.h defined string
427void send(qk_tap_dance_state_t *state, void *user_data) 427void send(tap_dance_state_t *state, void *user_data)
428{ 428{
429 if (state->count > 1) { 429 if (state->count > 1) {
430 SEND_STRING(PUBLIC_STRING); 430 SEND_STRING(PUBLIC_STRING);
@@ -434,7 +434,7 @@ void send(qk_tap_dance_state_t *state, void *user_data)
434 434
435// .......................................................... Tap Dance One Shot 435// .......................................................... Tap Dance One Shot
436 436
437void caps(qk_tap_dance_state_t *state, void *user_data) 437void caps(tap_dance_state_t *state, void *user_data)
438{ 438{
439 if (state->count > 1) { 439 if (state->count > 1) {
440 tap_key(KC_CAPS); 440 tap_key(KC_CAPS);
@@ -445,14 +445,14 @@ void caps(qk_tap_dance_state_t *state, void *user_data)
445 } 445 }
446} 446}
447 447
448void caps_reset(qk_tap_dance_state_t *state, void *user_data) 448void caps_reset(tap_dance_state_t *state, void *user_data)
449{ 449{
450 unregister_code(KC_LSFT); 450 unregister_code(KC_LSFT);
451} 451}
452 452
453// ................................................................... Tap Dance 453// ................................................................... Tap Dance
454 454
455qk_tap_dance_action_t tap_dance_actions[] = { 455tap_dance_action_t tap_dance_actions[] = {
456 [_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, caps, caps_reset) 456 [_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, caps, caps_reset)
457 ,[_COLN] = ACTION_TAP_DANCE_FN (colon) 457 ,[_COLN] = ACTION_TAP_DANCE_FN (colon)
458 ,[_COMM] = ACTION_TAP_DANCE_FN (comma) 458 ,[_COMM] = ACTION_TAP_DANCE_FN (comma)
diff --git a/keyboards/planck/keymaps/jdelkins/keymap.c b/keyboards/planck/keymaps/jdelkins/keymap.c
index fc6d01e176..9d306abc78 100644
--- a/keyboards/planck/keymaps/jdelkins/keymap.c
+++ b/keyboards/planck/keymaps/jdelkins/keymap.c
@@ -40,7 +40,7 @@ enum {
40 40
41int ctl_state = 0; 41int ctl_state = 0;
42 42
43void ctl_finished(qk_tap_dance_state_t *state, void *user_data) { 43void ctl_finished(tap_dance_state_t *state, void *user_data) {
44 ctl_state = cur_dance(state); 44 ctl_state = cur_dance(state);
45 switch (ctl_state) { 45 switch (ctl_state) {
46 case SINGLE_TAP: leader_start(); break; 46 case SINGLE_TAP: leader_start(); break;
@@ -52,7 +52,7 @@ void ctl_finished(qk_tap_dance_state_t *state, void *user_data) {
52 } 52 }
53} 53}
54 54
55void ctl_reset(qk_tap_dance_state_t *state, void *user_data) { 55void ctl_reset(tap_dance_state_t *state, void *user_data) {
56 switch (ctl_state) { 56 switch (ctl_state) {
57 case SINGLE_HOLD: unregister_code(KC_LCTL); break; 57 case SINGLE_HOLD: unregister_code(KC_LCTL); break;
58 case DOUBLE_HOLD: 58 case DOUBLE_HOLD:
@@ -61,7 +61,7 @@ void ctl_reset(qk_tap_dance_state_t *state, void *user_data) {
61 ctl_state = 0; 61 ctl_state = 0;
62} 62}
63 63
64void g_finished(qk_tap_dance_state_t *state, void *user_data) { 64void g_finished(tap_dance_state_t *state, void *user_data) {
65 switch (cur_dance(state)) { 65 switch (cur_dance(state)) {
66 case SINGLE_TAP: 66 case SINGLE_TAP:
67 tap_code16(C(KC_END)); 67 tap_code16(C(KC_END));
@@ -74,7 +74,7 @@ void g_finished(qk_tap_dance_state_t *state, void *user_data) {
74 74
75int kp_state = 0; 75int kp_state = 0;
76 76
77void kp_finished(qk_tap_dance_state_t *state, void *user_data) { 77void kp_finished(tap_dance_state_t *state, void *user_data) {
78 kp_state = hold_cur_dance(state); 78 kp_state = hold_cur_dance(state);
79 switch (kp_state) { 79 switch (kp_state) {
80 case SINGLE_HOLD: layer_on(_KP); break; 80 case SINGLE_HOLD: layer_on(_KP); break;
@@ -82,7 +82,7 @@ void kp_finished(qk_tap_dance_state_t *state, void *user_data) {
82 } 82 }
83} 83}
84 84
85void kp_reset(qk_tap_dance_state_t *state, void *user_data) { 85void kp_reset(tap_dance_state_t *state, void *user_data) {
86 switch (kp_state) { 86 switch (kp_state) {
87 case SINGLE_HOLD: layer_off(_KP); break; 87 case SINGLE_HOLD: layer_off(_KP); break;
88 case DOUBLE_HOLD: layer_off(_RPT); break; 88 case DOUBLE_HOLD: layer_off(_RPT); break;
@@ -96,7 +96,7 @@ enum {
96 TD_KP 96 TD_KP
97}; 97};
98 98
99qk_tap_dance_action_t tap_dance_actions[] = { 99tap_dance_action_t tap_dance_actions[] = {
100 [TD_LDCTL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctl_finished, ctl_reset), 100 [TD_LDCTL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctl_finished, ctl_reset),
101 [TD_G] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, g_finished, NULL), 101 [TD_G] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, g_finished, NULL),
102 [TD_KP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, kp_finished, kp_reset), 102 [TD_KP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, kp_finished, kp_reset),
diff --git a/keyboards/planck/keymaps/jweickm/keymap.c b/keyboards/planck/keymaps/jweickm/keymap.c
index 1b8b8b28a8..eb3391c171 100644
--- a/keyboards/planck/keymaps/jweickm/keymap.c
+++ b/keyboards/planck/keymaps/jweickm/keymap.c
@@ -290,7 +290,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
290}; 290};
291 291
292// define the tap dance functions 292// define the tap dance functions
293void dance_prn(qk_tap_dance_state_t *state, void *user_data) { 293void dance_prn(tap_dance_state_t *state, void *user_data) {
294 if (state->count == 1) { 294 if (state->count == 1) {
295 tap_code16(KC_LPRN); 295 tap_code16(KC_LPRN);
296 } else { 296 } else {
@@ -299,7 +299,7 @@ void dance_prn(qk_tap_dance_state_t *state, void *user_data) {
299 tap_code(KC_LEFT); 299 tap_code(KC_LEFT);
300 } 300 }
301} 301}
302void dance_brc(qk_tap_dance_state_t *state, void *user_data) { 302void dance_brc(tap_dance_state_t *state, void *user_data) {
303 if (state->count == 1) { 303 if (state->count == 1) {
304 tap_code(KC_LBRC); 304 tap_code(KC_LBRC);
305 } else { 305 } else {
@@ -308,7 +308,7 @@ void dance_brc(qk_tap_dance_state_t *state, void *user_data) {
308 tap_code(KC_LEFT); 308 tap_code(KC_LEFT);
309 } 309 }
310} 310}
311void dance_cbr(qk_tap_dance_state_t *state, void *user_data) { 311void dance_cbr(tap_dance_state_t *state, void *user_data) {
312 if (state->count == 1) { 312 if (state->count == 1) {
313 tap_code16(KC_LCBR); 313 tap_code16(KC_LCBR);
314 } else { 314 } else {
@@ -317,7 +317,7 @@ void dance_cbr(qk_tap_dance_state_t *state, void *user_data) {
317 tap_code(KC_LEFT); 317 tap_code(KC_LEFT);
318 } 318 }
319} 319}
320void dance_prn_de(qk_tap_dance_state_t *state, void *user_data) { 320void dance_prn_de(tap_dance_state_t *state, void *user_data) {
321 if (state->count == 1) { 321 if (state->count == 1) {
322 tap_code16(KC_ASTR); 322 tap_code16(KC_ASTR);
323 } else { 323 } else {
@@ -326,7 +326,7 @@ void dance_prn_de(qk_tap_dance_state_t *state, void *user_data) {
326 tap_code(KC_LEFT); 326 tap_code(KC_LEFT);
327 } 327 }
328} 328}
329void dance_brc_de(qk_tap_dance_state_t *state, void *user_data) { 329void dance_brc_de(tap_dance_state_t *state, void *user_data) {
330 if (state->count == 1) { 330 if (state->count == 1) {
331 tap_code16(RALT(KC_8)); 331 tap_code16(RALT(KC_8));
332 } else { 332 } else {
@@ -335,7 +335,7 @@ void dance_brc_de(qk_tap_dance_state_t *state, void *user_data) {
335 tap_code(KC_LEFT); 335 tap_code(KC_LEFT);
336 } 336 }
337} 337}
338void dance_cbr_de(qk_tap_dance_state_t *state, void *user_data) { 338void dance_cbr_de(tap_dance_state_t *state, void *user_data) {
339 if (state->count == 1) { 339 if (state->count == 1) {
340 tap_code16(RALT(KC_7)); 340 tap_code16(RALT(KC_7));
341 } else { 341 } else {
@@ -344,7 +344,7 @@ void dance_cbr_de(qk_tap_dance_state_t *state, void *user_data) {
344 tap_code(KC_LEFT); 344 tap_code(KC_LEFT);
345 } 345 }
346} 346}
347void vim_gg(qk_tap_dance_state_t *state, void *user_data) { 347void vim_gg(tap_dance_state_t *state, void *user_data) {
348 if (state->count == 1) { 348 if (state->count == 1) {
349 tap_code16(LCTL(KC_END)); 349 tap_code16(LCTL(KC_END));
350 } else { 350 } else {
@@ -352,7 +352,7 @@ void vim_gg(qk_tap_dance_state_t *state, void *user_data) {
352 } 352 }
353} 353}
354 354
355qk_tap_dance_action_t tap_dance_actions[] = { 355tap_dance_action_t tap_dance_actions[] = {
356 // declare tap dance actions here 356 // declare tap dance actions here
357 [TD_PRN] = ACTION_TAP_DANCE_FN(dance_prn), [TD_BRC] = ACTION_TAP_DANCE_FN(dance_brc), [TD_CBR] = ACTION_TAP_DANCE_FN(dance_cbr), [TD_PRN_DE] = ACTION_TAP_DANCE_FN(dance_prn_de), [TD_BRC_DE] = ACTION_TAP_DANCE_FN(dance_brc_de), [TD_CBR_DE] = ACTION_TAP_DANCE_FN(dance_cbr_de), [TD_VIM_GG] = ACTION_TAP_DANCE_FN(vim_gg)}; 357 [TD_PRN] = ACTION_TAP_DANCE_FN(dance_prn), [TD_BRC] = ACTION_TAP_DANCE_FN(dance_brc), [TD_CBR] = ACTION_TAP_DANCE_FN(dance_cbr), [TD_PRN_DE] = ACTION_TAP_DANCE_FN(dance_prn_de), [TD_BRC_DE] = ACTION_TAP_DANCE_FN(dance_brc_de), [TD_CBR_DE] = ACTION_TAP_DANCE_FN(dance_cbr_de), [TD_VIM_GG] = ACTION_TAP_DANCE_FN(vim_gg)};
358 358
diff --git a/keyboards/planck/keymaps/mjuma/keymap.c b/keyboards/planck/keymaps/mjuma/keymap.c
index d449b28e51..c5faeb4385 100644
--- a/keyboards/planck/keymaps/mjuma/keymap.c
+++ b/keyboards/planck/keymaps/mjuma/keymap.c
@@ -36,7 +36,7 @@ enum taps {
36 TD_SHIFT_CAPS = 0 36 TD_SHIFT_CAPS = 0
37}; 37};
38 38
39qk_tap_dance_action_t tap_dance_actions[] = { 39tap_dance_action_t tap_dance_actions[] = {
40 [TD_SHIFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS) 40 [TD_SHIFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS)
41}; 41};
42 42
diff --git a/keyboards/planck/keymaps/roguepullrequest/keymap.c b/keyboards/planck/keymaps/roguepullrequest/keymap.c
index 53171593b2..61221601e6 100644
--- a/keyboards/planck/keymaps/roguepullrequest/keymap.c
+++ b/keyboards/planck/keymaps/roguepullrequest/keymap.c
@@ -31,12 +31,12 @@ enum {
31 SLASH 31 SLASH
32}; 32};
33 33
34int cur_dance (qk_tap_dance_state_t *state); 34int cur_dance (tap_dance_state_t *state);
35 35
36void x_finished (qk_tap_dance_state_t *state, void *user_data); 36void x_finished (tap_dance_state_t *state, void *user_data);
37void x_reset (qk_tap_dance_state_t *state, void *user_data); 37void x_reset (tap_dance_state_t *state, void *user_data);
38void lshift_finished (qk_tap_dance_state_t *state, void *user_data); 38void lshift_finished (tap_dance_state_t *state, void *user_data);
39void lshift_reset(qk_tap_dance_state_t *state, void *user_data); 39void lshift_reset(tap_dance_state_t *state, void *user_data);
40 40
41 41
42bool is_alt_tab_active = false; 42bool is_alt_tab_active = false;
@@ -142,7 +142,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
142 142
143// Super crazy tap dancing stuff - see quad dance in feature_tap_dance.md 143// Super crazy tap dancing stuff - see quad dance in feature_tap_dance.md
144 144
145int cur_dance (qk_tap_dance_state_t *state) { 145int cur_dance (tap_dance_state_t *state) {
146 if (state->count == 1) { 146 if (state->count == 1) {
147 if (state->interrupted || !state->pressed) return SINGLE_TAP; 147 if (state->interrupted || !state->pressed) return SINGLE_TAP;
148 // key not interrupted, but still held sends 'HOLD' 148 // key not interrupted, but still held sends 'HOLD'
@@ -166,7 +166,7 @@ static tap xtap_state = {
166}; 166};
167 167
168// registering keypresses 168// registering keypresses
169void x_finished (qk_tap_dance_state_t *state, void *user_data) { 169void x_finished (tap_dance_state_t *state, void *user_data) {
170 xtap_state.state = cur_dance(state); 170 xtap_state.state = cur_dance(state);
171 switch (xtap_state.state) { 171 switch (xtap_state.state) {
172 case SINGLE_TAP: register_code16(KC_AT); break; 172 case SINGLE_TAP: register_code16(KC_AT); break;
@@ -176,7 +176,7 @@ void x_finished (qk_tap_dance_state_t *state, void *user_data) {
176 } 176 }
177} 177}
178 178
179void lshift_finished (qk_tap_dance_state_t *state, void *user_data) { 179void lshift_finished (tap_dance_state_t *state, void *user_data) {
180 xtap_state.state = cur_dance(state); 180 xtap_state.state = cur_dance(state);
181 switch (xtap_state.state) { 181 switch (xtap_state.state) {
182 case SINGLE_TAP: register_code16(KC_LSFT); register_code16(KC_9); break; 182 case SINGLE_TAP: register_code16(KC_LSFT); register_code16(KC_9); break;
@@ -185,7 +185,7 @@ void lshift_finished (qk_tap_dance_state_t *state, void *user_data) {
185 case TRIPLE_TAP: register_code16(KC_LSFT); register_code16(KC_LBRC); break; 185 case TRIPLE_TAP: register_code16(KC_LSFT); register_code16(KC_LBRC); break;
186 } 186 }
187} 187}
188void s_finished (qk_tap_dance_state_t *state, void *user_data) { 188void s_finished (tap_dance_state_t *state, void *user_data) {
189 xtap_state.state = cur_dance(state); 189 xtap_state.state = cur_dance(state);
190 switch (xtap_state.state) { 190 switch (xtap_state.state) {
191 case SINGLE_TAP: register_code16(KC_S); break; 191 case SINGLE_TAP: register_code16(KC_S); break;
@@ -194,7 +194,7 @@ void s_finished (qk_tap_dance_state_t *state, void *user_data) {
194 } 194 }
195} 195}
196 196
197void rshift_finished (qk_tap_dance_state_t *state, void *user_data) { 197void rshift_finished (tap_dance_state_t *state, void *user_data) {
198 xtap_state.state = cur_dance(state); 198 xtap_state.state = cur_dance(state);
199 switch (xtap_state.state) { 199 switch (xtap_state.state) {
200 case SINGLE_TAP: register_code16(KC_LSFT); register_code16(KC_0); break; 200 case SINGLE_TAP: register_code16(KC_LSFT); register_code16(KC_0); break;
@@ -206,7 +206,7 @@ void rshift_finished (qk_tap_dance_state_t *state, void *user_data) {
206 206
207// forgetting keypresses 207// forgetting keypresses
208 208
209void x_reset (qk_tap_dance_state_t *state, void *user_data) { 209void x_reset (tap_dance_state_t *state, void *user_data) {
210 switch (xtap_state.state) { 210 switch (xtap_state.state) {
211 case SINGLE_TAP: unregister_code16(KC_AT); break; 211 case SINGLE_TAP: unregister_code16(KC_AT); break;
212 case SINGLE_HOLD: clear_oneshot_layer_state(ONESHOT_PRESSED); break; 212 case SINGLE_HOLD: clear_oneshot_layer_state(ONESHOT_PRESSED); break;
@@ -215,7 +215,7 @@ void x_reset (qk_tap_dance_state_t *state, void *user_data) {
215 } 215 }
216 xtap_state.state = 0; 216 xtap_state.state = 0;
217} 217}
218void lshift_reset (qk_tap_dance_state_t *state, void *user_data) { 218void lshift_reset (tap_dance_state_t *state, void *user_data) {
219 switch (xtap_state.state) { 219 switch (xtap_state.state) {
220 case SINGLE_TAP: unregister_code16(KC_9); unregister_code16(KC_LSFT); break; 220 case SINGLE_TAP: unregister_code16(KC_9); unregister_code16(KC_LSFT); break;
221 case SINGLE_HOLD: unregister_code16(KC_LSFT); break; 221 case SINGLE_HOLD: unregister_code16(KC_LSFT); break;
@@ -225,7 +225,7 @@ void lshift_reset (qk_tap_dance_state_t *state, void *user_data) {
225 xtap_state.state = 0; 225 xtap_state.state = 0;
226} 226}
227 227
228void rshift_reset (qk_tap_dance_state_t *state, void *user_data) { 228void rshift_reset (tap_dance_state_t *state, void *user_data) {
229 switch (xtap_state.state) { 229 switch (xtap_state.state) {
230 case SINGLE_TAP: unregister_code16(KC_0); unregister_code16(KC_LSFT); break; 230 case SINGLE_TAP: unregister_code16(KC_0); unregister_code16(KC_LSFT); break;
231 case SINGLE_HOLD: unregister_code16(KC_RSFT); break; 231 case SINGLE_HOLD: unregister_code16(KC_RSFT); break;
@@ -234,7 +234,7 @@ void rshift_reset (qk_tap_dance_state_t *state, void *user_data) {
234 } 234 }
235 xtap_state.state = 0; 235 xtap_state.state = 0;
236} 236}
237void s_reset (qk_tap_dance_state_t *state, void *user_data) { 237void s_reset (tap_dance_state_t *state, void *user_data) {
238 switch (xtap_state.state) { 238 switch (xtap_state.state) {
239 case SINGLE_TAP: unregister_code16(KC_S); break; 239 case SINGLE_TAP: unregister_code16(KC_S); break;
240 case DOUBLE_TAP: unregister_code16(KC_MINUS); break; 240 case DOUBLE_TAP: unregister_code16(KC_MINUS); break;
@@ -242,7 +242,7 @@ void s_reset (qk_tap_dance_state_t *state, void *user_data) {
242 } 242 }
243 xtap_state.state = 0; 243 xtap_state.state = 0;
244} 244}
245qk_tap_dance_action_t tap_dance_actions[] = { 245tap_dance_action_t tap_dance_actions[] = {
246 [X_AT_FUN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, x_finished, x_reset), 246 [X_AT_FUN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, x_finished, x_reset),
247 [LSHIFT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lshift_finished, lshift_reset), 247 [LSHIFT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lshift_finished, lshift_reset),
248 [RSHIFT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, rshift_finished, rshift_reset), 248 [RSHIFT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, rshift_finished, rshift_reset),
diff --git a/keyboards/planck/keymaps/rootiest/keymap.c b/keyboards/planck/keymaps/rootiest/keymap.c
index 6ffcd5a0b4..20034c97e1 100644
--- a/keyboards/planck/keymaps/rootiest/keymap.c
+++ b/keyboards/planck/keymaps/rootiest/keymap.c
@@ -243,15 +243,15 @@ bool did_leader_succeed;
243LEADER_EXTERNS(); 243LEADER_EXTERNS();
244 244
245// Tap-Dance stuffs, initializing functions that are coded further below 245// Tap-Dance stuffs, initializing functions that are coded further below
246td_state_t cur_dance(qk_tap_dance_state_t* state); 246td_state_t cur_dance(tap_dance_state_t* state);
247void sml_finished(qk_tap_dance_state_t* state, void* user_data); 247void sml_finished(tap_dance_state_t* state, void* user_data);
248void sml_reset(qk_tap_dance_state_t* state, void* user_data); 248void sml_reset(tap_dance_state_t* state, void* user_data);
249void scap_finished(qk_tap_dance_state_t* state, void* user_data); 249void scap_finished(tap_dance_state_t* state, void* user_data);
250void scap_reset(qk_tap_dance_state_t* state, void* user_data); 250void scap_reset(tap_dance_state_t* state, void* user_data);
251void slctl_finished(qk_tap_dance_state_t* state, void* user_data); 251void slctl_finished(tap_dance_state_t* state, void* user_data);
252void slctl_reset(qk_tap_dance_state_t* state, void* user_data); 252void slctl_reset(tap_dance_state_t* state, void* user_data);
253void slalt_finished(qk_tap_dance_state_t* state, void* user_data); 253void slalt_finished(tap_dance_state_t* state, void* user_data);
254void slalt_reset(qk_tap_dance_state_t* state, void* user_data); 254void slalt_reset(tap_dance_state_t* state, void* user_data);
255bool lctl_sticky = false; 255bool lctl_sticky = false;
256bool lalt_sticky = false; 256bool lalt_sticky = false;
257 257
@@ -1325,7 +1325,7 @@ void rgb_wakeup_sequence(void) {
1325} 1325}
1326 1326
1327// Spits out some unicode special characters in response to a tap-dance 1327// Spits out some unicode special characters in response to a tap-dance
1328void send_degree_symbol(qk_tap_dance_state_t* state, void* user_data) { 1328void send_degree_symbol(tap_dance_state_t* state, void* user_data) {
1329 switch (state->count) { 1329 switch (state->count) {
1330 case 4: 1330 case 4:
1331 // ℃ 1331 // ℃
@@ -1416,7 +1416,7 @@ void leader_end_user(void) {
1416} 1416}
1417 1417
1418// Monitors and labels the current state of any tap-dances 1418// Monitors and labels the current state of any tap-dances
1419td_state_t cur_dance(qk_tap_dance_state_t* state) { 1419td_state_t cur_dance(tap_dance_state_t* state) {
1420 if (state->count == 1) { 1420 if (state->count == 1) {
1421 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP; 1421 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP;
1422 // Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'. 1422 // Key has not been interrupted, but the key is still held. Means you want to send a 'HOLD'.
@@ -1446,7 +1446,7 @@ static td_tap_t slctl_state = {.is_press_action = true, .state = TD_NONE};
1446static td_tap_t slalt_state = {.is_press_action = true, .state = TD_NONE}; 1446static td_tap_t slalt_state = {.is_press_action = true, .state = TD_NONE};
1447 1447
1448// Left-Shift->Sticky-Caps tap-dance finished 1448// Left-Shift->Sticky-Caps tap-dance finished
1449void scap_finished(qk_tap_dance_state_t* state, void* user_data) { 1449void scap_finished(tap_dance_state_t* state, void* user_data) {
1450 scap_state.state = cur_dance(state); 1450 scap_state.state = cur_dance(state);
1451 switch (scap_state.state) { 1451 switch (scap_state.state) {
1452 case TD_SINGLE_HOLD: 1452 case TD_SINGLE_HOLD:
@@ -1471,13 +1471,13 @@ void scap_finished(qk_tap_dance_state_t* state, void* user_data) {
1471} 1471}
1472 1472
1473// Left-Shift->Sticky-Caps tap-dance reset 1473// Left-Shift->Sticky-Caps tap-dance reset
1474void scap_reset(qk_tap_dance_state_t* state, void* user_data) { 1474void scap_reset(tap_dance_state_t* state, void* user_data) {
1475 unregister_code(KC_LSFT); 1475 unregister_code(KC_LSFT);
1476 scap_state.state = TD_NONE; 1476 scap_state.state = TD_NONE;
1477} 1477}
1478 1478
1479// Sticky-Left-Control tap-dance finished 1479// Sticky-Left-Control tap-dance finished
1480void slctl_finished(qk_tap_dance_state_t* state, void* user_data) { 1480void slctl_finished(tap_dance_state_t* state, void* user_data) {
1481 slctl_state.state = cur_dance(state); 1481 slctl_state.state = cur_dance(state);
1482 switch (slctl_state.state) { 1482 switch (slctl_state.state) {
1483 case TD_SINGLE_HOLD: 1483 case TD_SINGLE_HOLD:
@@ -1507,7 +1507,7 @@ void slctl_finished(qk_tap_dance_state_t* state, void* user_data) {
1507} 1507}
1508 1508
1509// Sticky-Left-Control tap-dance reset 1509// Sticky-Left-Control tap-dance reset
1510void slctl_reset(qk_tap_dance_state_t* state, void* user_data) { 1510void slctl_reset(tap_dance_state_t* state, void* user_data) {
1511 if (!lctl_sticky) { 1511 if (!lctl_sticky) {
1512 unregister_code(KC_LCTL); 1512 unregister_code(KC_LCTL);
1513 slctl_state.state = TD_NONE; 1513 slctl_state.state = TD_NONE;
@@ -1517,7 +1517,7 @@ void slctl_reset(qk_tap_dance_state_t* state, void* user_data) {
1517} 1517}
1518 1518
1519// Sticky-Left-Alt tap-dance finished 1519// Sticky-Left-Alt tap-dance finished
1520void slalt_finished(qk_tap_dance_state_t* state, void* user_data) { 1520void slalt_finished(tap_dance_state_t* state, void* user_data) {
1521 slalt_state.state = cur_dance(state); 1521 slalt_state.state = cur_dance(state);
1522 switch (slalt_state.state) { 1522 switch (slalt_state.state) {
1523 case TD_SINGLE_HOLD: 1523 case TD_SINGLE_HOLD:
@@ -1547,7 +1547,7 @@ void slalt_finished(qk_tap_dance_state_t* state, void* user_data) {
1547} 1547}
1548 1548
1549// Sticky-Left-Alt tap-dance reset 1549// Sticky-Left-Alt tap-dance reset
1550void slalt_reset(qk_tap_dance_state_t* state, void* user_data) { 1550void slalt_reset(tap_dance_state_t* state, void* user_data) {
1551 if (!lalt_sticky) { 1551 if (!lalt_sticky) {
1552 unregister_code(KC_LALT); 1552 unregister_code(KC_LALT);
1553 slalt_state.state = TD_NONE; 1553 slalt_state.state = TD_NONE;
@@ -1557,7 +1557,7 @@ void slalt_reset(qk_tap_dance_state_t* state, void* user_data) {
1557} 1557}
1558 1558
1559// Smiley key tap-dance finished 1559// Smiley key tap-dance finished
1560void sml_finished(qk_tap_dance_state_t* state, void* user_data) { 1560void sml_finished(tap_dance_state_t* state, void* user_data) {
1561 sml_state.state = cur_dance(state); 1561 sml_state.state = cur_dance(state);
1562 switch (sml_state.state) { 1562 switch (sml_state.state) {
1563 default: 1563 default:
@@ -1653,10 +1653,10 @@ void sml_finished(qk_tap_dance_state_t* state, void* user_data) {
1653 break; 1653 break;
1654 } 1654 }
1655} 1655}
1656void sml_reset(qk_tap_dance_state_t* state, void* user_data) { sml_state.state = TD_NONE; } 1656void sml_reset(tap_dance_state_t* state, void* user_data) { sml_state.state = TD_NONE; }
1657 1657
1658// Tap Dance definitions 1658// Tap Dance definitions
1659qk_tap_dance_action_t tap_dance_actions[] = { 1659tap_dance_action_t tap_dance_actions[] = {
1660 // Tap once for °, twice for ℉, thrice for ℃ 1660 // Tap once for °, twice for ℉, thrice for ℃
1661 [TD_DEG_DEGF] = ACTION_TAP_DANCE_FN(send_degree_symbol), // 1661 [TD_DEG_DEGF] = ACTION_TAP_DANCE_FN(send_degree_symbol), //
1662 [TD_LSHFT_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, scap_finished, scap_reset), // 1662 [TD_LSHFT_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, scap_finished, scap_reset), //
diff --git a/keyboards/planck/keymaps/sdothum/common/keycode_functions.h b/keyboards/planck/keymaps/sdothum/common/keycode_functions.h
index 08c5deca51..86d2645b4c 100644
--- a/keyboards/planck/keymaps/sdothum/common/keycode_functions.h
+++ b/keyboards/planck/keymaps/sdothum/common/keycode_functions.h
@@ -109,7 +109,7 @@ void double_shift(uint16_t keycode, uint8_t layer)
109} 109}
110 110
111// tap dance LT (LAYER, KEY) emulation with <KEY><DOWN> -> <KEY><SHIFT> and auto-repeat extensions! 111// tap dance LT (LAYER, KEY) emulation with <KEY><DOWN> -> <KEY><SHIFT> and auto-repeat extensions!
112void tap_shift(qk_tap_dance_state_t *state, uint16_t keycode, uint8_t layer) 112void tap_shift(tap_dance_state_t *state, uint16_t keycode, uint8_t layer)
113{ 113{
114 // double tap plus down 114 // double tap plus down
115 if (state->count > 2) { 115 if (state->count > 2) {
@@ -152,23 +152,23 @@ void tap_reset(uint16_t keycode, uint8_t layer)
152} 152}
153 153
154// augment pseudo LT (_RSHIFT, KC_ENT) handling below for rapid <ENTER><SHIFT> sequences 154// augment pseudo LT (_RSHIFT, KC_ENT) handling below for rapid <ENTER><SHIFT> sequences
155void enter(qk_tap_dance_state_t *state, void *user_data) 155void enter(tap_dance_state_t *state, void *user_data)
156{ 156{
157 tap_shift(state, KC_ENT, _RSHIFT); 157 tap_shift(state, KC_ENT, _RSHIFT);
158} 158}
159 159
160void enter_reset(qk_tap_dance_state_t *state, void *user_data) 160void enter_reset(tap_dance_state_t *state, void *user_data)
161{ 161{
162 tap_reset(KC_ENT, _RSHIFT); 162 tap_reset(KC_ENT, _RSHIFT);
163} 163}
164 164
165// augment pseudo LT (_LSHIFT, KC_SPC) handling below for rapid <SPACE><SHIFT> sequences 165// augment pseudo LT (_LSHIFT, KC_SPC) handling below for rapid <SPACE><SHIFT> sequences
166void space(qk_tap_dance_state_t *state, void *user_data) 166void space(tap_dance_state_t *state, void *user_data)
167{ 167{
168 tap_shift(state, KC_SPC, _LSHIFT); 168 tap_shift(state, KC_SPC, _LSHIFT);
169} 169}
170 170
171void space_reset(qk_tap_dance_state_t *state, void *user_data) 171void space_reset(tap_dance_state_t *state, void *user_data)
172{ 172{
173 tap_reset(KC_SPC, _LSHIFT); 173 tap_reset(KC_SPC, _LSHIFT);
174} 174}
@@ -191,7 +191,7 @@ void double_max(uint8_t count, uint8_t shift, uint16_t keycode)
191 } 191 }
192} 192}
193 193
194void colon(qk_tap_dance_state_t *state, void *user_data) 194void colon(tap_dance_state_t *state, void *user_data)
195{ 195{
196 if (state->count > 2) { 196 if (state->count > 2) {
197 tap_key (KC_SPC); 197 tap_key (KC_SPC);
@@ -205,7 +205,7 @@ void colon(qk_tap_dance_state_t *state, void *user_data)
205 reset_tap_dance(state); 205 reset_tap_dance(state);
206} 206}
207 207
208void eql(qk_tap_dance_state_t *state, void *user_data) 208void eql(tap_dance_state_t *state, void *user_data)
209{ 209{
210 if (state->count > 2) { 210 if (state->count > 2) {
211 tap_key(KC_SPC); 211 tap_key(KC_SPC);
@@ -219,7 +219,7 @@ void eql(qk_tap_dance_state_t *state, void *user_data)
219 reset_tap_dance(state); 219 reset_tap_dance(state);
220} 220}
221 221
222void greater(qk_tap_dance_state_t *state, void *user_data) 222void greater(tap_dance_state_t *state, void *user_data)
223{ 223{
224 if (state->count > 2) { 224 if (state->count > 2) {
225 tap_key (KC_SPC); 225 tap_key (KC_SPC);
@@ -233,7 +233,7 @@ void greater(qk_tap_dance_state_t *state, void *user_data)
233 reset_tap_dance(state); 233 reset_tap_dance(state);
234} 234}
235 235
236void lesser(qk_tap_dance_state_t *state, void *user_data) 236void lesser(tap_dance_state_t *state, void *user_data)
237{ 237{
238 if (state->count > 2) { 238 if (state->count > 2) {
239 tap_key (KC_SPC); 239 tap_key (KC_SPC);
@@ -247,7 +247,7 @@ void lesser(qk_tap_dance_state_t *state, void *user_data)
247 reset_tap_dance(state); 247 reset_tap_dance(state);
248} 248}
249 249
250void tilde(qk_tap_dance_state_t *state, void *user_data) 250void tilde(tap_dance_state_t *state, void *user_data)
251{ 251{
252 // double tap plus down: repeating keycode 252 // double tap plus down: repeating keycode
253 if (state->count > 2) { 253 if (state->count > 2) {
@@ -264,7 +264,7 @@ void tilde(qk_tap_dance_state_t *state, void *user_data)
264 } 264 }
265} 265}
266 266
267void tilde_reset(qk_tap_dance_state_t *state, void *user_data) 267void tilde_reset(tap_dance_state_t *state, void *user_data)
268{ 268{
269 unregister_code(KC_GRV); 269 unregister_code(KC_GRV);
270 unregister_code(KC_LSFT); 270 unregister_code(KC_LSFT);
@@ -293,7 +293,7 @@ void symbol_pair(uint8_t shift, uint16_t left, uint16_t right)
293#define CLOSE 1 293#define CLOSE 1
294 294
295// tap dance symbol pairs 295// tap dance symbol pairs
296void tap_pair(qk_tap_dance_state_t *state, uint8_t shift, uint16_t left, uint16_t right, uint16_t modifier, uint8_t close) 296void tap_pair(tap_dance_state_t *state, uint8_t shift, uint16_t left, uint16_t right, uint16_t modifier, uint8_t close)
297{ 297{
298 // triple tap: left right with cursor between symbol pair a la vim :-) 298 // triple tap: left right with cursor between symbol pair a la vim :-)
299 if (state->count > 2) { 299 if (state->count > 2) {
@@ -324,69 +324,69 @@ void tap_pair(qk_tap_dance_state_t *state, uint8_t shift, uint16_t left, uint16_
324 } 324 }
325} 325}
326 326
327void doublequote(qk_tap_dance_state_t *state, void *user_data) 327void doublequote(tap_dance_state_t *state, void *user_data)
328{ 328{
329 tap_pair(state, S_ALWAYS, KC_QUOT, KC_QUOT, 0, 0); 329 tap_pair(state, S_ALWAYS, KC_QUOT, KC_QUOT, 0, 0);
330} 330}
331 331
332void grave(qk_tap_dance_state_t *state, void *user_data) 332void grave(tap_dance_state_t *state, void *user_data)
333{ 333{
334 tap_pair(state, S_NEVER, KC_GRV, KC_GRV, 0, 0); 334 tap_pair(state, S_NEVER, KC_GRV, KC_GRV, 0, 0);
335} 335}
336 336
337void lbrace(qk_tap_dance_state_t *state, void *user_data) 337void lbrace(tap_dance_state_t *state, void *user_data)
338{ 338{
339 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, 0); 339 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, 0);
340} 340}
341 341
342void lcurly(qk_tap_dance_state_t *state, void *user_data) 342void lcurly(tap_dance_state_t *state, void *user_data)
343{ 343{
344 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, 0); 344 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, 0);
345} 345}
346 346
347void lparen(qk_tap_dance_state_t *state, void *user_data) 347void lparen(tap_dance_state_t *state, void *user_data)
348{ 348{
349 tap_pair(state, S_ALWAYS, KC_9, KC_0, KC_LCTL, 0); 349 tap_pair(state, S_ALWAYS, KC_9, KC_0, KC_LCTL, 0);
350} 350}
351 351
352void lparen_reset(qk_tap_dance_state_t *state, void *user_data) 352void lparen_reset(tap_dance_state_t *state, void *user_data)
353{ 353{
354 unregister_code(KC_LCTL); 354 unregister_code(KC_LCTL);
355} 355}
356 356
357void quote(qk_tap_dance_state_t *state, void *user_data) 357void quote(tap_dance_state_t *state, void *user_data)
358{ 358{
359 tap_pair(state, S_NEVER, KC_QUOT, KC_QUOT, 0, 0); 359 tap_pair(state, S_NEVER, KC_QUOT, KC_QUOT, 0, 0);
360} 360}
361 361
362void rangle(qk_tap_dance_state_t *state, void *user_data) 362void rangle(tap_dance_state_t *state, void *user_data)
363{ 363{
364 tap_pair(state, S_ALWAYS, KC_COMM, KC_DOT, 0, CLOSE); 364 tap_pair(state, S_ALWAYS, KC_COMM, KC_DOT, 0, CLOSE);
365} 365}
366 366
367void rbrace(qk_tap_dance_state_t *state, void *user_data) 367void rbrace(tap_dance_state_t *state, void *user_data)
368{ 368{
369 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, CLOSE); 369 tap_pair(state, S_NEVER, KC_LBRC, KC_RBRC, 0, CLOSE);
370} 370}
371 371
372void rcurly(qk_tap_dance_state_t *state, void *user_data) 372void rcurly(tap_dance_state_t *state, void *user_data)
373{ 373{
374 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, CLOSE); 374 tap_pair(state, S_ALWAYS, KC_LBRC, KC_RBRC, 0, CLOSE);
375} 375}
376 376
377void rparen(qk_tap_dance_state_t *state, void *user_data) 377void rparen(tap_dance_state_t *state, void *user_data)
378{ 378{
379 tap_pair(state, S_ALWAYS, KC_9, KC_0, 0, CLOSE); 379 tap_pair(state, S_ALWAYS, KC_9, KC_0, 0, CLOSE);
380} 380}
381 381
382void rparen_reset(qk_tap_dance_state_t *state, void *user_data) 382void rparen_reset(tap_dance_state_t *state, void *user_data)
383{ 383{
384 unregister_code(KC_LCTL); 384 unregister_code(KC_LCTL);
385} 385}
386 386
387// ............................................................ Tap Dance Insert 387// ............................................................ Tap Dance Insert
388 388
389void comma(qk_tap_dance_state_t *state, void *user_data) 389void comma(tap_dance_state_t *state, void *user_data)
390{ 390{
391 tap_key(KC_COMM); 391 tap_key(KC_COMM);
392 if (state->count > 1) { 392 if (state->count > 1) {
@@ -395,7 +395,7 @@ void comma(qk_tap_dance_state_t *state, void *user_data)
395 reset_tap_dance(state); 395 reset_tap_dance(state);
396} 396}
397 397
398void dot(qk_tap_dance_state_t *state, void *user_data) 398void dot(tap_dance_state_t *state, void *user_data)
399{ 399{
400 if (state->count > 1) { 400 if (state->count > 1) {
401 shift_key(KC_COLN); 401 shift_key(KC_COLN);
@@ -407,7 +407,7 @@ void dot(qk_tap_dance_state_t *state, void *user_data)
407} 407}
408 408
409// compile time macro string, see functions/hardware planck script 409// compile time macro string, see functions/hardware planck script
410void private(qk_tap_dance_state_t *state, void *user_data) 410void private(tap_dance_state_t *state, void *user_data)
411{ 411{
412 if (state->count > 1) { 412 if (state->count > 1) {
413#ifdef PRIVATE_STRING 413#ifdef PRIVATE_STRING
@@ -418,7 +418,7 @@ void private(qk_tap_dance_state_t *state, void *user_data)
418} 418}
419 419
420// config.h defined string 420// config.h defined string
421void send(qk_tap_dance_state_t *state, void *user_data) 421void send(tap_dance_state_t *state, void *user_data)
422{ 422{
423 if (state->count > 1) { 423 if (state->count > 1) {
424 SEND_STRING(PUBLIC_STRING); 424 SEND_STRING(PUBLIC_STRING);
@@ -428,7 +428,7 @@ void send(qk_tap_dance_state_t *state, void *user_data)
428 428
429// .......................................................... Tap Dance One Shot 429// .......................................................... Tap Dance One Shot
430 430
431void caps(qk_tap_dance_state_t *state, void *user_data) 431void caps(tap_dance_state_t *state, void *user_data)
432{ 432{
433 if (state->count > 1) { 433 if (state->count > 1) {
434 tap_key(KC_CAPS); 434 tap_key(KC_CAPS);
@@ -439,14 +439,14 @@ void caps(qk_tap_dance_state_t *state, void *user_data)
439 } 439 }
440} 440}
441 441
442void caps_reset(qk_tap_dance_state_t *state, void *user_data) 442void caps_reset(tap_dance_state_t *state, void *user_data)
443{ 443{
444 unregister_code(KC_LSFT); 444 unregister_code(KC_LSFT);
445} 445}
446 446
447// ................................................................... Tap Dance 447// ................................................................... Tap Dance
448 448
449qk_tap_dance_action_t tap_dance_actions[] = { 449tap_dance_action_t tap_dance_actions[] = {
450 [_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, caps, caps_reset) 450 [_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, caps, caps_reset)
451 ,[_COLN] = ACTION_TAP_DANCE_FN (colon) 451 ,[_COLN] = ACTION_TAP_DANCE_FN (colon)
452 ,[_COMM] = ACTION_TAP_DANCE_FN (comma) 452 ,[_COMM] = ACTION_TAP_DANCE_FN (comma)
diff --git a/keyboards/planck/keymaps/snowkuma/keymap.c b/keyboards/planck/keymaps/snowkuma/keymap.c
index ecf6b0725a..0df04d87fc 100644
--- a/keyboards/planck/keymaps/snowkuma/keymap.c
+++ b/keyboards/planck/keymaps/snowkuma/keymap.c
@@ -63,13 +63,13 @@ enum {
63}; 63};
64 64
65// Tap Dance Definitions 65// Tap Dance Definitions
66void safe_reset(qk_tap_dance_state_t *state, void *user_data) { 66void safe_reset(tap_dance_state_t *state, void *user_data) {
67 if (state->count >=3) { 67 if (state->count >=3) {
68 // Reset the keyboard if you tap the key more than three times 68 // Reset the keyboard if you tap the key more than three times
69 reset_keyboard(); 69 reset_keyboard();
70 reset_tap_dance(state); 70 reset_tap_dance(state);
71 } 71 }
72}; void tilde_home(qk_tap_dance_state_t *state, void *user_data) { 72}; void tilde_home(tap_dance_state_t *state, void *user_data) {
73 if (state->count > 2) { 73 if (state->count > 2) {
74 register_code(KC_LSFT); 74 register_code(KC_LSFT);
75 register_code(KC_GRV); 75 register_code(KC_GRV);
@@ -86,7 +86,7 @@ void safe_reset(qk_tap_dance_state_t *state, void *user_data) {
86 } 86 }
87} 87}
88 88
89void tilde_reset(qk_tap_dance_state_t *state, void *user_data) 89void tilde_reset(tap_dance_state_t *state, void *user_data)
90{ 90{
91 if (state->count == 2) { 91 if (state->count == 2) {
92 unregister_code(KC_SLSH); 92 unregister_code(KC_SLSH);
@@ -97,7 +97,7 @@ void tilde_reset(qk_tap_dance_state_t *state, void *user_data)
97} 97}
98 98
99 99
100qk_tap_dance_action_t tap_dance_actions[] = { 100tap_dance_action_t tap_dance_actions[] = {
101 [TD_RESET] = ACTION_TAP_DANCE_FN (safe_reset), 101 [TD_RESET] = ACTION_TAP_DANCE_FN (safe_reset),
102 [TD_TILD] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, tilde_home, tilde_reset) 102 [TD_TILD] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, tilde_home, tilde_reset)
103}; 103};
diff --git a/keyboards/planck/keymaps/tylerwince/keymap.c b/keyboards/planck/keymaps/tylerwince/keymap.c
index ae9211f5a5..5477dab6a1 100644
--- a/keyboards/planck/keymaps/tylerwince/keymap.c
+++ b/keyboards/planck/keymaps/tylerwince/keymap.c
@@ -19,7 +19,7 @@ enum {
19 TD_SEMI_COLON, 19 TD_SEMI_COLON,
20}; 20};
21 21
22qk_tap_dance_action_t tap_dance_actions[] = { 22tap_dance_action_t tap_dance_actions[] = {
23 [TD_SEMI_COLON] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_COLN), 23 [TD_SEMI_COLON] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_COLN),
24}; 24};
25 25
diff --git a/keyboards/planck/keymaps/unagi/keymap.c b/keyboards/planck/keymaps/unagi/keymap.c
index 0424c5b520..6227a73e4f 100644
--- a/keyboards/planck/keymaps/unagi/keymap.c
+++ b/keyboards/planck/keymaps/unagi/keymap.c
@@ -178,7 +178,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
178 178
179}; 179};
180 180
181qk_tap_dance_action_t tap_dance_actions[] = { 181tap_dance_action_t tap_dance_actions[] = {
182 [SFT_CAP] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS) 182 [SFT_CAP] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS)
183}; 183};
184 184
diff --git a/keyboards/planck/keymaps/zach/zach_common_functions.c b/keyboards/planck/keymaps/zach/zach_common_functions.c
index 7a594b567f..b6e8d9be47 100644
--- a/keyboards/planck/keymaps/zach/zach_common_functions.c
+++ b/keyboards/planck/keymaps/zach/zach_common_functions.c
@@ -68,7 +68,7 @@ float unilin[][2] = SONG(UNICODE_LINUX);
68#ifdef TAP_DANCE_ENABLE 68#ifdef TAP_DANCE_ENABLE
69#define TAPPING_TERM 200 69#define TAPPING_TERM 200
70 70
71void dance_raise_press(qk_tap_dance_state_t *state, void *user_data){// Called on each tap 71void dance_raise_press(tap_dance_state_t *state, void *user_data){// Called on each tap
72 switch(state->count){ // Only turn the layer on once 72 switch(state->count){ // Only turn the layer on once
73 case 1: 73 case 1:
74 layer_off(_UNICODES); 74 layer_off(_UNICODES);
@@ -77,7 +77,7 @@ void dance_raise_press(qk_tap_dance_state_t *state, void *user_data){// Called o
77 break; 77 break;
78 } 78 }
79}; 79};
80void dance_raise_lift(qk_tap_dance_state_t *state, void *user_data){ // Called on release 80void dance_raise_lift(tap_dance_state_t *state, void *user_data){ // Called on release
81 switch(state->count){ 81 switch(state->count){
82 case 1: // Normal action. Turn off layers 82 case 1: // Normal action. Turn off layers
83 layer_off(_RAISE); 83 layer_off(_RAISE);
@@ -87,7 +87,7 @@ void dance_raise_lift(qk_tap_dance_state_t *state, void *user_data){ // Called o
87 } 87 }
88}; 88};
89///////////////////////////////////////////////////////////////////// 89/////////////////////////////////////////////////////////////////////
90void dance_lower_press(qk_tap_dance_state_t *state, void *user_data){// Called on tap 90void dance_lower_press(tap_dance_state_t *state, void *user_data){// Called on tap
91 switch(state->count){ 91 switch(state->count){
92 case 1: // Turn on lower 92 case 1: // Turn on lower
93 layer_off(_UNICODES); 93 layer_off(_UNICODES);
@@ -96,7 +96,7 @@ void dance_lower_press(qk_tap_dance_state_t *state, void *user_data){// Called o
96 break; 96 break;
97 } 97 }
98}; 98};
99void dance_lower_lift(qk_tap_dance_state_t *state, void *user_data){ // Called on release 99void dance_lower_lift(tap_dance_state_t *state, void *user_data){ // Called on release
100 switch(state->count){ 100 switch(state->count){
101 case 1: // Normal action. Turn off layers 101 case 1: // Normal action. Turn off layers
102 layer_off(_LOWER); 102 layer_off(_LOWER);
@@ -114,12 +114,12 @@ void dance_lower_lift(qk_tap_dance_state_t *state, void *user_data){ // Called o
114 } 114 }
115}; 115};
116///////////////////////////////////////////////////////////////////// 116/////////////////////////////////////////////////////////////////////
117void dance_super_press(qk_tap_dance_state_t *state, void *user_data){ // Called on down 117void dance_super_press(tap_dance_state_t *state, void *user_data){ // Called on down
118 if(state->count == 1){ 118 if(state->count == 1){
119 register_code(KC_LGUI); 119 register_code(KC_LGUI);
120 } 120 }
121} 121}
122void dance_super_done(qk_tap_dance_state_t *state, void *user_data){ // Called on timeout 122void dance_super_done(tap_dance_state_t *state, void *user_data){ // Called on timeout
123 switch(state->count){ 123 switch(state->count){
124 case 2: 124 case 2:
125 register_code(KC_LGUI); 125 register_code(KC_LGUI);
@@ -128,11 +128,11 @@ void dance_super_done(qk_tap_dance_state_t *state, void *user_data){ // Calle
128 break; 128 break;
129 } 129 }
130} 130}
131void dance_super_lift(qk_tap_dance_state_t *state, void *user_data){ // Called on up 131void dance_super_lift(tap_dance_state_t *state, void *user_data){ // Called on up
132 unregister_code(KC_LGUI); 132 unregister_code(KC_LGUI);
133} 133}
134 134
135qk_tap_dance_action_t tap_dance_actions[] = { 135tap_dance_action_t tap_dance_actions[] = {
136 [RAI] = ACTION_TAP_DANCE_FN_ADVANCED(dance_raise_press, NULL, dance_raise_lift), 136 [RAI] = ACTION_TAP_DANCE_FN_ADVANCED(dance_raise_press, NULL, dance_raise_lift),
137 [LOW] = ACTION_TAP_DANCE_FN_ADVANCED(dance_lower_press, NULL, dance_lower_lift), 137 [LOW] = ACTION_TAP_DANCE_FN_ADVANCED(dance_lower_press, NULL, dance_lower_lift),
138 [SUP] = ACTION_TAP_DANCE_FN_ADVANCED(dance_super_press, dance_super_done, dance_super_lift) 138 [SUP] = ACTION_TAP_DANCE_FN_ADVANCED(dance_super_press, dance_super_done, dance_super_lift)
diff --git a/keyboards/preonic/keymaps/choromanski/keymap.c b/keyboards/preonic/keymaps/choromanski/keymap.c
index dd4a151980..ce7be97a57 100644
--- a/keyboards/preonic/keymaps/choromanski/keymap.c
+++ b/keyboards/preonic/keymaps/choromanski/keymap.c
@@ -21,7 +21,7 @@ enum {
21}; 21};
22 22
23//Tap Dance Definitions 23//Tap Dance Definitions
24qk_tap_dance_action_t tap_dance_actions[] = { 24tap_dance_action_t tap_dance_actions[] = {
25 //Tap once for 1, twice for Grave 25 //Tap once for 1, twice for Grave
26 [G1] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_GRV), 26 [G1] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_GRV),
27 //Tap once for [, twice for ] 27 //Tap once for [, twice for ]
diff --git a/keyboards/preonic/keymaps/davidrambo/keymap.c b/keyboards/preonic/keymaps/davidrambo/keymap.c
index 823bcb6862..aca8a7c1e3 100755
--- a/keyboards/preonic/keymaps/davidrambo/keymap.c
+++ b/keyboards/preonic/keymaps/davidrambo/keymap.c
@@ -156,7 +156,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
156}; 156};
157 157
158// Shift vs capslock function. From bbaserdem's Planck keymap. 158// Shift vs capslock function. From bbaserdem's Planck keymap.
159void caps_tap (qk_tap_dance_state_t *state, void *user_data) { 159void caps_tap (tap_dance_state_t *state, void *user_data) {
160 if (state->count == 1) { 160 if (state->count == 1) {
161 register_code (KC_LSFT); 161 register_code (KC_LSFT);
162 } else if (state->count == 2) { 162 } else if (state->count == 2) {
@@ -164,7 +164,7 @@ void caps_tap (qk_tap_dance_state_t *state, void *user_data) {
164 register_code (KC_CAPS); 164 register_code (KC_CAPS);
165 } 165 }
166} 166}
167void caps_tap_end (qk_tap_dance_state_t *state, void *user_data) { 167void caps_tap_end (tap_dance_state_t *state, void *user_data) {
168 if (state->count == 1) { 168 if (state->count == 1) {
169 unregister_code (KC_LSFT); 169 unregister_code (KC_LSFT);
170 } else { 170 } else {
@@ -173,7 +173,7 @@ void caps_tap_end (qk_tap_dance_state_t *state, void *user_data) {
173} 173}
174 174
175//Tap Dance Definitions 175//Tap Dance Definitions
176qk_tap_dance_action_t tap_dance_actions[] = { 176tap_dance_action_t tap_dance_actions[] = {
177 //Tap once for Shift, twice for Caps Lock 177 //Tap once for Shift, twice for Caps Lock
178 [SFT_LCK] = ACTION_TAP_DANCE_FN_ADVANCED( caps_tap, NULL, caps_tap_end ) 178 [SFT_LCK] = ACTION_TAP_DANCE_FN_ADVANCED( caps_tap, NULL, caps_tap_end )
179}; 179};
diff --git a/keyboards/preonic/keymaps/egstad/keymap.c b/keyboards/preonic/keymaps/egstad/keymap.c
index 0ea9c339b1..4b1fad7323 100644
--- a/keyboards/preonic/keymaps/egstad/keymap.c
+++ b/keyboards/preonic/keymaps/egstad/keymap.c
@@ -219,7 +219,7 @@ layer_state_t layer_state_set_user(layer_state_t state) {
219/* Tap Dance Definitions 219/* Tap Dance Definitions
220 ========================================================================== */ 220 ========================================================================== */
221 221
222qk_tap_dance_action_t tap_dance_actions[] = { 222tap_dance_action_t tap_dance_actions[] = {
223 // Tap once for Left Brace, twice for Right Brace 223 // Tap once for Left Brace, twice for Right Brace
224 [TD_BRC] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_RBRC), 224 [TD_BRC] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_RBRC),
225 //Tap once for Minus, twice for Equal 225 //Tap once for Minus, twice for Equal
diff --git a/keyboards/preonic/keymaps/era1112/keymap.c b/keyboards/preonic/keymaps/era1112/keymap.c
index 43c8ab9572..74ba6772d5 100644
--- a/keyboards/preonic/keymaps/era1112/keymap.c
+++ b/keyboards/preonic/keymaps/era1112/keymap.c
@@ -66,7 +66,7 @@ typedef struct {
66 td_state_t state; 66 td_state_t state;
67} td_tap_t; 67} td_tap_t;
68 68
69td_state_t cur_dance(qk_tap_dance_state_t* state); 69td_state_t cur_dance(tap_dance_state_t* state);
70 70
71/* Return an integer that corresponds to what kind of tap dance should be executed. 71/* Return an integer that corresponds to what kind of tap dance should be executed.
72 * 72 *
@@ -95,7 +95,7 @@ td_state_t cur_dance(qk_tap_dance_state_t* state);
95 * For the third point, there does exist the 'TD_DOUBLE_SINGLE_TAP', however this is not fully tested 95 * For the third point, there does exist the 'TD_DOUBLE_SINGLE_TAP', however this is not fully tested
96 * 96 *
97 */ 97 */
98td_state_t cur_dance(qk_tap_dance_state_t* state) { 98td_state_t cur_dance(tap_dance_state_t* state) {
99 if (state->count == 1) { 99 if (state->count == 1) {
100 if (state->interrupted || !state->pressed) { 100 if (state->interrupted || !state->pressed) {
101 return TD_1_TAP; 101 return TD_1_TAP;
@@ -117,15 +117,15 @@ td_state_t cur_dance(qk_tap_dance_state_t* state) {
117 117
118//----------- 2tap capslock --------------// 118//----------- 2tap capslock --------------//
119//----------------------------------------// 119//----------------------------------------//
120void twoCapsLock_finished(qk_tap_dance_state_t* state, void* user_data); 120void twoCapsLock_finished(tap_dance_state_t* state, void* user_data);
121void twoCapsLock_reset(qk_tap_dance_state_t* state, void* user_data); 121void twoCapsLock_reset(tap_dance_state_t* state, void* user_data);
122 122
123static td_tap_t twoCapsLock_tap_state = { 123static td_tap_t twoCapsLock_tap_state = {
124 .is_press_action = true, 124 .is_press_action = true,
125 .state = TD_NONE 125 .state = TD_NONE
126}; 126};
127 127
128void twoCapsLock_finished(qk_tap_dance_state_t* state, void* user_data) { 128void twoCapsLock_finished(tap_dance_state_t* state, void* user_data) {
129 twoCapsLock_tap_state.state = cur_dance(state); 129 twoCapsLock_tap_state.state = cur_dance(state);
130 switch (twoCapsLock_tap_state.state) { 130 switch (twoCapsLock_tap_state.state) {
131 case TD_NONE: register_code(KC_LSFT); break; 131 case TD_NONE: register_code(KC_LSFT); break;
@@ -142,7 +142,7 @@ void twoCapsLock_finished(qk_tap_dance_state_t* state, void* user_data) {
142 } 142 }
143} 143}
144 144
145void twoCapsLock_reset(qk_tap_dance_state_t* state, void* user_data) { 145void twoCapsLock_reset(tap_dance_state_t* state, void* user_data) {
146 switch (twoCapsLock_tap_state.state) { 146 switch (twoCapsLock_tap_state.state) {
147 case TD_UNKNOWN: unregister_code(KC_LSFT); break; 147 case TD_UNKNOWN: unregister_code(KC_LSFT); break;
148 case TD_NONE: unregister_code(KC_LSFT); break; 148 case TD_NONE: unregister_code(KC_LSFT); break;
@@ -202,7 +202,7 @@ enum custom_keycodes {
202 202
203static bool blinky = false; // Track blinky behavior on/off for keycode 203static bool blinky = false; // Track blinky behavior on/off for keycode
204 204
205qk_tap_dance_action_t tap_dance_actions[] = { 205tap_dance_action_t tap_dance_actions[] = {
206 [TD_2_CAPSLOCK] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, twoCapsLock_finished, twoCapsLock_reset) 206 [TD_2_CAPSLOCK] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, twoCapsLock_finished, twoCapsLock_reset)
207}; 207};
208 208
diff --git a/keyboards/preonic/keymaps/mverteuil/keymap.c b/keyboards/preonic/keymaps/mverteuil/keymap.c
index c54eff71d5..332e2877b2 100644
--- a/keyboards/preonic/keymaps/mverteuil/keymap.c
+++ b/keyboards/preonic/keymaps/mverteuil/keymap.c
@@ -75,17 +75,17 @@ typedef struct {
75 t_tap_state right_brackets; 75 t_tap_state right_brackets;
76} t_tap; 76} t_tap;
77 77
78t_tap_state get_tapdance_state(qk_tap_dance_state_t *state); 78t_tap_state get_tapdance_state(tap_dance_state_t *state);
79 79
80void td_numpad_funcrow_finished(qk_tap_dance_state_t *state, void *user_data); 80void td_numpad_funcrow_finished(tap_dance_state_t *state, void *user_data);
81void td_numpad_funcrow_reset(qk_tap_dance_state_t *state, void *user_data); 81void td_numpad_funcrow_reset(tap_dance_state_t *state, void *user_data);
82void td_brackets_left_finished(qk_tap_dance_state_t *state, void *user_data); 82void td_brackets_left_finished(tap_dance_state_t *state, void *user_data);
83void td_brackets_left_reset(qk_tap_dance_state_t *state, void *user_data); 83void td_brackets_left_reset(tap_dance_state_t *state, void *user_data);
84void td_brackets_right_finished(qk_tap_dance_state_t *state, void *user_data); 84void td_brackets_right_finished(tap_dance_state_t *state, void *user_data);
85void td_brackets_right_reset(qk_tap_dance_state_t *state, void *user_data); 85void td_brackets_right_reset(tap_dance_state_t *state, void *user_data);
86 86
87/* Tap Dance Definitions */ 87/* Tap Dance Definitions */
88qk_tap_dance_action_t tap_dance_actions[] = { 88tap_dance_action_t tap_dance_actions[] = {
89 /* Tap once for left parenthesis, twice for left bracket, thrice for left brace */ 89 /* Tap once for left parenthesis, twice for left bracket, thrice for left brace */
90 [TD_BRACKETS_LEFT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, td_brackets_left_finished, td_brackets_left_reset), 90 [TD_BRACKETS_LEFT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, td_brackets_left_finished, td_brackets_left_reset),
91 /* Tap once for right parenthesis, twice for right bracket, thrice for right brace */ 91 /* Tap once for right parenthesis, twice for right bracket, thrice for right brace */
@@ -290,7 +290,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
290}; 290};
291 291
292/* Global TapDance State */ 292/* Global TapDance State */
293static t_tap qk_tap_state = { 293static t_tap tap_state = {
294 .left_brackets = 0, 294 .left_brackets = 0,
295 .numpad_funcrow = 0, 295 .numpad_funcrow = 0,
296 .right_brackets = 0, 296 .right_brackets = 0,
@@ -300,7 +300,7 @@ float s_functionrow_on[][2] = LAYER_FUNCROW_ON_SONG;
300float s_functionrow_off[][2] = LAYER_FUNCROW_OFF_SONG; 300float s_functionrow_off[][2] = LAYER_FUNCROW_OFF_SONG;
301float s_numpad_toggle[][2] = LAYER_NMPAD_SONG; 301float s_numpad_toggle[][2] = LAYER_NMPAD_SONG;
302 302
303t_tap_state get_tapdance_state(qk_tap_dance_state_t *state) { 303t_tap_state get_tapdance_state(tap_dance_state_t *state) {
304 if (state->count == 1) { 304 if (state->count == 1) {
305 if (state->interrupted || !state->pressed) { 305 if (state->interrupted || !state->pressed) {
306 return SINGLE_TAP; 306 return SINGLE_TAP;
@@ -323,9 +323,9 @@ t_tap_state get_tapdance_state(qk_tap_dance_state_t *state) {
323 return TAP_DANCE_NO_MATCH; 323 return TAP_DANCE_NO_MATCH;
324} 324}
325 325
326void td_numpad_funcrow_finished(qk_tap_dance_state_t *state, void *user_data) { 326void td_numpad_funcrow_finished(tap_dance_state_t *state, void *user_data) {
327 qk_tap_state.numpad_funcrow = get_tapdance_state(state); 327 tap_state.numpad_funcrow = get_tapdance_state(state);
328 switch (qk_tap_state.numpad_funcrow) { 328 switch (tap_state.numpad_funcrow) {
329 case SINGLE_TAP ... SINGLE_HOLD: 329 case SINGLE_TAP ... SINGLE_HOLD:
330 layer_on(_NUMPAD); 330 layer_on(_NUMPAD);
331 PLAY_SONG(s_numpad_toggle); 331 PLAY_SONG(s_numpad_toggle);
@@ -347,8 +347,8 @@ void td_numpad_funcrow_finished(qk_tap_dance_state_t *state, void *user_data) {
347 } 347 }
348} 348}
349 349
350void td_numpad_funcrow_reset(qk_tap_dance_state_t *state, void *user_data) { 350void td_numpad_funcrow_reset(tap_dance_state_t *state, void *user_data) {
351 switch (qk_tap_state.numpad_funcrow) { 351 switch (tap_state.numpad_funcrow) {
352 case SINGLE_HOLD: 352 case SINGLE_HOLD:
353 layer_off(_NUMPAD); 353 layer_off(_NUMPAD);
354 break; 354 break;
@@ -360,9 +360,9 @@ void td_numpad_funcrow_reset(qk_tap_dance_state_t *state, void *user_data) {
360 } 360 }
361} 361}
362 362
363void td_brackets_left_finished(qk_tap_dance_state_t *state, void *user_data) { 363void td_brackets_left_finished(tap_dance_state_t *state, void *user_data) {
364 qk_tap_state.left_brackets = get_tapdance_state(state); 364 tap_state.left_brackets = get_tapdance_state(state);
365 switch (qk_tap_state.left_brackets) { 365 switch (tap_state.left_brackets) {
366 case SINGLE_TAP: 366 case SINGLE_TAP:
367 register_code16(KC_LEFT_PAREN); 367 register_code16(KC_LEFT_PAREN);
368 break; 368 break;
@@ -377,8 +377,8 @@ void td_brackets_left_finished(qk_tap_dance_state_t *state, void *user_data) {
377 } 377 }
378} 378}
379 379
380void td_brackets_left_reset(qk_tap_dance_state_t *state, void *user_data) { 380void td_brackets_left_reset(tap_dance_state_t *state, void *user_data) {
381 switch (qk_tap_state.left_brackets) { 381 switch (tap_state.left_brackets) {
382 case SINGLE_TAP: 382 case SINGLE_TAP:
383 unregister_code16(KC_LEFT_PAREN); 383 unregister_code16(KC_LEFT_PAREN);
384 break; 384 break;
@@ -391,12 +391,12 @@ void td_brackets_left_reset(qk_tap_dance_state_t *state, void *user_data) {
391 default: 391 default:
392 break; 392 break;
393 } 393 }
394 qk_tap_state.left_brackets = 0; 394 tap_state.left_brackets = 0;
395} 395}
396 396
397void td_brackets_right_finished(qk_tap_dance_state_t *state, void *user_data) { 397void td_brackets_right_finished(tap_dance_state_t *state, void *user_data) {
398 qk_tap_state.right_brackets = get_tapdance_state(state); 398 tap_state.right_brackets = get_tapdance_state(state);
399 switch (qk_tap_state.right_brackets) { 399 switch (tap_state.right_brackets) {
400 case SINGLE_TAP: 400 case SINGLE_TAP:
401 register_code16(KC_RIGHT_PAREN); 401 register_code16(KC_RIGHT_PAREN);
402 break; 402 break;
@@ -411,8 +411,8 @@ void td_brackets_right_finished(qk_tap_dance_state_t *state, void *user_data) {
411 } 411 }
412} 412}
413 413
414void td_brackets_right_reset(qk_tap_dance_state_t *state, void *user_data) { 414void td_brackets_right_reset(tap_dance_state_t *state, void *user_data) {
415 switch (qk_tap_state.right_brackets) { 415 switch (tap_state.right_brackets) {
416 case SINGLE_TAP: 416 case SINGLE_TAP:
417 unregister_code16(KC_RIGHT_PAREN); 417 unregister_code16(KC_RIGHT_PAREN);
418 break; 418 break;
@@ -425,7 +425,7 @@ void td_brackets_right_reset(qk_tap_dance_state_t *state, void *user_data) {
425 default: 425 default:
426 break; 426 break;
427 } 427 }
428 qk_tap_state.right_brackets = 0; 428 tap_state.right_brackets = 0;
429} 429}
430 430
431bool muse_mode = false; 431bool muse_mode = false;
diff --git a/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c b/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c
index a269519339..c6cad0fe5f 100644
--- a/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c
+++ b/keyboards/preonic/keymaps/mverteuil_2x2u/keymap.c
@@ -78,15 +78,15 @@ typedef struct {
78 t_tap_state right_brackets; 78 t_tap_state right_brackets;
79} t_tap; 79} t_tap;
80 80
81t_tap_state get_tapdance_state(qk_tap_dance_state_t *state); 81t_tap_state get_tapdance_state(tap_dance_state_t *state);
82 82
83void td_brackets_left_finished(qk_tap_dance_state_t *state, void *user_data); 83void td_brackets_left_finished(tap_dance_state_t *state, void *user_data);
84void td_brackets_left_reset(qk_tap_dance_state_t *state, void *user_data); 84void td_brackets_left_reset(tap_dance_state_t *state, void *user_data);
85void td_brackets_right_finished(qk_tap_dance_state_t *state, void *user_data); 85void td_brackets_right_finished(tap_dance_state_t *state, void *user_data);
86void td_brackets_right_reset(qk_tap_dance_state_t *state, void *user_data); 86void td_brackets_right_reset(tap_dance_state_t *state, void *user_data);
87 87
88/* Tap Dance Definitions */ 88/* Tap Dance Definitions */
89qk_tap_dance_action_t tap_dance_actions[] = { 89tap_dance_action_t tap_dance_actions[] = {
90 /* Tap once for left parenthesis, twice for left bracket, thrice for left brace */ 90 /* Tap once for left parenthesis, twice for left bracket, thrice for left brace */
91 [TD_BRACKETS_LEFT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, td_brackets_left_finished, td_brackets_left_reset), 91 [TD_BRACKETS_LEFT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, td_brackets_left_finished, td_brackets_left_reset),
92 /* Tap once for right parenthesis, twice for right bracket, thrice for right brace */ 92 /* Tap once for right parenthesis, twice for right bracket, thrice for right brace */
@@ -266,14 +266,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
266}; 266};
267 267
268/* Global TapDance State */ 268/* Global TapDance State */
269static t_tap qk_tap_state = { 269static t_tap tap_state = {
270 .left_brackets = 0, 270 .left_brackets = 0,
271 .right_brackets = 0, 271 .right_brackets = 0,
272}; 272};
273 273
274float s_numpad_toggle[][2] = LAYER_NMPAD_SONG; 274float s_numpad_toggle[][2] = LAYER_NMPAD_SONG;
275 275
276t_tap_state get_tapdance_state(qk_tap_dance_state_t *state) { 276t_tap_state get_tapdance_state(tap_dance_state_t *state) {
277 if (state->count == 1) { 277 if (state->count == 1) {
278 if (state->interrupted || !state->pressed) { 278 if (state->interrupted || !state->pressed) {
279 return SINGLE_TAP; 279 return SINGLE_TAP;
@@ -296,9 +296,9 @@ t_tap_state get_tapdance_state(qk_tap_dance_state_t *state) {
296 return TAP_DANCE_NO_MATCH; 296 return TAP_DANCE_NO_MATCH;
297} 297}
298 298
299void td_brackets_left_finished(qk_tap_dance_state_t *state, void *user_data) { 299void td_brackets_left_finished(tap_dance_state_t *state, void *user_data) {
300 qk_tap_state.left_brackets = get_tapdance_state(state); 300 tap_state.left_brackets = get_tapdance_state(state);
301 switch (qk_tap_state.left_brackets) { 301 switch (tap_state.left_brackets) {
302 case SINGLE_TAP: 302 case SINGLE_TAP:
303 register_code16(KC_LEFT_PAREN); 303 register_code16(KC_LEFT_PAREN);
304 break; 304 break;
@@ -313,8 +313,8 @@ void td_brackets_left_finished(qk_tap_dance_state_t *state, void *user_data) {
313 } 313 }
314} 314}
315 315
316void td_brackets_left_reset(qk_tap_dance_state_t *state, void *user_data) { 316void td_brackets_left_reset(tap_dance_state_t *state, void *user_data) {
317 switch (qk_tap_state.left_brackets) { 317 switch (tap_state.left_brackets) {
318 case SINGLE_TAP: 318 case SINGLE_TAP:
319 unregister_code16(KC_LEFT_PAREN); 319 unregister_code16(KC_LEFT_PAREN);
320 break; 320 break;
@@ -327,12 +327,12 @@ void td_brackets_left_reset(qk_tap_dance_state_t *state, void *user_data) {
327 default: 327 default:
328 break; 328 break;
329 } 329 }
330 qk_tap_state.left_brackets = 0; 330 tap_state.left_brackets = 0;
331} 331}
332 332
333void td_brackets_right_finished(qk_tap_dance_state_t *state, void *user_data) { 333void td_brackets_right_finished(tap_dance_state_t *state, void *user_data) {
334 qk_tap_state.right_brackets = get_tapdance_state(state); 334 tap_state.right_brackets = get_tapdance_state(state);
335 switch (qk_tap_state.right_brackets) { 335 switch (tap_state.right_brackets) {
336 case SINGLE_TAP: 336 case SINGLE_TAP:
337 register_code16(KC_RIGHT_PAREN); 337 register_code16(KC_RIGHT_PAREN);
338 break; 338 break;
@@ -347,8 +347,8 @@ void td_brackets_right_finished(qk_tap_dance_state_t *state, void *user_data) {
347 } 347 }
348} 348}
349 349
350void td_brackets_right_reset(qk_tap_dance_state_t *state, void *user_data) { 350void td_brackets_right_reset(tap_dance_state_t *state, void *user_data) {
351 switch (qk_tap_state.right_brackets) { 351 switch (tap_state.right_brackets) {
352 case SINGLE_TAP: 352 case SINGLE_TAP:
353 unregister_code16(KC_RIGHT_PAREN); 353 unregister_code16(KC_RIGHT_PAREN);
354 break; 354 break;
@@ -361,7 +361,7 @@ void td_brackets_right_reset(qk_tap_dance_state_t *state, void *user_data) {
361 default: 361 default:
362 break; 362 break;
363 } 363 }
364 qk_tap_state.right_brackets = 0; 364 tap_state.right_brackets = 0;
365} 365}
366 366
367bool muse_mode = false; 367bool muse_mode = false;
diff --git a/keyboards/preonic/keymaps/zach/zach_common_functions.c b/keyboards/preonic/keymaps/zach/zach_common_functions.c
index 7a594b567f..b6e8d9be47 100644
--- a/keyboards/preonic/keymaps/zach/zach_common_functions.c
+++ b/keyboards/preonic/keymaps/zach/zach_common_functions.c
@@ -68,7 +68,7 @@ float unilin[][2] = SONG(UNICODE_LINUX);
68#ifdef TAP_DANCE_ENABLE 68#ifdef TAP_DANCE_ENABLE
69#define TAPPING_TERM 200 69#define TAPPING_TERM 200
70 70
71void dance_raise_press(qk_tap_dance_state_t *state, void *user_data){// Called on each tap 71void dance_raise_press(tap_dance_state_t *state, void *user_data){// Called on each tap
72 switch(state->count){ // Only turn the layer on once 72 switch(state->count){ // Only turn the layer on once
73 case 1: 73 case 1:
74 layer_off(_UNICODES); 74 layer_off(_UNICODES);
@@ -77,7 +77,7 @@ void dance_raise_press(qk_tap_dance_state_t *state, void *user_data){// Called o
77 break; 77 break;
78 } 78 }
79}; 79};
80void dance_raise_lift(qk_tap_dance_state_t *state, void *user_data){ // Called on release 80void dance_raise_lift(tap_dance_state_t *state, void *user_data){ // Called on release
81 switch(state->count){ 81 switch(state->count){
82 case 1: // Normal action. Turn off layers 82 case 1: // Normal action. Turn off layers
83 layer_off(_RAISE); 83 layer_off(_RAISE);
@@ -87,7 +87,7 @@ void dance_raise_lift(qk_tap_dance_state_t *state, void *user_data){ // Called o
87 } 87 }
88}; 88};
89///////////////////////////////////////////////////////////////////// 89/////////////////////////////////////////////////////////////////////
90void dance_lower_press(qk_tap_dance_state_t *state, void *user_data){// Called on tap 90void dance_lower_press(tap_dance_state_t *state, void *user_data){// Called on tap
91 switch(state->count){ 91 switch(state->count){
92 case 1: // Turn on lower 92 case 1: // Turn on lower
93 layer_off(_UNICODES); 93 layer_off(_UNICODES);
@@ -96,7 +96,7 @@ void dance_lower_press(qk_tap_dance_state_t *state, void *user_data){// Called o
96 break; 96 break;
97 } 97 }
98}; 98};
99void dance_lower_lift(qk_tap_dance_state_t *state, void *user_data){ // Called on release 99void dance_lower_lift(tap_dance_state_t *state, void *user_data){ // Called on release
100 switch(state->count){ 100 switch(state->count){
101 case 1: // Normal action. Turn off layers 101 case 1: // Normal action. Turn off layers
102 layer_off(_LOWER); 102 layer_off(_LOWER);
@@ -114,12 +114,12 @@ void dance_lower_lift(qk_tap_dance_state_t *state, void *user_data){ // Called o
114 } 114 }
115}; 115};
116///////////////////////////////////////////////////////////////////// 116/////////////////////////////////////////////////////////////////////
117void dance_super_press(qk_tap_dance_state_t *state, void *user_data){ // Called on down 117void dance_super_press(tap_dance_state_t *state, void *user_data){ // Called on down
118 if(state->count == 1){ 118 if(state->count == 1){
119 register_code(KC_LGUI); 119 register_code(KC_LGUI);
120 } 120 }
121} 121}
122void dance_super_done(qk_tap_dance_state_t *state, void *user_data){ // Called on timeout 122void dance_super_done(tap_dance_state_t *state, void *user_data){ // Called on timeout
123 switch(state->count){ 123 switch(state->count){
124 case 2: 124 case 2:
125 register_code(KC_LGUI); 125 register_code(KC_LGUI);
@@ -128,11 +128,11 @@ void dance_super_done(qk_tap_dance_state_t *state, void *user_data){ // Calle
128 break; 128 break;
129 } 129 }
130} 130}
131void dance_super_lift(qk_tap_dance_state_t *state, void *user_data){ // Called on up 131void dance_super_lift(tap_dance_state_t *state, void *user_data){ // Called on up
132 unregister_code(KC_LGUI); 132 unregister_code(KC_LGUI);
133} 133}
134 134
135qk_tap_dance_action_t tap_dance_actions[] = { 135tap_dance_action_t tap_dance_actions[] = {
136 [RAI] = ACTION_TAP_DANCE_FN_ADVANCED(dance_raise_press, NULL, dance_raise_lift), 136 [RAI] = ACTION_TAP_DANCE_FN_ADVANCED(dance_raise_press, NULL, dance_raise_lift),
137 [LOW] = ACTION_TAP_DANCE_FN_ADVANCED(dance_lower_press, NULL, dance_lower_lift), 137 [LOW] = ACTION_TAP_DANCE_FN_ADVANCED(dance_lower_press, NULL, dance_lower_lift),
138 [SUP] = ACTION_TAP_DANCE_FN_ADVANCED(dance_super_press, dance_super_done, dance_super_lift) 138 [SUP] = ACTION_TAP_DANCE_FN_ADVANCED(dance_super_press, dance_super_done, dance_super_lift)
diff --git a/keyboards/primekb/prime_e/keymaps/brandonschlack/keymap.c b/keyboards/primekb/prime_e/keymaps/brandonschlack/keymap.c
index b7fb4dae47..349b767b33 100644
--- a/keyboards/primekb/prime_e/keymaps/brandonschlack/keymap.c
+++ b/keyboards/primekb/prime_e/keymaps/brandonschlack/keymap.c
@@ -23,7 +23,7 @@ enum {
23}; 23};
24 24
25// Tap Dance definitions 25// Tap Dance definitions
26qk_tap_dance_action_t tap_dance_actions[] = { 26tap_dance_action_t tap_dance_actions[] = {
27 // Tap once for LBracket, twice for RBracket 27 // Tap once for LBracket, twice for RBracket
28 [TD_LR_BRC] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_RBRC), 28 [TD_LR_BRC] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_RBRC),
29 // Tap once for Single Quote, twice for Double Quote 29 // Tap once for Single Quote, twice for Double Quote
diff --git a/keyboards/primekb/prime_o/keymaps/reasonsandreasons/keymap.c b/keyboards/primekb/prime_o/keymaps/reasonsandreasons/keymap.c
index f5a4d06204..20f34ce60b 100644
--- a/keyboards/primekb/prime_o/keymaps/reasonsandreasons/keymap.c
+++ b/keyboards/primekb/prime_o/keymaps/reasonsandreasons/keymap.c
@@ -28,7 +28,7 @@ enum {
28 TD_SPC_ENT = 0 28 TD_SPC_ENT = 0
29}; 29};
30 30
31qk_tap_dance_action_t tap_dance_actions[] = { 31tap_dance_action_t tap_dance_actions[] = {
32 [TD_SPC_ENT] = ACTION_TAP_DANCE_DOUBLE(KC_SPC, KC_ENT) 32 [TD_SPC_ENT] = ACTION_TAP_DANCE_DOUBLE(KC_SPC, KC_ENT)
33 33
34}; 34};
diff --git a/keyboards/recompile_keys/nomu30/keymaps/center_sprit/keymap.c b/keyboards/recompile_keys/nomu30/keymaps/center_sprit/keymap.c
index 4d90914332..832a682c42 100644
--- a/keyboards/recompile_keys/nomu30/keymaps/center_sprit/keymap.c
+++ b/keyboards/recompile_keys/nomu30/keymaps/center_sprit/keymap.c
@@ -54,7 +54,7 @@ enum tapdances{
54// Tap dance 54// Tap dance
55#define KC_CODO TD(TD_CODO) 55#define KC_CODO TD(TD_CODO)
56 56
57qk_tap_dance_action_t tap_dance_actions[] = { 57tap_dance_action_t tap_dance_actions[] = {
58 [TD_CODO] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_DOT), 58 [TD_CODO] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_DOT),
59 }; 59 };
60 60
diff --git a/keyboards/recompile_keys/nomu30/keymaps/like_jis/keymap.c b/keyboards/recompile_keys/nomu30/keymaps/like_jis/keymap.c
index c7c3c57723..4f17e7c1a1 100644
--- a/keyboards/recompile_keys/nomu30/keymaps/like_jis/keymap.c
+++ b/keyboards/recompile_keys/nomu30/keymaps/like_jis/keymap.c
@@ -53,7 +53,7 @@ enum custom_keycodes {
53// #define KC_CODO TD(TD_CODO) 53// #define KC_CODO TD(TD_CODO)
54// #define KC_SLRO TD(TD_SLRO) 54// #define KC_SLRO TD(TD_SLRO)
55 55
56// qk_tap_dance_action_t tap_dance_actions[] = { 56// tap_dance_action_t tap_dance_actions[] = {
57// [TD_CODO] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_DOT), 57// [TD_CODO] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_DOT),
58// [TD_SLRO] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, JP_BSLS), 58// [TD_SLRO] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, JP_BSLS),
59// }; 59// };
diff --git a/keyboards/redox/keymaps/finex/keymap.c b/keyboards/redox/keymaps/finex/keymap.c
index 6470addb27..9057dee074 100644
--- a/keyboards/redox/keymaps/finex/keymap.c
+++ b/keyboards/redox/keymaps/finex/keymap.c
@@ -47,7 +47,7 @@ enum tap_dance{
47}; 47};
48 48
49// Semicolon to Colon 49// Semicolon to Colon
50void dance_scln_finished (qk_tap_dance_state_t *state, void *user_data) { 50void dance_scln_finished (tap_dance_state_t *state, void *user_data) {
51 if (state->count == 1) { 51 if (state->count == 1) {
52 register_code (KC_SCLN); 52 register_code (KC_SCLN);
53 } else { 53 } else {
@@ -55,7 +55,7 @@ void dance_scln_finished (qk_tap_dance_state_t *state, void *user_data) {
55 register_code (KC_SCLN); 55 register_code (KC_SCLN);
56 } 56 }
57} 57}
58void dance_scln_reset (qk_tap_dance_state_t *state, void *user_data) { 58void dance_scln_reset (tap_dance_state_t *state, void *user_data) {
59 if (state->count == 1) { 59 if (state->count == 1) {
60 unregister_code (KC_SCLN); 60 unregister_code (KC_SCLN);
61 } else { 61 } else {
@@ -65,7 +65,7 @@ void dance_scln_reset (qk_tap_dance_state_t *state, void *user_data) {
65} 65}
66 66
67// Square braket to curly bracket (left) 67// Square braket to curly bracket (left)
68void dance_lbrc_finished (qk_tap_dance_state_t *state, void *user_data) { 68void dance_lbrc_finished (tap_dance_state_t *state, void *user_data) {
69 if (state->count == 1) { 69 if (state->count == 1) {
70 register_code (KC_LBRC); 70 register_code (KC_LBRC);
71 } else { 71 } else {
@@ -73,7 +73,7 @@ void dance_lbrc_finished (qk_tap_dance_state_t *state, void *user_data) {
73 register_code (KC_LBRC); 73 register_code (KC_LBRC);
74 } 74 }
75} 75}
76void dance_lbrc_reset (qk_tap_dance_state_t *state, void *user_data) { 76void dance_lbrc_reset (tap_dance_state_t *state, void *user_data) {
77 if (state->count == 1) { 77 if (state->count == 1) {
78 unregister_code (KC_LBRC); 78 unregister_code (KC_LBRC);
79 } else { 79 } else {
@@ -83,7 +83,7 @@ void dance_lbrc_reset (qk_tap_dance_state_t *state, void *user_data) {
83} 83}
84 84
85// Square braket to curly bracket (right) 85// Square braket to curly bracket (right)
86void dance_rbrc_finished (qk_tap_dance_state_t *state, void *user_data) { 86void dance_rbrc_finished (tap_dance_state_t *state, void *user_data) {
87 if (state->count == 1) { 87 if (state->count == 1) {
88 register_code (KC_RBRC); 88 register_code (KC_RBRC);
89 } else { 89 } else {
@@ -91,7 +91,7 @@ void dance_rbrc_finished (qk_tap_dance_state_t *state, void *user_data) {
91 register_code (KC_RBRC); 91 register_code (KC_RBRC);
92 } 92 }
93} 93}
94void dance_rbrc_reset (qk_tap_dance_state_t *state, void *user_data) { 94void dance_rbrc_reset (tap_dance_state_t *state, void *user_data) {
95 if (state->count == 1) { 95 if (state->count == 1) {
96 unregister_code (KC_RBRC); 96 unregister_code (KC_RBRC);
97 } else { 97 } else {
@@ -102,7 +102,7 @@ void dance_rbrc_reset (qk_tap_dance_state_t *state, void *user_data) {
102 102
103 103
104//Tap Dance Definitions 104//Tap Dance Definitions
105qk_tap_dance_action_t tap_dance_actions[] = { 105tap_dance_action_t tap_dance_actions[] = {
106 [TD_SCLN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_scln_finished, dance_scln_reset), 106 [TD_SCLN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_scln_finished, dance_scln_reset),
107 [TD_LBRC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_lbrc_finished, dance_lbrc_reset), 107 [TD_LBRC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_lbrc_finished, dance_lbrc_reset),
108 [TD_RBRC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_rbrc_finished, dance_rbrc_reset) 108 [TD_RBRC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_rbrc_finished, dance_rbrc_reset)
diff --git a/keyboards/reviung/reviung41/keymaps/ciutadellla/keymap.c b/keyboards/reviung/reviung41/keymaps/ciutadellla/keymap.c
index e3ae65a45f..7bfa16e8f4 100644
--- a/keyboards/reviung/reviung41/keymaps/ciutadellla/keymap.c
+++ b/keyboards/reviung/reviung41/keymaps/ciutadellla/keymap.c
@@ -163,7 +163,7 @@
163 #define TD_CTRL_LANG TD(_TD_CTRL_LANG) 163 #define TD_CTRL_LANG TD(_TD_CTRL_LANG)
164 #define TD_SCLN_NTILDE TD(_TD_SCLN_NTILDE) //TP with costum keycodes has to be a funtion 164 #define TD_SCLN_NTILDE TD(_TD_SCLN_NTILDE) //TP with costum keycodes has to be a funtion
165 165
166 void td_scln_ntilde(qk_tap_dance_state_t *state, void *user_data) { 166 void td_scln_ntilde(tap_dance_state_t *state, void *user_data) {
167 if (state->count == 1) { 167 if (state->count == 1) {
168 register_code(KC_SCLN); 168 register_code(KC_SCLN);
169 unregister_code(KC_SCLN); 169 unregister_code(KC_SCLN);
@@ -174,7 +174,7 @@
174 } 174 }
175 175
176 // Tap Dance Definitions 176 // Tap Dance Definitions
177 qk_tap_dance_action_t tap_dance_actions[] = { 177 tap_dance_action_t tap_dance_actions[] = {
178 [_TD_TAB_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_ESC), 178 [_TD_TAB_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_ESC),
179 [_TD_BSPC_WDEL] = ACTION_TAP_DANCE_DOUBLE(KC_BSPC, LALT(KC_BSPC)), 179 [_TD_BSPC_WDEL] = ACTION_TAP_DANCE_DOUBLE(KC_BSPC, LALT(KC_BSPC)),
180 [_TD_SFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), 180 [_TD_SFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
diff --git a/keyboards/rgbkb/zen/rev1/keymaps/starcalleramethyst/keymap.c b/keyboards/rgbkb/zen/rev1/keymaps/starcalleramethyst/keymap.c
index 1b4227708a..47e8e3fa24 100644
--- a/keyboards/rgbkb/zen/rev1/keymaps/starcalleramethyst/keymap.c
+++ b/keyboards/rgbkb/zen/rev1/keymaps/starcalleramethyst/keymap.c
@@ -105,7 +105,7 @@ enum {
105}; 105};
106 106
107//Tap Dance Definitions 107//Tap Dance Definitions
108qk_tap_dance_action_t tap_dance_actions[] = { 108tap_dance_action_t tap_dance_actions[] = {
109 //Tap once for Esc, twice for Caps Lock 109 //Tap once for Esc, twice for Caps Lock
110 [TD_SPC_DOT] = ACTION_TAP_DANCE_DOUBLE(KC_SPC, KC_PDOT) 110 [TD_SPC_DOT] = ACTION_TAP_DANCE_DOUBLE(KC_SPC, KC_PDOT)
111// Other declarations would go here, separated by commas, if you have them 111// Other declarations would go here, separated by commas, if you have them
diff --git a/keyboards/salicylic_acid3/7skb/keymaps/salicylic/keymap.c b/keyboards/salicylic_acid3/7skb/keymaps/salicylic/keymap.c
index 690476e1ef..58f6fb408a 100644
--- a/keyboards/salicylic_acid3/7skb/keymaps/salicylic/keymap.c
+++ b/keyboards/salicylic_acid3/7skb/keymaps/salicylic/keymap.c
@@ -31,7 +31,7 @@ enum tapdances{
31 TD_ESQW, 31 TD_ESQW,
32}; 32};
33 33
34qk_tap_dance_action_t tap_dance_actions[] = { 34tap_dance_action_t tap_dance_actions[] = {
35 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK), 35 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK),
36 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY), 36 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY),
37}; 37};
diff --git a/keyboards/salicylic_acid3/7splus/keymaps/salicylic/keymap.c b/keyboards/salicylic_acid3/7splus/keymaps/salicylic/keymap.c
index 23728e8000..22d9a683b1 100644
--- a/keyboards/salicylic_acid3/7splus/keymaps/salicylic/keymap.c
+++ b/keyboards/salicylic_acid3/7splus/keymaps/salicylic/keymap.c
@@ -38,7 +38,7 @@ enum tapdances{
38 TD_ESAR, 38 TD_ESAR,
39}; 39};
40 40
41qk_tap_dance_action_t tap_dance_actions[] = { 41tap_dance_action_t tap_dance_actions[] = {
42 [TD_ESMS] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _MOUSE), 42 [TD_ESMS] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _MOUSE),
43 [TD_ESAR] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY), 43 [TD_ESAR] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY),
44}; 44};
diff --git a/keyboards/salicylic_acid3/ajisai74/keymaps/jis/keymap.c b/keyboards/salicylic_acid3/ajisai74/keymaps/jis/keymap.c
index aaeffc6d22..5fa8be4024 100644
--- a/keyboards/salicylic_acid3/ajisai74/keymaps/jis/keymap.c
+++ b/keyboards/salicylic_acid3/ajisai74/keymaps/jis/keymap.c
@@ -30,7 +30,7 @@ enum tapdances{
30 TD_ENT = 0, 30 TD_ENT = 0,
31}; 31};
32 32
33qk_tap_dance_action_t tap_dance_actions[] = { 33tap_dance_action_t tap_dance_actions[] = {
34 [TD_ENT] = ACTION_TAP_DANCE_DOUBLE(KC_ENT, KC_ENT), 34 [TD_ENT] = ACTION_TAP_DANCE_DOUBLE(KC_ENT, KC_ENT),
35}; 35};
36 36
diff --git a/keyboards/salicylic_acid3/ajisai74/keymaps/salicylic/keymap.c b/keyboards/salicylic_acid3/ajisai74/keymaps/salicylic/keymap.c
index 5cb816448d..b0ceb7cf37 100644
--- a/keyboards/salicylic_acid3/ajisai74/keymaps/salicylic/keymap.c
+++ b/keyboards/salicylic_acid3/ajisai74/keymaps/salicylic/keymap.c
@@ -31,7 +31,7 @@ enum tapdances{
31 TD_ENT = 0, 31 TD_ENT = 0,
32}; 32};
33 33
34qk_tap_dance_action_t tap_dance_actions[] = { 34tap_dance_action_t tap_dance_actions[] = {
35 [TD_ENT] = ACTION_TAP_DANCE_DOUBLE(KC_ENT, KC_ENT), 35 [TD_ENT] = ACTION_TAP_DANCE_DOUBLE(KC_ENT, KC_ENT),
36}; 36};
37 37
diff --git a/keyboards/salicylic_acid3/jisplit89/keymaps/salicylic/keymap.c b/keyboards/salicylic_acid3/jisplit89/keymaps/salicylic/keymap.c
index 3f73bd8ebb..093ae4650a 100644
--- a/keyboards/salicylic_acid3/jisplit89/keymaps/salicylic/keymap.c
+++ b/keyboards/salicylic_acid3/jisplit89/keymaps/salicylic/keymap.c
@@ -38,7 +38,7 @@ enum tapdances{
38 TD_ESAR, 38 TD_ESAR,
39}; 39};
40 40
41qk_tap_dance_action_t tap_dance_actions[] = { 41tap_dance_action_t tap_dance_actions[] = {
42 [TD_ESMS] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _MOUSE), 42 [TD_ESMS] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _MOUSE),
43 [TD_ESAR] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY), 43 [TD_ESAR] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY),
44}; 44};
diff --git a/keyboards/salicylic_acid3/naked60/keymaps/salicylic/keymap.c b/keyboards/salicylic_acid3/naked60/keymaps/salicylic/keymap.c
index a845ebe57e..85030c1402 100644
--- a/keyboards/salicylic_acid3/naked60/keymaps/salicylic/keymap.c
+++ b/keyboards/salicylic_acid3/naked60/keymaps/salicylic/keymap.c
@@ -22,7 +22,7 @@ enum tapdances{
22 TD_ESQW, 22 TD_ESQW,
23}; 23};
24 24
25qk_tap_dance_action_t tap_dance_actions[] = { 25tap_dance_action_t tap_dance_actions[] = {
26 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK), 26 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK),
27 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY), 27 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY),
28}; 28};
diff --git a/keyboards/salicylic_acid3/naked60/keymaps/salicylic_with_nafuda/keymap.c b/keyboards/salicylic_acid3/naked60/keymaps/salicylic_with_nafuda/keymap.c
index ff3a787576..ad3a1cff2b 100644
--- a/keyboards/salicylic_acid3/naked60/keymaps/salicylic_with_nafuda/keymap.c
+++ b/keyboards/salicylic_acid3/naked60/keymaps/salicylic_with_nafuda/keymap.c
@@ -33,7 +33,7 @@ enum tapdances{
33 TD_ESQW, 33 TD_ESQW,
34}; 34};
35 35
36qk_tap_dance_action_t tap_dance_actions[] = { 36tap_dance_action_t tap_dance_actions[] = {
37 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK), 37 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK),
38 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY), 38 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY),
39}; 39};
diff --git a/keyboards/salicylic_acid3/naked60/keymaps/salicylic_with_setta21/keymap.c b/keyboards/salicylic_acid3/naked60/keymaps/salicylic_with_setta21/keymap.c
index c7d783fe8b..b80ef8ab4d 100644
--- a/keyboards/salicylic_acid3/naked60/keymaps/salicylic_with_setta21/keymap.c
+++ b/keyboards/salicylic_acid3/naked60/keymaps/salicylic_with_setta21/keymap.c
@@ -31,7 +31,7 @@ enum tapdances{
31 TD_ESQW, 31 TD_ESQW,
32}; 32};
33 33
34qk_tap_dance_action_t tap_dance_actions[] = { 34tap_dance_action_t tap_dance_actions[] = {
35 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK), 35 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK),
36 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY), 36 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY),
37}; 37};
diff --git a/keyboards/salicylic_acid3/naked64/keymaps/salicylic/keymap.c b/keyboards/salicylic_acid3/naked64/keymaps/salicylic/keymap.c
index 5ccb02ee8a..c34f07e2d9 100644
--- a/keyboards/salicylic_acid3/naked64/keymaps/salicylic/keymap.c
+++ b/keyboards/salicylic_acid3/naked64/keymaps/salicylic/keymap.c
@@ -32,7 +32,7 @@ enum tapdances{
32 TD_ESQW, 32 TD_ESQW,
33}; 33};
34 34
35qk_tap_dance_action_t tap_dance_actions[] = { 35tap_dance_action_t tap_dance_actions[] = {
36 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK), 36 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK),
37 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY), 37 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY),
38}; 38};
diff --git a/keyboards/salicylic_acid3/naked64/keymaps/salicylic_with_setta21/keymap.c b/keyboards/salicylic_acid3/naked64/keymaps/salicylic_with_setta21/keymap.c
index 1272a2fe2d..68250c44c2 100644
--- a/keyboards/salicylic_acid3/naked64/keymaps/salicylic_with_setta21/keymap.c
+++ b/keyboards/salicylic_acid3/naked64/keymaps/salicylic_with_setta21/keymap.c
@@ -37,7 +37,7 @@ enum tapdances{
37 TD_ESQW, 37 TD_ESQW,
38}; 38};
39 39
40qk_tap_dance_action_t tap_dance_actions[] = { 40tap_dance_action_t tap_dance_actions[] = {
41 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK), 41 [TD_ESFL] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _FLOCK),
42 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY), 42 [TD_ESQW] = ACTION_TAP_DANCE_LAYER_MOVE(KC_ESC, _QWERTY),
43}; 43};
diff --git a/keyboards/sofle/keymaps/flare576/keymap.c b/keyboards/sofle/keymaps/flare576/keymap.c
index 997fab9f3d..57784d633b 100644
--- a/keyboards/sofle/keymaps/flare576/keymap.c
+++ b/keyboards/sofle/keymaps/flare576/keymap.c
@@ -19,7 +19,7 @@
19#include "enums.h" 19#include "enums.h"
20#include "graphics.h" 20#include "graphics.h"
21 21
22qk_tap_dance_action_t tap_dance_actions[] = { 22tap_dance_action_t tap_dance_actions[] = {
23 [TD_PLAY] = ACTION_TAP_DANCE_DOUBLE(KC_MPLY, KC_MNXT), 23 [TD_PLAY] = ACTION_TAP_DANCE_DOUBLE(KC_MPLY, KC_MNXT),
24 [TD_HOME] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_END), 24 [TD_HOME] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_END),
25}; 25};
diff --git a/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/keymap.c b/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/keymap.c
index 6f21c630bf..93c0f0eee3 100644
--- a/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/keymap.c
+++ b/keyboards/spaceman/2_milk/keymaps/copypasta_macfancy/keymap.c
@@ -8,7 +8,7 @@ enum tapdance_keycodes {
8 TD_KEY_2 8 TD_KEY_2
9}; 9};
10 10
11void dance_key_one(qk_tap_dance_state_t *state, void *user_data) { 11void dance_key_one(tap_dance_state_t *state, void *user_data) {
12 if (state->count == 1) { 12 if (state->count == 1) {
13 /* Copy for Mac. */ 13 /* Copy for Mac. */
14 /* Windows & Linux use Ctrl+C: tap_code16(C(KC_C)) */ 14 /* Windows & Linux use Ctrl+C: tap_code16(C(KC_C)) */
@@ -26,7 +26,7 @@ void dance_key_one(qk_tap_dance_state_t *state, void *user_data) {
26 } 26 }
27} 27}
28 28
29void dance_key_two(qk_tap_dance_state_t *state, void *user_data) { 29void dance_key_two(tap_dance_state_t *state, void *user_data) {
30 if (state->count == 1) { 30 if (state->count == 1) {
31 /* Paste for Mac. */ 31 /* Paste for Mac. */
32 /* Windows & Linux use Ctrl+V: tap_code16(C(KC_V)) */ 32 /* Windows & Linux use Ctrl+V: tap_code16(C(KC_V)) */
@@ -45,7 +45,7 @@ void dance_key_two(qk_tap_dance_state_t *state, void *user_data) {
45 } 45 }
46} 46}
47 47
48qk_tap_dance_action_t tap_dance_actions[] = { 48tap_dance_action_t tap_dance_actions[] = {
49 [TD_KEY_1] = ACTION_TAP_DANCE_FN(dance_key_one), 49 [TD_KEY_1] = ACTION_TAP_DANCE_FN(dance_key_one),
50 [TD_KEY_2] = ACTION_TAP_DANCE_FN(dance_key_two) 50 [TD_KEY_2] = ACTION_TAP_DANCE_FN(dance_key_two)
51}; 51};
diff --git a/keyboards/spaceman/2_milk/keymaps/emoji/keymap.c b/keyboards/spaceman/2_milk/keymaps/emoji/keymap.c
index 9deb2ddaf0..8859573ce5 100644
--- a/keyboards/spaceman/2_milk/keymaps/emoji/keymap.c
+++ b/keyboards/spaceman/2_milk/keymaps/emoji/keymap.c
@@ -5,7 +5,7 @@ enum tapdance_keycodes {
5 TD_KEY_2, 5 TD_KEY_2,
6}; 6};
7 7
8void dance_key_one (qk_tap_dance_state_t *state, void *user_data) { 8void dance_key_one (tap_dance_state_t *state, void *user_data) {
9 if (state->count == 1) { 9 if (state->count == 1) {
10 send_unicode_string("¯\\_(ツ)_/¯"); 10 send_unicode_string("¯\\_(ツ)_/¯");
11 tap_code(KC_ENTER); 11 tap_code(KC_ENTER);
@@ -16,7 +16,7 @@ void dance_key_one (qk_tap_dance_state_t *state, void *user_data) {
16 } 16 }
17} 17}
18 18
19void dance_key_two (qk_tap_dance_state_t *state, void *user_data) { 19void dance_key_two (tap_dance_state_t *state, void *user_data) {
20 if (state->count == 1) { 20 if (state->count == 1) {
21 send_unicode_string("ಠ_ಠ"); 21 send_unicode_string("ಠ_ಠ");
22 tap_code(KC_ENTER); 22 tap_code(KC_ENTER);
@@ -40,7 +40,7 @@ void dance_key_two (qk_tap_dance_state_t *state, void *user_data) {
40 } 40 }
41} 41}
42 42
43qk_tap_dance_action_t tap_dance_actions[] = { 43tap_dance_action_t tap_dance_actions[] = {
44 [TD_KEY_1] = ACTION_TAP_DANCE_FN(dance_key_one), 44 [TD_KEY_1] = ACTION_TAP_DANCE_FN(dance_key_one),
45 [TD_KEY_2] = ACTION_TAP_DANCE_FN(dance_key_two), 45 [TD_KEY_2] = ACTION_TAP_DANCE_FN(dance_key_two),
46}; 46};
diff --git a/keyboards/spacetime/keymaps/kyleterry/keymap.c b/keyboards/spacetime/keymaps/kyleterry/keymap.c
index d4d31dc1fd..fd91fafbd2 100644
--- a/keyboards/spacetime/keymaps/kyleterry/keymap.c
+++ b/keyboards/spacetime/keymaps/kyleterry/keymap.c
@@ -114,7 +114,7 @@ void led_set_user(uint8_t usb_led) {
114 114
115} 115}
116 116
117void td_common(qk_tap_dance_state_t *state, void *user_data) { 117void td_common(tap_dance_state_t *state, void *user_data) {
118 switch (state->count) { 118 switch (state->count) {
119 case 1: 119 case 1:
120 /* this case handles ctrl+o which is my tmux prefix 120 /* this case handles ctrl+o which is my tmux prefix
@@ -132,7 +132,7 @@ void td_common(qk_tap_dance_state_t *state, void *user_data) {
132 } 132 }
133} 133}
134 134
135void td_media(qk_tap_dance_state_t *state, void *user_data) { 135void td_media(tap_dance_state_t *state, void *user_data) {
136 switch (state->count) { 136 switch (state->count) {
137 case 1: 137 case 1:
138 tap_code16(KC_MPLY); 138 tap_code16(KC_MPLY);
@@ -145,7 +145,7 @@ void td_media(qk_tap_dance_state_t *state, void *user_data) {
145 } 145 }
146} 146}
147 147
148qk_tap_dance_action_t tap_dance_actions[] = { 148tap_dance_action_t tap_dance_actions[] = {
149 [TD_C] = ACTION_TAP_DANCE_FN(td_common), 149 [TD_C] = ACTION_TAP_DANCE_FN(td_common),
150 [TD_MD] = ACTION_TAP_DANCE_FN(td_media), 150 [TD_MD] = ACTION_TAP_DANCE_FN(td_media),
151}; 151};
diff --git a/keyboards/splitkb/kyria/keymaps/artflag/keymap.c b/keyboards/splitkb/kyria/keymaps/artflag/keymap.c
index a49eaafb89..311a1c75e2 100644
--- a/keyboards/splitkb/kyria/keymaps/artflag/keymap.c
+++ b/keyboards/splitkb/kyria/keymaps/artflag/keymap.c
@@ -9,7 +9,7 @@ enum {
9 CT_CLN, // Reverses colon and semicolon and triggers semicolon on tap dance. 9 CT_CLN, // Reverses colon and semicolon and triggers semicolon on tap dance.
10}; 10};
11 11
12void dance_cln_finished(qk_tap_dance_state_t *state, void *user_data) { 12void dance_cln_finished(tap_dance_state_t *state, void *user_data) {
13 if (state->count == 1) { 13 if (state->count == 1) {
14 register_code16(KC_COLN); 14 register_code16(KC_COLN);
15 } else { 15 } else {
@@ -17,7 +17,7 @@ void dance_cln_finished(qk_tap_dance_state_t *state, void *user_data) {
17 } 17 }
18} 18}
19 19
20void dance_cln_reset(qk_tap_dance_state_t *state, void *user_data) { 20void dance_cln_reset(tap_dance_state_t *state, void *user_data) {
21 if (state->count == 1) { 21 if (state->count == 1) {
22 unregister_code16(KC_COLN); 22 unregister_code16(KC_COLN);
23 } else { 23 } else {
@@ -26,7 +26,7 @@ void dance_cln_reset(qk_tap_dance_state_t *state, void *user_data) {
26} 26}
27 27
28// All tap dance functions would go here. 28// All tap dance functions would go here.
29qk_tap_dance_action_t tap_dance_actions[] = { 29tap_dance_action_t tap_dance_actions[] = {
30 [CT_CLN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_cln_finished, dance_cln_reset), 30 [CT_CLN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_cln_finished, dance_cln_reset),
31}; 31};
32 32
diff --git a/keyboards/splitkb/kyria/keymaps/lms_ace01/keymap.c b/keyboards/splitkb/kyria/keymaps/lms_ace01/keymap.c
index b2ba6b71eb..89f0b06edd 100644
--- a/keyboards/splitkb/kyria/keymaps/lms_ace01/keymap.c
+++ b/keyboards/splitkb/kyria/keymaps/lms_ace01/keymap.c
@@ -130,11 +130,11 @@ static td_tap_t td_tap_state = {
130 .state = TD_NONE 130 .state = TD_NONE
131}; 131};
132 132
133td_state_t td_current (qk_tap_dance_state_t *state); 133td_state_t td_current (tap_dance_state_t *state);
134void td_kc_ly_finished(qk_tap_dance_state_t *state, void *user_data); 134void td_kc_ly_finished(tap_dance_state_t *state, void *user_data);
135void td_kc_ly_reset (qk_tap_dance_state_t *state, void *user_data); 135void td_kc_ly_reset (tap_dance_state_t *state, void *user_data);
136 136
137qk_tap_dance_action_t tap_dance_actions[] = { 137tap_dance_action_t tap_dance_actions[] = {
138 [TAB] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_CAPS), 138 [TAB] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, KC_CAPS),
139 [ESC] = ACTION_TAP_DANCE_FN_ADVANCED_USER(NULL, td_kc_ly_finished, td_kc_ly_reset, \ 139 [ESC] = ACTION_TAP_DANCE_FN_ADVANCED_USER(NULL, td_kc_ly_finished, td_kc_ly_reset, \
140 &((td_user_data_t) { KC_ESC, { _NAVIGATION, _QWERTY_ES, _QWERTY_ES }})), 140 &((td_user_data_t) { KC_ESC, { _NAVIGATION, _QWERTY_ES, _QWERTY_ES }})),
@@ -505,7 +505,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
505 * TAP DANCE FUNCTIONS 505 * TAP DANCE FUNCTIONS
506 */ 506 */
507#ifdef TAP_DANCE_ENABLE 507#ifdef TAP_DANCE_ENABLE
508td_state_t td_current(qk_tap_dance_state_t *state) { 508td_state_t td_current(tap_dance_state_t *state) {
509 switch (state->count) { 509 switch (state->count) {
510 case 1: 510 case 1:
511 return ((!state->pressed) ? TD_SINGLE_TAP : TD_SINGLE_HOLD); 511 return ((!state->pressed) ? TD_SINGLE_TAP : TD_SINGLE_HOLD);
@@ -516,7 +516,7 @@ td_state_t td_current(qk_tap_dance_state_t *state) {
516 } 516 }
517} 517}
518 518
519void td_kc_ly_finished(qk_tap_dance_state_t *state, void *user_data) { 519void td_kc_ly_finished(tap_dance_state_t *state, void *user_data) {
520 td_tap_state.state = td_current(state); 520 td_tap_state.state = td_current(state);
521 uint16_t keycode = ((td_user_data_t *)user_data)->keycode; 521 uint16_t keycode = ((td_user_data_t *)user_data)->keycode;
522 uint8_t *layer_arr = ((td_user_data_t *)user_data)->layer; 522 uint8_t *layer_arr = ((td_user_data_t *)user_data)->layer;
@@ -576,7 +576,7 @@ void td_kc_ly_finished(qk_tap_dance_state_t *state, void *user_data) {
576 } 576 }
577} 577}
578 578
579void td_kc_ly_reset(qk_tap_dance_state_t *state, void *user_data) { 579void td_kc_ly_reset(tap_dance_state_t *state, void *user_data) {
580 uint8_t *layer_arr = ((td_user_data_t *)user_data)->layer; 580 uint8_t *layer_arr = ((td_user_data_t *)user_data)->layer;
581 581
582 if (td_tap_state.state == TD_SINGLE_HOLD) { 582 if (td_tap_state.state == TD_SINGLE_HOLD) {
diff --git a/keyboards/tada68/keymaps/abishalom/keymap.c b/keyboards/tada68/keymaps/abishalom/keymap.c
index f21fd93313..9dba7374bf 100644
--- a/keyboards/tada68/keymaps/abishalom/keymap.c
+++ b/keyboards/tada68/keymaps/abishalom/keymap.c
@@ -15,7 +15,7 @@ enum {
15}; 15};
16 16
17//Tap Dance Definitions 17//Tap Dance Definitions
18qk_tap_dance_action_t tap_dance_actions[] = { 18tap_dance_action_t tap_dance_actions[] = {
19 [TD_WIN_LOCK] = ACTION_TAP_DANCE_DOUBLE(MAGIC_NO_GUI, MAGIC_UNNO_GUI) 19 [TD_WIN_LOCK] = ACTION_TAP_DANCE_DOUBLE(MAGIC_NO_GUI, MAGIC_UNNO_GUI)
20}; 20};
21 21
diff --git a/keyboards/tada68/keymaps/sm0g/keymap.c b/keyboards/tada68/keymaps/sm0g/keymap.c
index f7d1c6ba69..2c1e104732 100644
--- a/keyboards/tada68/keymaps/sm0g/keymap.c
+++ b/keyboards/tada68/keymaps/sm0g/keymap.c
@@ -84,7 +84,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
84}; 84};
85 85
86// Tapdance definitions. Tap Dance F Keys. 86// Tapdance definitions. Tap Dance F Keys.
87qk_tap_dance_action_t tap_dance_actions[] = { 87tap_dance_action_t tap_dance_actions[] = {
88 [TD_F1] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_F1), 88 [TD_F1] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_F1),
89 [TD_F2] = ACTION_TAP_DANCE_DOUBLE(KC_2, KC_F2), 89 [TD_F2] = ACTION_TAP_DANCE_DOUBLE(KC_2, KC_F2),
90 [TD_F3] = ACTION_TAP_DANCE_DOUBLE(KC_3, KC_F3), 90 [TD_F3] = ACTION_TAP_DANCE_DOUBLE(KC_3, KC_F3),
diff --git a/keyboards/tada68/keymaps/trashcat/keymap.c b/keyboards/tada68/keymaps/trashcat/keymap.c
index 6f5f85aa53..9ec31e0d5a 100644
--- a/keyboards/tada68/keymaps/trashcat/keymap.c
+++ b/keyboards/tada68/keymaps/trashcat/keymap.c
@@ -92,7 +92,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
92}; 92};
93 93
94// Tapdance definitions. Tap Dance F Keys. 94// Tapdance definitions. Tap Dance F Keys.
95qk_tap_dance_action_t tap_dance_actions[] = { 95tap_dance_action_t tap_dance_actions[] = {
96 [TD_F1] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_F1), 96 [TD_F1] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_F1),
97 [TD_F2] = ACTION_TAP_DANCE_DOUBLE(KC_2, KC_F2), 97 [TD_F2] = ACTION_TAP_DANCE_DOUBLE(KC_2, KC_F2),
98 [TD_F3] = ACTION_TAP_DANCE_DOUBLE(KC_3, KC_F3), 98 [TD_F3] = ACTION_TAP_DANCE_DOUBLE(KC_3, KC_F3),
diff --git a/keyboards/the_royal/liminal/keymaps/default/keymap.c b/keyboards/the_royal/liminal/keymaps/default/keymap.c
index 5ff6c4aa3c..5dedb8b0ad 100644
--- a/keyboards/the_royal/liminal/keymaps/default/keymap.c
+++ b/keyboards/the_royal/liminal/keymaps/default/keymap.c
@@ -14,7 +14,7 @@ enum {
14 TD_DBQT 14 TD_DBQT
15}; 15};
16 16
17void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) { 17void dance_rst_reset (tap_dance_state_t *state, void *user_data) {
18 if (state->count >= 2) { 18 if (state->count >= 2) {
19 reset_keyboard(); 19 reset_keyboard();
20 reset_tap_dance(state); 20 reset_tap_dance(state);
@@ -22,7 +22,7 @@ void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) {
22} 22}
23 23
24//All tap dance functions would go here. Only showing this one. 24//All tap dance functions would go here. Only showing this one.
25qk_tap_dance_action_t tap_dance_actions[] = { 25tap_dance_action_t tap_dance_actions[] = {
26 [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset), 26 [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset),
27 [TD_DBQT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOTE, KC_DQT) 27 [TD_DBQT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOTE, KC_DQT)
28}; 28};
diff --git a/keyboards/the_royal/liminal/keymaps/default_iso/keymap.c b/keyboards/the_royal/liminal/keymaps/default_iso/keymap.c
index d5fe730d80..43b2fa2256 100644
--- a/keyboards/the_royal/liminal/keymaps/default_iso/keymap.c
+++ b/keyboards/the_royal/liminal/keymaps/default_iso/keymap.c
@@ -14,7 +14,7 @@ enum {
14 TD_DBQT 14 TD_DBQT
15}; 15};
16 16
17void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) { 17void dance_rst_reset (tap_dance_state_t *state, void *user_data) {
18 if (state->count >= 2) { 18 if (state->count >= 2) {
19 reset_keyboard(); 19 reset_keyboard();
20 reset_tap_dance(state); 20 reset_tap_dance(state);
@@ -22,7 +22,7 @@ void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) {
22} 22}
23 23
24//All tap dance functions would go here. Only showing this one. 24//All tap dance functions would go here. Only showing this one.
25qk_tap_dance_action_t tap_dance_actions[] = { 25tap_dance_action_t tap_dance_actions[] = {
26 [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset), 26 [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset),
27 [TD_DBQT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOTE, KC_DQT) 27 [TD_DBQT] = ACTION_TAP_DANCE_DOUBLE (KC_QUOTE, KC_DQT)
28}; 28};
diff --git a/keyboards/the_royal/schwann/keymaps/default/keymap.c b/keyboards/the_royal/schwann/keymaps/default/keymap.c
index 1535e3dc1f..532dfe4123 100644
--- a/keyboards/the_royal/schwann/keymaps/default/keymap.c
+++ b/keyboards/the_royal/schwann/keymaps/default/keymap.c
@@ -18,7 +18,7 @@ enum {
18 TD_RST 18 TD_RST
19}; 19};
20 20
21void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) { 21void dance_rst_reset (tap_dance_state_t *state, void *user_data) {
22 if (state->count >= 2) { 22 if (state->count >= 2) {
23 reset_keyboard(); 23 reset_keyboard();
24 reset_tap_dance(state); 24 reset_tap_dance(state);
@@ -26,7 +26,7 @@ void dance_rst_reset (qk_tap_dance_state_t *state, void *user_data) {
26} 26}
27 27
28//All tap dance functions would go here. Only showing this one. 28//All tap dance functions would go here. Only showing this one.
29qk_tap_dance_action_t tap_dance_actions[] = { 29tap_dance_action_t tap_dance_actions[] = {
30 [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset) 30 [TD_RST] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, NULL, dance_rst_reset)
31}; 31};
32 32
diff --git a/keyboards/thevankeyboards/minivan/keymaps/belak/keymap.c b/keyboards/thevankeyboards/minivan/keymaps/belak/keymap.c
index 0ed709747a..67d11f5e4c 100644
--- a/keyboards/thevankeyboards/minivan/keymaps/belak/keymap.c
+++ b/keyboards/thevankeyboards/minivan/keymaps/belak/keymap.c
@@ -31,10 +31,10 @@ enum belak_td {
31 BE_TD_ALT, 31 BE_TD_ALT,
32}; 32};
33 33
34void mod_tap_fn(qk_tap_dance_state_t *state, void *user_data); 34void mod_tap_fn(tap_dance_state_t *state, void *user_data);
35void mod_reset_fn(qk_tap_dance_state_t *state, void *user_data); 35void mod_reset_fn(tap_dance_state_t *state, void *user_data);
36 36
37qk_tap_dance_action_t tap_dance_actions[] = { 37tap_dance_action_t tap_dance_actions[] = {
38 [BE_TD_GUI] = ACTION_TAP_DANCE_MOD_TAP(KC_LGUI), 38 [BE_TD_GUI] = ACTION_TAP_DANCE_MOD_TAP(KC_LGUI),
39 [BE_TD_CTL] = ACTION_TAP_DANCE_MOD_TAP(KC_LCTL), 39 [BE_TD_CTL] = ACTION_TAP_DANCE_MOD_TAP(KC_LCTL),
40 [BE_TD_ALT] = ACTION_TAP_DANCE_MOD_TAP(KC_LALT), 40 [BE_TD_ALT] = ACTION_TAP_DANCE_MOD_TAP(KC_LALT),
@@ -68,7 +68,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
68}; 68};
69 69
70// Tap dance functions 70// Tap dance functions
71void mod_tap_fn(qk_tap_dance_state_t *state, void *user_data) { 71void mod_tap_fn(tap_dance_state_t *state, void *user_data) {
72 switch (state->count) { 72 switch (state->count) {
73 case 1: 73 case 1:
74 uint8_t *mod = (uint8_t *)user_data; 74 uint8_t *mod = (uint8_t *)user_data;
@@ -87,7 +87,7 @@ void mod_tap_fn(qk_tap_dance_state_t *state, void *user_data) {
87 } 87 }
88} 88}
89 89
90void mod_reset_fn(qk_tap_dance_state_t *state, void *user_data) { 90void mod_reset_fn(tap_dance_state_t *state, void *user_data) {
91 uint8_t *mod = (uint8_t *)user_data; 91 uint8_t *mod = (uint8_t *)user_data;
92 layer_off(_L1); 92 layer_off(_L1);
93 layer_off(_L2); 93 layer_off(_L2);
diff --git a/keyboards/thevankeyboards/minivan/keymaps/like_jis/keymap.c b/keyboards/thevankeyboards/minivan/keymaps/like_jis/keymap.c
index 3b146b8e37..67f7c0717c 100644
--- a/keyboards/thevankeyboards/minivan/keymaps/like_jis/keymap.c
+++ b/keyboards/thevankeyboards/minivan/keymaps/like_jis/keymap.c
@@ -45,7 +45,7 @@ enum tapdances{
45 45
46#define KC_SCCL TD(TD_SCCL) 46#define KC_SCCL TD(TD_SCCL)
47 47
48qk_tap_dance_action_t tap_dance_actions[] = { 48tap_dance_action_t tap_dance_actions[] = {
49 [TD_SCCL] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_QUOT), 49 [TD_SCCL] = ACTION_TAP_DANCE_DOUBLE(KC_SCLN, KC_QUOT),
50}; 50};
51 51
diff --git a/keyboards/tunks/ergo33/keymaps/prpro/keymap.c b/keyboards/tunks/ergo33/keymaps/prpro/keymap.c
index db49eeb7f8..8751f65126 100644
--- a/keyboards/tunks/ergo33/keymaps/prpro/keymap.c
+++ b/keyboards/tunks/ergo33/keymaps/prpro/keymap.c
@@ -43,7 +43,7 @@ enum {
43}; 43};
44 44
45/* Tap Dance definitions */ 45/* Tap Dance definitions */
46qk_tap_dance_action_t tap_dance_actions[] = { 46tap_dance_action_t tap_dance_actions[] = {
47 [TD_1] = ACTION_TAP_DANCE_DOUBLE(LCTL(KC_1), LCTL(LSFT(KC_1))), 47 [TD_1] = ACTION_TAP_DANCE_DOUBLE(LCTL(KC_1), LCTL(LSFT(KC_1))),
48 [TD_2] = ACTION_TAP_DANCE_DOUBLE(LCTL(KC_2), LCTL(LSFT(KC_2))), 48 [TD_2] = ACTION_TAP_DANCE_DOUBLE(LCTL(KC_2), LCTL(LSFT(KC_2))),
49 [TD_3] = ACTION_TAP_DANCE_DOUBLE(LCTL(KC_3), LCTL(LSFT(KC_3))), 49 [TD_3] = ACTION_TAP_DANCE_DOUBLE(LCTL(KC_3), LCTL(LSFT(KC_3))),
diff --git a/keyboards/ungodly/launch_pad/keymaps/warzone/keymap.c b/keyboards/ungodly/launch_pad/keymaps/warzone/keymap.c
index ea7b50c129..e3292dd30c 100644
--- a/keyboards/ungodly/launch_pad/keymaps/warzone/keymap.c
+++ b/keyboards/ungodly/launch_pad/keymaps/warzone/keymap.c
@@ -32,7 +32,7 @@ enum {
32}; 32};
33 33
34// Tap Dance definitions 34// Tap Dance definitions
35qk_tap_dance_action_t tap_dance_actions[] = { 35tap_dance_action_t tap_dance_actions[] = {
36 // Tap once for Escape, twice for Number 4 (armor plates in warzone) 36 // Tap once for Escape, twice for Number 4 (armor plates in warzone)
37 [TD_ESC_TAB] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_TAB), 37 [TD_ESC_TAB] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_TAB),
38 [TD_3_L0] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_3, 1), 38 [TD_3_L0] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_3, 1),
diff --git a/keyboards/unikeyboard/diverge3/keymaps/default/keymap.c b/keyboards/unikeyboard/diverge3/keymaps/default/keymap.c
index acf262696b..dc5c261f59 100644
--- a/keyboards/unikeyboard/diverge3/keymaps/default/keymap.c
+++ b/keyboards/unikeyboard/diverge3/keymaps/default/keymap.c
@@ -34,7 +34,7 @@ typedef struct {
34 int state; 34 int state;
35} tap; 35} tap;
36 36
37int cur_dance (qk_tap_dance_state_t *state) { 37int cur_dance (tap_dance_state_t *state) {
38 if (state->count == 1) { 38 if (state->count == 1) {
39 //If count = 1, and it has been interrupted - it doesn't matter if it is pressed or not: Send SINGLE_TAP 39 //If count = 1, and it has been interrupted - it doesn't matter if it is pressed or not: Send SINGLE_TAP
40 if (state->interrupted || state->pressed==0) return SINGLE_TAP; 40 if (state->interrupted || state->pressed==0) return SINGLE_TAP;
@@ -58,7 +58,7 @@ static tap se_tap_state = {
58 .state = 0 58 .state = 0
59}; 59};
60 60
61void se_finished (qk_tap_dance_state_t *state, void *user_data) { 61void se_finished (tap_dance_state_t *state, void *user_data) {
62 se_tap_state.state = cur_dance(state); 62 se_tap_state.state = cur_dance(state);
63 switch (se_tap_state.state) { 63 switch (se_tap_state.state) {
64 case SINGLE_TAP: register_code(KC_SPC); break; 64 case SINGLE_TAP: register_code(KC_SPC); break;
@@ -70,7 +70,7 @@ void se_finished (qk_tap_dance_state_t *state, void *user_data) {
70 } 70 }
71} 71}
72 72
73void se_reset (qk_tap_dance_state_t *state, void *user_data) { 73void se_reset (tap_dance_state_t *state, void *user_data) {
74 switch (se_tap_state.state) { 74 switch (se_tap_state.state) {
75 case SINGLE_TAP: unregister_code(KC_SPC); break; 75 case SINGLE_TAP: unregister_code(KC_SPC); break;
76 case SINGLE_HOLD: unregister_code(KC_ENT); break; 76 case SINGLE_HOLD: unregister_code(KC_ENT); break;
@@ -79,7 +79,7 @@ void se_reset (qk_tap_dance_state_t *state, void *user_data) {
79 se_tap_state.state = 0; 79 se_tap_state.state = 0;
80} 80}
81 81
82qk_tap_dance_action_t tap_dance_actions[] = { 82tap_dance_action_t tap_dance_actions[] = {
83 [SE_TAP_DANCE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, se_finished, se_reset) 83 [SE_TAP_DANCE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, se_finished, se_reset)
84}; 84};
85 85
diff --git a/keyboards/woodkeys/bigseries/1key/keymaps/dudeofawesome/keymap.c b/keyboards/woodkeys/bigseries/1key/keymaps/dudeofawesome/keymap.c
index 4c3739bbeb..2c754c3a68 100755
--- a/keyboards/woodkeys/bigseries/1key/keymaps/dudeofawesome/keymap.c
+++ b/keyboards/woodkeys/bigseries/1key/keymaps/dudeofawesome/keymap.c
@@ -25,7 +25,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
25 LAYOUT(TD(TD_PLAY)), 25 LAYOUT(TD(TD_PLAY)),
26}; 26};
27 27
28void tap_dance (qk_tap_dance_state_t *state, void *user_data) { 28void tap_dance (tap_dance_state_t *state, void *user_data) {
29 switch (state->count) { 29 switch (state->count) {
30 case 0 ... 1: 30 case 0 ... 1:
31 register_code(KC_MEDIA_PLAY_PAUSE); 31 register_code(KC_MEDIA_PLAY_PAUSE);
@@ -45,6 +45,6 @@ void tap_dance (qk_tap_dance_state_t *state, void *user_data) {
45} 45}
46 46
47//Tap Dance Definitions 47//Tap Dance Definitions
48qk_tap_dance_action_t tap_dance_actions[] = { 48tap_dance_action_t tap_dance_actions[] = {
49 [TD_PLAY] = ACTION_TAP_DANCE_FN(tap_dance), 49 [TD_PLAY] = ACTION_TAP_DANCE_FN(tap_dance),
50}; 50};
diff --git a/keyboards/woodkeys/bigseries/1key/keymaps/leddance/keymap.c b/keyboards/woodkeys/bigseries/1key/keymaps/leddance/keymap.c
index c77e579028..0bbd8beab5 100755
--- a/keyboards/woodkeys/bigseries/1key/keymaps/leddance/keymap.c
+++ b/keyboards/woodkeys/bigseries/1key/keymaps/leddance/keymap.c
@@ -34,7 +34,7 @@ enum {
34 TD_TOGGLE = 0 34 TD_TOGGLE = 0
35}; 35};
36 36
37void dance_toggle (qk_tap_dance_state_t *state, void *user_data) { 37void dance_toggle (tap_dance_state_t *state, void *user_data) {
38 if (state->count >= 2) { 38 if (state->count >= 2) {
39 println("Double tapped, switching layers"); 39 println("Double tapped, switching layers");
40 if (layer_state_is(LED)) { 40 if (layer_state_is(LED)) {
@@ -59,7 +59,7 @@ void dance_toggle (qk_tap_dance_state_t *state, void *user_data) {
59} 59}
60 60
61//Tap Dance Definitions 61//Tap Dance Definitions
62qk_tap_dance_action_t tap_dance_actions[] = { 62tap_dance_action_t tap_dance_actions[] = {
63 [TD_TOGGLE] = ACTION_TAP_DANCE_FN(dance_toggle) 63 [TD_TOGGLE] = ACTION_TAP_DANCE_FN(dance_toggle)
64// Other declarations would go here, separated by commas, if you have them 64// Other declarations would go here, separated by commas, if you have them
65}; 65};
diff --git a/keyboards/work_louder/work_board/keymaps/default/keymap.c b/keyboards/work_louder/work_board/keymaps/default/keymap.c
index 14fb5014c7..56c4a2ce1d 100644
--- a/keyboards/work_louder/work_board/keymaps/default/keymap.c
+++ b/keyboards/work_louder/work_board/keymaps/default/keymap.c
@@ -61,7 +61,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
61}; 61};
62 62
63 63
64void dance_enc_finished(qk_tap_dance_state_t *state, void *user_data) { 64void dance_enc_finished(tap_dance_state_t *state, void *user_data) {
65 if (state->count == 1) { 65 if (state->count == 1) {
66 register_code(KC_MPLY); 66 register_code(KC_MPLY);
67 } else if (state->count == 2) { 67 } else if (state->count == 2) {
@@ -71,7 +71,7 @@ void dance_enc_finished(qk_tap_dance_state_t *state, void *user_data) {
71 } 71 }
72} 72}
73 73
74void dance_enc_reset(qk_tap_dance_state_t *state, void *user_data) { 74void dance_enc_reset(tap_dance_state_t *state, void *user_data) {
75 if (state->count == 1) { 75 if (state->count == 1) {
76 unregister_code(KC_MPLY); 76 unregister_code(KC_MPLY);
77 } else if (state->count == 2) { 77 } else if (state->count == 2) {
@@ -82,7 +82,7 @@ void dance_enc_reset(qk_tap_dance_state_t *state, void *user_data) {
82} 82}
83 83
84// Tap Dance definitions 84// Tap Dance definitions
85qk_tap_dance_action_t tap_dance_actions[] = { 85tap_dance_action_t tap_dance_actions[] = {
86 [ENC_TAP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_enc_finished, dance_enc_reset), 86 [ENC_TAP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_enc_finished, dance_enc_reset),
87}; 87};
88 88
diff --git a/keyboards/work_louder/work_board/keymaps/via/keymap.c b/keyboards/work_louder/work_board/keymaps/via/keymap.c
index 9ae3b36262..18689543da 100644
--- a/keyboards/work_louder/work_board/keymaps/via/keymap.c
+++ b/keyboards/work_louder/work_board/keymaps/via/keymap.c
@@ -59,7 +59,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
59}; 59};
60 60
61 61
62void dance_enc_finished(qk_tap_dance_state_t *state, void *user_data) { 62void dance_enc_finished(tap_dance_state_t *state, void *user_data) {
63 if (state->count == 1) { 63 if (state->count == 1) {
64 register_code(KC_MPLY); 64 register_code(KC_MPLY);
65 } else if (state->count == 2) { 65 } else if (state->count == 2) {
@@ -69,7 +69,7 @@ void dance_enc_finished(qk_tap_dance_state_t *state, void *user_data) {
69 } 69 }
70} 70}
71 71
72void dance_enc_reset(qk_tap_dance_state_t *state, void *user_data) { 72void dance_enc_reset(tap_dance_state_t *state, void *user_data) {
73 if (state->count == 1) { 73 if (state->count == 1) {
74 unregister_code(KC_MPLY); 74 unregister_code(KC_MPLY);
75 } else if (state->count == 2) { 75 } else if (state->count == 2) {
@@ -80,7 +80,7 @@ void dance_enc_reset(qk_tap_dance_state_t *state, void *user_data) {
80} 80}
81 81
82// Tap Dance definitions 82// Tap Dance definitions
83qk_tap_dance_action_t tap_dance_actions[] = { 83tap_dance_action_t tap_dance_actions[] = {
84 [ENC_TAP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_enc_finished, dance_enc_reset), 84 [ENC_TAP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_enc_finished, dance_enc_reset),
85}; 85};
86 86
diff --git a/keyboards/wsk/gothic50/keymaps/default/keymap.c b/keyboards/wsk/gothic50/keymaps/default/keymap.c
index bf6c9c89aa..71ad616eb6 100644
--- a/keyboards/wsk/gothic50/keymaps/default/keymap.c
+++ b/keyboards/wsk/gothic50/keymaps/default/keymap.c
@@ -51,7 +51,7 @@ layer_state_t layer_state_set_user(layer_state_t state)
51} 51}
52 52
53// Tap Dance Definitions 53// Tap Dance Definitions
54qk_tap_dance_action_t tap_dance_actions[] = { 54tap_dance_action_t tap_dance_actions[] = {
55 // double tap for caps 55 // double tap for caps
56 [TD_SCAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS) 56 [TD_SCAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS)
57}; 57};
diff --git a/keyboards/wsk/gothic70/keymaps/default/keymap.c b/keyboards/wsk/gothic70/keymaps/default/keymap.c
index 66ed2da1b7..589b30c4ef 100644
--- a/keyboards/wsk/gothic70/keymaps/default/keymap.c
+++ b/keyboards/wsk/gothic70/keymaps/default/keymap.c
@@ -63,7 +63,7 @@ layer_state_t layer_state_set_user(layer_state_t state)
63 63
64 64
65// Tap Dance Definitions 65// Tap Dance Definitions
66qk_tap_dance_action_t tap_dance_actions[] = { 66tap_dance_action_t tap_dance_actions[] = {
67 // Tap once for 67 // Tap once for
68 [TD_SCAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), 68 [TD_SCAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
69}; 69};
diff --git a/keyboards/xiudi/xd002/keymaps/tap_dance/keymap.c b/keyboards/xiudi/xd002/keymaps/tap_dance/keymap.c
index 0f384ce99f..9d337bc8d9 100644
--- a/keyboards/xiudi/xd002/keymaps/tap_dance/keymap.c
+++ b/keyboards/xiudi/xd002/keymaps/tap_dance/keymap.c
@@ -8,7 +8,7 @@ enum {
8 TD_BC = 0 8 TD_BC = 0
9}; 9};
10 10
11qk_tap_dance_action_t tap_dance_actions[] = { 11tap_dance_action_t tap_dance_actions[] = {
12 [TD_BC] = ACTION_TAP_DANCE_DOUBLE(KC_B, KC_C) 12 [TD_BC] = ACTION_TAP_DANCE_DOUBLE(KC_B, KC_C)
13}; 13};
14 14
diff --git a/keyboards/xiudi/xd60/keymaps/Jos/keymap.c b/keyboards/xiudi/xd60/keymaps/Jos/keymap.c
index b41b77edd7..9b4b2d9c37 100644
--- a/keyboards/xiudi/xd60/keymaps/Jos/keymap.c
+++ b/keyboards/xiudi/xd60/keymaps/Jos/keymap.c
@@ -83,7 +83,7 @@ typedef struct {
83 bool sticky; 83 bool sticky;
84} td_ta_state_t; 84} td_ta_state_t;
85 85
86static void ang_tap_dance_ta_finished (qk_tap_dance_state_t *state, void *user_data) { 86static void ang_tap_dance_ta_finished (tap_dance_state_t *state, void *user_data) {
87 td_ta_state_t *td_ta = (td_ta_state_t *) user_data; 87 td_ta_state_t *td_ta = (td_ta_state_t *) user_data;
88 88
89// if (td_ta->sticky) { 89// if (td_ta->sticky) {
@@ -105,7 +105,7 @@ static void ang_tap_dance_ta_finished (qk_tap_dance_state_t *state, void *user_d
105} 105}
106 106
107// Added this one to make it more reactive on keyup 107// Added this one to make it more reactive on keyup
108static void ang_tap_dance_ta_each (qk_tap_dance_state_t *state, void *user_data) { 108static void ang_tap_dance_ta_each (tap_dance_state_t *state, void *user_data) {
109 td_ta_state_t *td_ta = (td_ta_state_t *) user_data; 109 td_ta_state_t *td_ta = (td_ta_state_t *) user_data;
110 110
111 if (!td_ta->layer_toggle) { // Braces added for clarity 111 if (!td_ta->layer_toggle) { // Braces added for clarity
@@ -114,7 +114,7 @@ static void ang_tap_dance_ta_each (qk_tap_dance_state_t *state, void *user_data)
114} 114}
115 115
116 116
117static void ang_tap_dance_ta_reset (qk_tap_dance_state_t *state, void *user_data) { 117static void ang_tap_dance_ta_reset (tap_dance_state_t *state, void *user_data) {
118 td_ta_state_t *td_ta = (td_ta_state_t *) user_data; 118 td_ta_state_t *td_ta = (td_ta_state_t *) user_data;
119 119
120 if (!td_ta->layer_toggle) { // Braces added for clarity 120 if (!td_ta->layer_toggle) { // Braces added for clarity
@@ -125,7 +125,7 @@ static void ang_tap_dance_ta_reset (qk_tap_dance_state_t *state, void *user_data
125} 125}
126 126
127 127
128qk_tap_dance_action_t tap_dance_actions[] = { 128tap_dance_action_t tap_dance_actions[] = {
129 [0] = { 129 [0] = {
130 .fn = { ang_tap_dance_ta_each, ang_tap_dance_ta_finished, ang_tap_dance_ta_reset }, 130 .fn = { ang_tap_dance_ta_each, ang_tap_dance_ta_finished, ang_tap_dance_ta_reset },
131 .user_data = (void *)&((td_ta_state_t) { false, false }) 131 .user_data = (void *)&((td_ta_state_t) { false, false })
diff --git a/keyboards/xiudi/xd75/keymaps/davidrambo/keymap.c b/keyboards/xiudi/xd75/keymaps/davidrambo/keymap.c
index 3b40c12567..7787a59ff8 100644
--- a/keyboards/xiudi/xd75/keymaps/davidrambo/keymap.c
+++ b/keyboards/xiudi/xd75/keymaps/davidrambo/keymap.c
@@ -160,7 +160,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
160}; 160};
161 161
162// Shift vs capslock function. From bbaserdem's Planck keymap. 162// Shift vs capslock function. From bbaserdem's Planck keymap.
163void caps_tap (qk_tap_dance_state_t *state, void *user_data) { 163void caps_tap (tap_dance_state_t *state, void *user_data) {
164 if (state->count == 1) { 164 if (state->count == 1) {
165 register_code (KC_LSFT); 165 register_code (KC_LSFT);
166 } else if (state->count == 2) { 166 } else if (state->count == 2) {
@@ -168,7 +168,7 @@ void caps_tap (qk_tap_dance_state_t *state, void *user_data) {
168 register_code (KC_CAPS); 168 register_code (KC_CAPS);
169 } 169 }
170} 170}
171void caps_tap_end (qk_tap_dance_state_t *state, void *user_data) { 171void caps_tap_end (tap_dance_state_t *state, void *user_data) {
172 if (state->count == 1) { 172 if (state->count == 1) {
173 unregister_code (KC_LSFT); 173 unregister_code (KC_LSFT);
174 } else { 174 } else {
@@ -177,7 +177,7 @@ void caps_tap_end (qk_tap_dance_state_t *state, void *user_data) {
177} 177}
178 178
179//Tap Dance Definitions 179//Tap Dance Definitions
180qk_tap_dance_action_t tap_dance_actions[] = { 180tap_dance_action_t tap_dance_actions[] = {
181 //Tap once for Shift, twice for Caps Lock 181 //Tap once for Shift, twice for Caps Lock
182 [SFT_LCK] = ACTION_TAP_DANCE_FN_ADVANCED( caps_tap, NULL, caps_tap_end ) 182 [SFT_LCK] = ACTION_TAP_DANCE_FN_ADVANCED( caps_tap, NULL, caps_tap_end )
183}; 183};
diff --git a/keyboards/xiudi/xd75/keymaps/dyn_macro_tap_dance/keymap.c b/keyboards/xiudi/xd75/keymaps/dyn_macro_tap_dance/keymap.c
index 353494f914..1cabfd8ef8 100644
--- a/keyboards/xiudi/xd75/keymaps/dyn_macro_tap_dance/keymap.c
+++ b/keyboards/xiudi/xd75/keymaps/dyn_macro_tap_dance/keymap.c
@@ -34,7 +34,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
34 return true; 34 return true;
35}; 35};
36 36
37void macro_tog_key( qk_tap_dance_state_t *state, void *user_data ) { 37void macro_tog_key( tap_dance_state_t *state, void *user_data ) {
38 if ( state->count > 3 ) 38 if ( state->count > 3 )
39 return; 39 return;
40 40
@@ -60,7 +60,7 @@ enum {
60 MCROTOG_ = 0 60 MCROTOG_ = 0
61}; 61};
62 62
63qk_tap_dance_action_t tap_dance_actions[] = { 63tap_dance_action_t tap_dance_actions[] = {
64 [MCROTOG_] = ACTION_TAP_DANCE_FN( macro_tog_key ) 64 [MCROTOG_] = ACTION_TAP_DANCE_FN( macro_tog_key )
65}; 65};
66 66
diff --git a/keyboards/xiudi/xd75/keymaps/germanized/keymap.c b/keyboards/xiudi/xd75/keymaps/germanized/keymap.c
index a525c5a585..cbb8da838e 100644
--- a/keyboards/xiudi/xd75/keymaps/germanized/keymap.c
+++ b/keyboards/xiudi/xd75/keymaps/germanized/keymap.c
@@ -19,7 +19,7 @@ enum {
19}; 19};
20 20
21//Tap Dance Definitions 21//Tap Dance Definitions
22qk_tap_dance_action_t tap_dance_actions[] = { 22tap_dance_action_t tap_dance_actions[] = {
23 //Tap once for Esc, twice Ctrl+Alt+Del 23 //Tap once for Esc, twice Ctrl+Alt+Del
24 [TD_ESC_RUPT] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, LALT(LCTL(KC_DEL))), 24 [TD_ESC_RUPT] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, LALT(LCTL(KC_DEL))),
25 [TD_TAB] = ACTION_TAP_DANCE_DOUBLE(KC_LCTL, LGUI(KC_TAB)) 25 [TD_TAB] = ACTION_TAP_DANCE_DOUBLE(KC_LCTL, LGUI(KC_TAB))
diff --git a/keyboards/xiudi/xd75/keymaps/hybrid/keymap.c b/keyboards/xiudi/xd75/keymaps/hybrid/keymap.c
index fbb0ecdc8a..60fa737dc8 100644
--- a/keyboards/xiudi/xd75/keymaps/hybrid/keymap.c
+++ b/keyboards/xiudi/xd75/keymaps/hybrid/keymap.c
@@ -39,7 +39,7 @@ enum {
39 39
40 40
41 41
42void dance_a_accent (qk_tap_dance_state_t *state, void *user_data) { 42void dance_a_accent (tap_dance_state_t *state, void *user_data) {
43 if (state->count == 2) { 43 if (state->count == 2) {
44 tap_code (KC_0); 44 tap_code (KC_0);
45 } 45 }
@@ -47,7 +47,7 @@ void dance_a_accent (qk_tap_dance_state_t *state, void *user_data) {
47 tap_code (KC_Q); 47 tap_code (KC_Q);
48 } 48 }
49} 49}
50void dance_e_accent (qk_tap_dance_state_t *state, void *user_data) { 50void dance_e_accent (tap_dance_state_t *state, void *user_data) {
51 if (state->count == 2) { 51 if (state->count == 2) {
52 tap_code (KC_2); 52 tap_code (KC_2);
53 } 53 }
@@ -58,7 +58,7 @@ void dance_e_accent (qk_tap_dance_state_t *state, void *user_data) {
58 tap_code (KC_E); 58 tap_code (KC_E);
59 } 59 }
60} 60}
61void dance_i_accent (qk_tap_dance_state_t *state, void *user_data) { 61void dance_i_accent (tap_dance_state_t *state, void *user_data) {
62 if (state->count == 2) { 62 if (state->count == 2) {
63 tap_code (KC_NUM_LOCK); 63 tap_code (KC_NUM_LOCK);
64 register_code (KC_LALT); 64 register_code (KC_LALT);
@@ -74,7 +74,7 @@ void dance_i_accent (qk_tap_dance_state_t *state, void *user_data) {
74 74
75 } 75 }
76} 76}
77void dance_o_accent (qk_tap_dance_state_t *state, void *user_data) { 77void dance_o_accent (tap_dance_state_t *state, void *user_data) {
78 if (state->count == 2) { 78 if (state->count == 2) {
79 tap_code (KC_NUM_LOCK); 79 tap_code (KC_NUM_LOCK);
80 register_code (KC_LALT); 80 register_code (KC_LALT);
@@ -89,7 +89,7 @@ void dance_o_accent (qk_tap_dance_state_t *state, void *user_data) {
89 tap_code (KC_O); 89 tap_code (KC_O);
90 } 90 }
91} 91}
92void dance_u_accent (qk_tap_dance_state_t *state, void *user_data) { 92void dance_u_accent (tap_dance_state_t *state, void *user_data) {
93 if (state->count == 2) { 93 if (state->count == 2) {
94 tap_code (KC_NUM_LOCK); 94 tap_code (KC_NUM_LOCK);
95 register_code (KC_LALT); 95 register_code (KC_LALT);
@@ -105,7 +105,7 @@ void dance_u_accent (qk_tap_dance_state_t *state, void *user_data) {
105 } 105 }
106 106
107} 107}
108void dance_slash (qk_tap_dance_state_t *state, void *user_data) { 108void dance_slash (tap_dance_state_t *state, void *user_data) {
109 if (state->count == 2) { 109 if (state->count == 2) {
110 tap_code (KC_NUM_LOCK); 110 tap_code (KC_NUM_LOCK);
111 register_code (KC_LALT); 111 register_code (KC_LALT);
@@ -119,7 +119,7 @@ void dance_slash (qk_tap_dance_state_t *state, void *user_data) {
119 tap_code (KC_PSLS); 119 tap_code (KC_PSLS);
120 } 120 }
121} 121}
122void dance_under (qk_tap_dance_state_t *state, void *user_data) { 122void dance_under (tap_dance_state_t *state, void *user_data) {
123 if (state->count == 2) { 123 if (state->count == 2) {
124 tap_code (KC_NUM_LOCK); 124 tap_code (KC_NUM_LOCK);
125 register_code (KC_LALT); 125 register_code (KC_LALT);
@@ -133,7 +133,7 @@ void dance_under (qk_tap_dance_state_t *state, void *user_data) {
133 tap_code (KC_6); 133 tap_code (KC_6);
134 } 134 }
135} 135}
136void dance_open_accol (qk_tap_dance_state_t *state, void *user_data) { 136void dance_open_accol (tap_dance_state_t *state, void *user_data) {
137 if (state->count == 2) { 137 if (state->count == 2) {
138 tap_code (KC_NUM_LOCK); 138 tap_code (KC_NUM_LOCK);
139 register_code (KC_LALT); 139 register_code (KC_LALT);
@@ -157,7 +157,7 @@ void dance_open_accol (qk_tap_dance_state_t *state, void *user_data) {
157 tap_code (KC_5); 157 tap_code (KC_5);
158 } 158 }
159} 159}
160void dance_close_accol (qk_tap_dance_state_t *state, void *user_data) { 160void dance_close_accol (tap_dance_state_t *state, void *user_data) {
161 if (state->count == 2) { 161 if (state->count == 2) {
162 tap_code (KC_NUM_LOCK); 162 tap_code (KC_NUM_LOCK);
163 register_code (KC_LALT); 163 register_code (KC_LALT);
@@ -182,7 +182,7 @@ void dance_close_accol (qk_tap_dance_state_t *state, void *user_data) {
182 tap_code (KC_MINS); 182 tap_code (KC_MINS);
183 } 183 }
184} 184}
185void dance_question (qk_tap_dance_state_t *state, void *user_data) { 185void dance_question (tap_dance_state_t *state, void *user_data) {
186 if (state->count == 2) { 186 if (state->count == 2) {
187 tap_code (KC_NUM_LOCK); 187 tap_code (KC_NUM_LOCK);
188 register_code (KC_LALT); 188 register_code (KC_LALT);
@@ -206,7 +206,7 @@ void dance_question (qk_tap_dance_state_t *state, void *user_data) {
206 206
207 } 207 }
208} 208}
209void dance_cedille (qk_tap_dance_state_t *state, void *user_data) { 209void dance_cedille (tap_dance_state_t *state, void *user_data) {
210 if (state->count == 2) { 210 if (state->count == 2) {
211 tap_code (KC_9); 211 tap_code (KC_9);
212 } 212 }
@@ -214,7 +214,7 @@ void dance_cedille (qk_tap_dance_state_t *state, void *user_data) {
214 tap_code (KC_C); 214 tap_code (KC_C);
215 } 215 }
216} 216}
217void dance_dot (qk_tap_dance_state_t *state, void *user_data) { 217void dance_dot (tap_dance_state_t *state, void *user_data) {
218 if (state->count == 2) { 218 if (state->count == 2) {
219 tap_code (KC_NUM_LOCK); 219 tap_code (KC_NUM_LOCK);
220 register_code (KC_LALT); 220 register_code (KC_LALT);
@@ -234,7 +234,7 @@ void dance_dot (qk_tap_dance_state_t *state, void *user_data) {
234 tap_code (KC_NUM_LOCK); 234 tap_code (KC_NUM_LOCK);
235 } 235 }
236} 236}
237qk_tap_dance_action_t tap_dance_actions[] = { 237tap_dance_action_t tap_dance_actions[] = {
238 [TD_A] = ACTION_TAP_DANCE_FN(dance_a_accent), 238 [TD_A] = ACTION_TAP_DANCE_FN(dance_a_accent),
239 [TD_E] = ACTION_TAP_DANCE_FN(dance_e_accent), 239 [TD_E] = ACTION_TAP_DANCE_FN(dance_e_accent),
240 [TD_I] = ACTION_TAP_DANCE_FN(dance_i_accent), 240 [TD_I] = ACTION_TAP_DANCE_FN(dance_i_accent),
diff --git a/keyboards/xiudi/xd75/keymaps/odyssey/keymap.c b/keyboards/xiudi/xd75/keymaps/odyssey/keymap.c
index e1cda81cd5..ae27ba0292 100644
--- a/keyboards/xiudi/xd75/keymaps/odyssey/keymap.c
+++ b/keyboards/xiudi/xd75/keymaps/odyssey/keymap.c
@@ -13,9 +13,9 @@ typedef enum {
13} td_state_t; 13} td_state_t;
14 14
15static td_state_t td_state = NONE_NONE; 15static td_state_t td_state = NONE_NONE;
16int cur_dance (qk_tap_dance_state_t *state); 16int cur_dance (tap_dance_state_t *state);
17void altlp_finished (qk_tap_dance_state_t *state, void *user_data); 17void altlp_finished (tap_dance_state_t *state, void *user_data);
18void altlp_reset (qk_tap_dance_state_t *state, void *user_data); 18void altlp_reset (tap_dance_state_t *state, void *user_data);
19 19
20// Four differend underglow states for 2 language layouts x 2 states of colemak layer 20// Four differend underglow states for 2 language layouts x 2 states of colemak layer
21enum layer_states { 21enum layer_states {
@@ -65,7 +65,7 @@ void update_led_state_c(void) {
65 } 65 }
66} 66}
67 67
68int cur_dance (qk_tap_dance_state_t *state) { 68int cur_dance (tap_dance_state_t *state) {
69 if (state->count == 1) { 69 if (state->count == 1) {
70 if (state->interrupted && state->pressed) { return SINGLE_HOLD; } 70 if (state->interrupted && state->pressed) { return SINGLE_HOLD; }
71 else if (!state->pressed) { return SINGLE_TAP; } 71 else if (!state->pressed) { return SINGLE_TAP; }
@@ -76,7 +76,7 @@ int cur_dance (qk_tap_dance_state_t *state) {
76} 76}
77 77
78// Tapdance code stolen long time ago from one of the forum answers i found related to my problem, sadly can't provide link for the credits 78// Tapdance code stolen long time ago from one of the forum answers i found related to my problem, sadly can't provide link for the credits
79void lesc_finished (qk_tap_dance_state_t *state, void *user_data) { 79void lesc_finished (tap_dance_state_t *state, void *user_data) {
80 td_state = cur_dance(state); 80 td_state = cur_dance(state);
81 switch (td_state) { 81 switch (td_state) {
82 case SINGLE_TAP: 82 case SINGLE_TAP:
@@ -94,7 +94,7 @@ void lesc_finished (qk_tap_dance_state_t *state, void *user_data) {
94 } 94 }
95} 95}
96 96
97void lesc_reset (qk_tap_dance_state_t *state, void *user_data) { 97void lesc_reset (tap_dance_state_t *state, void *user_data) {
98 switch (td_state) { 98 switch (td_state) {
99 case SINGLE_TAP: 99 case SINGLE_TAP:
100 unregister_code16(KC_ESC); 100 unregister_code16(KC_ESC);
@@ -115,7 +115,7 @@ void lesc_reset (qk_tap_dance_state_t *state, void *user_data) {
115 update_led_state_c(); 115 update_led_state_c();
116} 116}
117 117
118qk_tap_dance_action_t tap_dance_actions[] = { 118tap_dance_action_t tap_dance_actions[] = {
119 [LESC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lesc_finished, lesc_reset) 119 [LESC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lesc_finished, lesc_reset)
120}; 120};
121 121
diff --git a/keyboards/xiudi/xd75/keymaps/tdl-jturner/keymap.c b/keyboards/xiudi/xd75/keymaps/tdl-jturner/keymap.c
index 2cc3f5b7a3..626f77f67f 100644
--- a/keyboards/xiudi/xd75/keymaps/tdl-jturner/keymap.c
+++ b/keyboards/xiudi/xd75/keymaps/tdl-jturner/keymap.c
@@ -48,7 +48,7 @@ enum {
48}; 48};
49 49
50//Tap Dance Definitions 50//Tap Dance Definitions
51qk_tap_dance_action_t tap_dance_actions[] = { 51tap_dance_action_t tap_dance_actions[] = {
52 //Tap once for Esc, twice for Caps Lock 52 //Tap once for Esc, twice for Caps Lock
53 [TD_LOCK_SLEEP] = ACTION_TAP_DANCE_DOUBLE(LGUI(KC_L), KC_SLEP), 53 [TD_LOCK_SLEEP] = ACTION_TAP_DANCE_DOUBLE(LGUI(KC_L), KC_SLEP),
54 [TD_ABK] = ACTION_TAP_DANCE_DOUBLE(KC_LABK,KC_RABK), 54 [TD_ABK] = ACTION_TAP_DANCE_DOUBLE(KC_LABK,KC_RABK),
diff --git a/keyboards/yatara/drink_me/keymaps/queen/keymap.c b/keyboards/yatara/drink_me/keymaps/queen/keymap.c
index 2d99b38663..806dae3fcd 100644
--- a/keyboards/yatara/drink_me/keymaps/queen/keymap.c
+++ b/keyboards/yatara/drink_me/keymaps/queen/keymap.c
@@ -9,7 +9,7 @@ enum td_keys {
9}; 9};
10 10
11 11
12void td_spade_lnx (qk_tap_dance_state_t *state, void *user_data) { 12void td_spade_lnx (tap_dance_state_t *state, void *user_data) {
13 if (state->count == 1) { 13 if (state->count == 1) {
14 register_unicode(0x2660); // ♠ 14 register_unicode(0x2660); // ♠
15 } else { 15 } else {
@@ -19,7 +19,7 @@ void td_spade_lnx (qk_tap_dance_state_t *state, void *user_data) {
19} 19}
20 20
21 21
22void td_diamond_osx (qk_tap_dance_state_t *state, void *user_data) { 22void td_diamond_osx (tap_dance_state_t *state, void *user_data) {
23 if (state->count == 1) { 23 if (state->count == 1) {
24 register_unicode(0x2666); // ♦ 24 register_unicode(0x2666); // ♦
25 } else { 25 } else {
@@ -29,7 +29,7 @@ void td_diamond_osx (qk_tap_dance_state_t *state, void *user_data) {
29} 29}
30 30
31 31
32void td_club_win (qk_tap_dance_state_t *state, void *user_data) { 32void td_club_win (tap_dance_state_t *state, void *user_data) {
33 if (state->count == 1) { 33 if (state->count == 1) {
34 register_unicode(0x2663); // ♣ 34 register_unicode(0x2663); // ♣
35 } else { 35 } else {
@@ -39,7 +39,7 @@ void td_club_win (qk_tap_dance_state_t *state, void *user_data) {
39} 39}
40 40
41 41
42void td_heart_winc (qk_tap_dance_state_t *state, void *user_data) { 42void td_heart_winc (tap_dance_state_t *state, void *user_data) {
43 if (state->count == 1) { 43 if (state->count == 1) {
44 register_unicode(0x2665); // ♥ 44 register_unicode(0x2665); // ♥
45 } else { 45 } else {
@@ -49,7 +49,7 @@ void td_heart_winc (qk_tap_dance_state_t *state, void *user_data) {
49} 49}
50 50
51 51
52qk_tap_dance_action_t tap_dance_actions[] = { 52tap_dance_action_t tap_dance_actions[] = {
53 [TD_K0] = ACTION_TAP_DANCE_FN(td_spade_lnx), 53 [TD_K0] = ACTION_TAP_DANCE_FN(td_spade_lnx),
54 [TD_K1] = ACTION_TAP_DANCE_FN(td_diamond_osx), 54 [TD_K1] = ACTION_TAP_DANCE_FN(td_diamond_osx),
55 [TD_K2] = ACTION_TAP_DANCE_FN(td_club_win), 55 [TD_K2] = ACTION_TAP_DANCE_FN(td_club_win),
diff --git a/keyboards/ymdk/ymd96/keymaps/hgoel89/keymap.c b/keyboards/ymdk/ymd96/keymaps/hgoel89/keymap.c
index 16d8f08137..31e9ac5b48 100644
--- a/keyboards/ymdk/ymd96/keymaps/hgoel89/keymap.c
+++ b/keyboards/ymdk/ymd96/keymaps/hgoel89/keymap.c
@@ -20,7 +20,7 @@ enum {
20 TD_H_E = 0 20 TD_H_E = 0
21}; 21};
22 22
23qk_tap_dance_action_t tap_dance_actions[] = { 23tap_dance_action_t tap_dance_actions[] = {
24 [TD_H_E] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_END) 24 [TD_H_E] = ACTION_TAP_DANCE_DOUBLE(KC_HOME, KC_END)
25}; 25};
26#define ______ KC_TRNS 26#define ______ KC_TRNS
diff --git a/keyboards/zfrontier/big_switch/keymaps/longtap/keymap.c b/keyboards/zfrontier/big_switch/keymaps/longtap/keymap.c
index a475421a3a..486adcf369 100644
--- a/keyboards/zfrontier/big_switch/keymaps/longtap/keymap.c
+++ b/keyboards/zfrontier/big_switch/keymaps/longtap/keymap.c
@@ -93,7 +93,7 @@ void zf_send_random_string(void) {
93 tap_code(KC_ENT); 93 tap_code(KC_ENT);
94} 94}
95 95
96void dance_finished(qk_tap_dance_state_t *state, void *user_data) { 96void dance_finished(tap_dance_state_t *state, void *user_data) {
97 switch (state->count) { 97 switch (state->count) {
98 case 1: 98 case 1:
99 register_code(KC_ENTER); 99 register_code(KC_ENTER);
@@ -107,12 +107,12 @@ void dance_finished(qk_tap_dance_state_t *state, void *user_data) {
107 } 107 }
108} 108}
109 109
110void dance_reset(qk_tap_dance_state_t *state, void *user_data) { 110void dance_reset(tap_dance_state_t *state, void *user_data) {
111 if (state->count == 1) { 111 if (state->count == 1) {
112 unregister_code(KC_ENTER); 112 unregister_code(KC_ENTER);
113 } 113 }
114} 114}
115 115
116qk_tap_dance_action_t tap_dance_actions[] = { 116tap_dance_action_t tap_dance_actions[] = {
117 [TD_ENTER] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_finished, dance_reset) 117 [TD_ENTER] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_finished, dance_reset)
118}; 118};
diff --git a/layouts/community/ergodox/belak/keymap.c b/layouts/community/ergodox/belak/keymap.c
index 95255be683..ea72091145 100644
--- a/layouts/community/ergodox/belak/keymap.c
+++ b/layouts/community/ergodox/belak/keymap.c
@@ -45,11 +45,11 @@ enum belak_td {
45 TD_LAYER_TOGGLE = 0, 45 TD_LAYER_TOGGLE = 0,
46}; 46};
47 47
48void belak_td_each(qk_tap_dance_state_t *state, void *user_data); 48void belak_td_each(tap_dance_state_t *state, void *user_data);
49void belak_td_finished(qk_tap_dance_state_t *state, void *user_data); 49void belak_td_finished(tap_dance_state_t *state, void *user_data);
50void belak_td_reset(qk_tap_dance_state_t *state, void *user_data); 50void belak_td_reset(tap_dance_state_t *state, void *user_data);
51 51
52qk_tap_dance_action_t tap_dance_actions[] = { 52tap_dance_action_t tap_dance_actions[] = {
53 [TD_LAYER_TOGGLE] = ACTION_TAP_DANCE_FN_ADVANCED(belak_td_each, belak_td_finished, belak_td_reset), 53 [TD_LAYER_TOGGLE] = ACTION_TAP_DANCE_FN_ADVANCED(belak_td_each, belak_td_finished, belak_td_reset),
54}; 54};
55 55
@@ -332,7 +332,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
332 return true; 332 return true;
333} 333}
334 334
335void belak_td_each(qk_tap_dance_state_t *state, void *user_data) { 335void belak_td_each(tap_dance_state_t *state, void *user_data) {
336 switch (state->count) { 336 switch (state->count) {
337 case 1: 337 case 1:
338 td_led_override = 1; 338 td_led_override = 1;
@@ -345,7 +345,7 @@ void belak_td_each(qk_tap_dance_state_t *state, void *user_data) {
345 } 345 }
346} 346}
347 347
348void belak_td_finished(qk_tap_dance_state_t *state, void *user_data) { 348void belak_td_finished(tap_dance_state_t *state, void *user_data) {
349 switch (state->count) { 349 switch (state->count) {
350 case 1: 350 case 1:
351 layer_on(SYMB); 351 layer_on(SYMB);
@@ -357,6 +357,6 @@ void belak_td_finished(qk_tap_dance_state_t *state, void *user_data) {
357 td_led_override = 0; 357 td_led_override = 0;
358} 358}
359 359
360void belak_td_reset(qk_tap_dance_state_t *state, void *user_data) { 360void belak_td_reset(tap_dance_state_t *state, void *user_data) {
361 td_led_override = 0; 361 td_led_override = 0;
362} 362}
diff --git a/layouts/community/ergodox/haegin/keymap.c b/layouts/community/ergodox/haegin/keymap.c
index 7c1883e57a..3704fe557c 100644
--- a/layouts/community/ergodox/haegin/keymap.c
+++ b/layouts/community/ergodox/haegin/keymap.c
@@ -167,7 +167,7 @@ static fib_tap fib_bspc = {
167 .state = BSPC_LETTER 167 .state = BSPC_LETTER
168}; 168};
169 169
170void cur_backspace (qk_tap_dance_state_t *state) { 170void cur_backspace (tap_dance_state_t *state) {
171 int next_fib = fib_bspc.a + fib_bspc.b; 171 int next_fib = fib_bspc.a + fib_bspc.b;
172 fib_bspc.a = fib_bspc.b; 172 fib_bspc.a = fib_bspc.b;
173 fib_bspc.b = next_fib; 173 fib_bspc.b = next_fib;
@@ -177,7 +177,7 @@ void cur_backspace (qk_tap_dance_state_t *state) {
177 } 177 }
178} 178}
179 179
180void dance_backspace (qk_tap_dance_state_t *state, void *user_data) { 180void dance_backspace (tap_dance_state_t *state, void *user_data) {
181 // If we're at the fifth tap, switch to deleting by words, and reset the fib 181 // If we're at the fifth tap, switch to deleting by words, and reset the fib
182 // counter 182 // counter
183 if (state->count == 4) { 183 if (state->count == 4) {
@@ -197,7 +197,7 @@ void dance_backspace (qk_tap_dance_state_t *state, void *user_data) {
197 } 197 }
198}; 198};
199 199
200void dance_backspace_ended (qk_tap_dance_state_t *state, void *user_data) { 200void dance_backspace_ended (tap_dance_state_t *state, void *user_data) {
201 if (state->count == 1) { 201 if (state->count == 1) {
202 if (state->pressed) { 202 if (state->pressed) {
203 fib_bspc.state = HOLD_CTRL; 203 fib_bspc.state = HOLD_CTRL;
@@ -208,7 +208,7 @@ void dance_backspace_ended (qk_tap_dance_state_t *state, void *user_data) {
208 } 208 }
209}; 209};
210 210
211void dance_backspace_reset (qk_tap_dance_state_t *state, void *user_data) { 211void dance_backspace_reset (tap_dance_state_t *state, void *user_data) {
212 switch (fib_bspc.state) { 212 switch (fib_bspc.state) {
213 case HOLD_CTRL: unregister_code(KC_LCTL); break; 213 case HOLD_CTRL: unregister_code(KC_LCTL); break;
214 case BSPC_WORD: unregister_code(KC_BSPC); unregister_code(KC_LALT); break; 214 case BSPC_WORD: unregister_code(KC_BSPC); unregister_code(KC_LALT); break;
@@ -219,7 +219,7 @@ void dance_backspace_reset (qk_tap_dance_state_t *state, void *user_data) {
219 fib_bspc.state = BSPC_LETTER; 219 fib_bspc.state = BSPC_LETTER;
220}; 220};
221 221
222qk_tap_dance_action_t tap_dance_actions[] = { 222tap_dance_action_t tap_dance_actions[] = {
223 [TD_BSPC] = ACTION_TAP_DANCE_FN_ADVANCED (dance_backspace, dance_backspace_ended, dance_backspace_reset) 223 [TD_BSPC] = ACTION_TAP_DANCE_FN_ADVANCED (dance_backspace, dance_backspace_ended, dance_backspace_reset)
224}; 224};
225 225
diff --git a/layouts/community/ergodox/meagerfindings/keymap.c b/layouts/community/ergodox/meagerfindings/keymap.c
index 3035572a77..800fd091b3 100644
--- a/layouts/community/ergodox/meagerfindings/keymap.c
+++ b/layouts/community/ergodox/meagerfindings/keymap.c
@@ -51,7 +51,7 @@ enum custom_keycodes {
51static uint16_t key_timer; //key timer for macros 51static uint16_t key_timer; //key timer for macros
52 52
53//Tap Dance Definitions 53//Tap Dance Definitions
54qk_tap_dance_action_t tap_dance_actions[] = { 54tap_dance_action_t tap_dance_actions[] = {
55 //Tap once for Copy, twice for Paste, three times for Cut. 55 //Tap once for Copy, twice for Paste, three times for Cut.
56 [TD_COPY_CUT] = ACTION_TAP_DANCE_DOUBLE(LGUI(KC_C),LGUI(KC_X)), 56 [TD_COPY_CUT] = ACTION_TAP_DANCE_DOUBLE(LGUI(KC_C),LGUI(KC_X)),
57 //Tap once for Snagit, twice for Cmd + Shift + Opt + 4 (OS X cropping screenshot that is copied to the clipboard only.) 57 //Tap once for Snagit, twice for Cmd + Shift + Opt + 4 (OS X cropping screenshot that is copied to the clipboard only.)
diff --git a/layouts/community/ergodox/videck/keymap.c b/layouts/community/ergodox/videck/keymap.c
index 1a17657da1..e0a3cec912 100644
--- a/layouts/community/ergodox/videck/keymap.c
+++ b/layouts/community/ergodox/videck/keymap.c
@@ -106,7 +106,7 @@ typedef struct
106 videck_tap_dance_trigger_t trigger; 106 videck_tap_dance_trigger_t trigger;
107} videck_tap_dance_tuple_t; 107} videck_tap_dance_tuple_t;
108 108
109static void videck_tap_dance_finished (qk_tap_dance_state_t *state, void *user_data) { 109static void videck_tap_dance_finished (tap_dance_state_t *state, void *user_data) {
110 videck_tap_dance_tuple_t *const tuple = (videck_tap_dance_tuple_t *)user_data; 110 videck_tap_dance_tuple_t *const tuple = (videck_tap_dance_tuple_t *)user_data;
111 111
112 if (state->count == 1) { 112 if (state->count == 1) {
@@ -116,7 +116,7 @@ static void videck_tap_dance_finished (qk_tap_dance_state_t *state, void *user_d
116 } 116 }
117} 117}
118 118
119static void videck_tap_dance_reset (qk_tap_dance_state_t *state, void *user_data) { 119static void videck_tap_dance_reset (tap_dance_state_t *state, void *user_data) {
120 videck_tap_dance_tuple_t *const tuple = (videck_tap_dance_tuple_t *)user_data; 120 videck_tap_dance_tuple_t *const tuple = (videck_tap_dance_tuple_t *)user_data;
121 121
122 if (state->count == 1) { 122 if (state->count == 1) {
@@ -139,7 +139,7 @@ static void videck_caps_trigger (const uint16_t kc) {
139 .user_data = (void *)&((videck_tap_dance_tuple_t) { kc1, kc2, double_trigger }), \ 139 .user_data = (void *)&((videck_tap_dance_tuple_t) { kc1, kc2, double_trigger }), \
140 } 140 }
141 141
142qk_tap_dance_action_t tap_dance_actions[] = { 142tap_dance_action_t tap_dance_actions[] = {
143 [TD_L] = ACTION_TAP_DANCE_DOUBLE_TRIGGER(KC_LSFT, KC_CAPS, videck_caps_trigger), 143 [TD_L] = ACTION_TAP_DANCE_DOUBLE_TRIGGER(KC_LSFT, KC_CAPS, videck_caps_trigger),
144 [TD_R] = ACTION_TAP_DANCE_DOUBLE_TRIGGER(KC_RSFT, KC_CAPS, videck_caps_trigger) 144 [TD_R] = ACTION_TAP_DANCE_DOUBLE_TRIGGER(KC_RSFT, KC_CAPS, videck_caps_trigger)
145}; 145};
diff --git a/layouts/community/ortho_5x12/riblee/keymap.c b/layouts/community/ortho_5x12/riblee/keymap.c
index 7a786de79d..c5a84d25c6 100644
--- a/layouts/community/ortho_5x12/riblee/keymap.c
+++ b/layouts/community/ortho_5x12/riblee/keymap.c
@@ -17,7 +17,7 @@
17 17
18 18
19// Tap Dance definitions 19// Tap Dance definitions
20qk_tap_dance_action_t tap_dance_actions[] = { 20tap_dance_action_t tap_dance_actions[] = {
21 [TD_A] = ACTION_TAP_DANCE_FN(dance_key_a), 21 [TD_A] = ACTION_TAP_DANCE_FN(dance_key_a),
22 [TD_E] = ACTION_TAP_DANCE_FN(dance_key_e), 22 [TD_E] = ACTION_TAP_DANCE_FN(dance_key_e),
23 [TD_I] = ACTION_TAP_DANCE_FN(dance_key_i), 23 [TD_I] = ACTION_TAP_DANCE_FN(dance_key_i),
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c
index 6e8e596673..fbe4ce1d33 100644
--- a/quantum/process_keycode/process_tap_dance.c
+++ b/quantum/process_keycode/process_tap_dance.c
@@ -18,8 +18,8 @@
18static uint16_t active_td; 18static uint16_t active_td;
19static uint16_t last_tap_time; 19static uint16_t last_tap_time;
20 20
21void qk_tap_dance_pair_on_each_tap(qk_tap_dance_state_t *state, void *user_data) { 21void tap_dance_pair_on_each_tap(tap_dance_state_t *state, void *user_data) {
22 qk_tap_dance_pair_t *pair = (qk_tap_dance_pair_t *)user_data; 22 tap_dance_pair_t *pair = (tap_dance_pair_t *)user_data;
23 23
24 if (state->count == 2) { 24 if (state->count == 2) {
25 register_code16(pair->kc2); 25 register_code16(pair->kc2);
@@ -27,14 +27,14 @@ void qk_tap_dance_pair_on_each_tap(qk_tap_dance_state_t *state, void *user_data)
27 } 27 }
28} 28}
29 29
30void qk_tap_dance_pair_finished(qk_tap_dance_state_t *state, void *user_data) { 30void tap_dance_pair_finished(tap_dance_state_t *state, void *user_data) {
31 qk_tap_dance_pair_t *pair = (qk_tap_dance_pair_t *)user_data; 31 tap_dance_pair_t *pair = (tap_dance_pair_t *)user_data;
32 32
33 register_code16(pair->kc1); 33 register_code16(pair->kc1);
34} 34}
35 35
36void qk_tap_dance_pair_reset(qk_tap_dance_state_t *state, void *user_data) { 36void tap_dance_pair_reset(tap_dance_state_t *state, void *user_data) {
37 qk_tap_dance_pair_t *pair = (qk_tap_dance_pair_t *)user_data; 37 tap_dance_pair_t *pair = (tap_dance_pair_t *)user_data;
38 38
39 if (state->count == 1) { 39 if (state->count == 1) {
40 wait_ms(TAP_CODE_DELAY); 40 wait_ms(TAP_CODE_DELAY);
@@ -44,8 +44,8 @@ void qk_tap_dance_pair_reset(qk_tap_dance_state_t *state, void *user_data) {
44 } 44 }
45} 45}
46 46
47void qk_tap_dance_dual_role_on_each_tap(qk_tap_dance_state_t *state, void *user_data) { 47void tap_dance_dual_role_on_each_tap(tap_dance_state_t *state, void *user_data) {
48 qk_tap_dance_dual_role_t *pair = (qk_tap_dance_dual_role_t *)user_data; 48 tap_dance_dual_role_t *pair = (tap_dance_dual_role_t *)user_data;
49 49
50 if (state->count == 2) { 50 if (state->count == 2) {
51 layer_move(pair->layer); 51 layer_move(pair->layer);
@@ -53,8 +53,8 @@ void qk_tap_dance_dual_role_on_each_tap(qk_tap_dance_state_t *state, void *user_
53 } 53 }
54} 54}
55 55
56void qk_tap_dance_dual_role_finished(qk_tap_dance_state_t *state, void *user_data) { 56void tap_dance_dual_role_finished(tap_dance_state_t *state, void *user_data) {
57 qk_tap_dance_dual_role_t *pair = (qk_tap_dance_dual_role_t *)user_data; 57 tap_dance_dual_role_t *pair = (tap_dance_dual_role_t *)user_data;
58 58
59 if (state->count == 1) { 59 if (state->count == 1) {
60 register_code16(pair->kc); 60 register_code16(pair->kc);
@@ -63,8 +63,8 @@ void qk_tap_dance_dual_role_finished(qk_tap_dance_state_t *state, void *user_dat
63 } 63 }
64} 64}
65 65
66void qk_tap_dance_dual_role_reset(qk_tap_dance_state_t *state, void *user_data) { 66void tap_dance_dual_role_reset(tap_dance_state_t *state, void *user_data) {
67 qk_tap_dance_dual_role_t *pair = (qk_tap_dance_dual_role_t *)user_data; 67 tap_dance_dual_role_t *pair = (tap_dance_dual_role_t *)user_data;
68 68
69 if (state->count == 1) { 69 if (state->count == 1) {
70 wait_ms(TAP_CODE_DELAY); 70 wait_ms(TAP_CODE_DELAY);
@@ -72,13 +72,13 @@ void qk_tap_dance_dual_role_reset(qk_tap_dance_state_t *state, void *user_data)
72 } 72 }
73} 73}
74 74
75static inline void _process_tap_dance_action_fn(qk_tap_dance_state_t *state, void *user_data, qk_tap_dance_user_fn_t fn) { 75static inline void _process_tap_dance_action_fn(tap_dance_state_t *state, void *user_data, tap_dance_user_fn_t fn) {
76 if (fn) { 76 if (fn) {
77 fn(state, user_data); 77 fn(state, user_data);
78 } 78 }
79} 79}
80 80
81static inline void process_tap_dance_action_on_each_tap(qk_tap_dance_action_t *action) { 81static inline void process_tap_dance_action_on_each_tap(tap_dance_action_t *action) {
82 action->state.count++; 82 action->state.count++;
83 action->state.weak_mods = get_mods(); 83 action->state.weak_mods = get_mods();
84 action->state.weak_mods |= get_weak_mods(); 84 action->state.weak_mods |= get_weak_mods();
@@ -88,17 +88,17 @@ static inline void process_tap_dance_action_on_each_tap(qk_tap_dance_action_t *a
88 _process_tap_dance_action_fn(&action->state, action->user_data, action->fn.on_each_tap); 88 _process_tap_dance_action_fn(&action->state, action->user_data, action->fn.on_each_tap);
89} 89}
90 90
91static inline void process_tap_dance_action_on_reset(qk_tap_dance_action_t *action) { 91static inline void process_tap_dance_action_on_reset(tap_dance_action_t *action) {
92 _process_tap_dance_action_fn(&action->state, action->user_data, action->fn.on_reset); 92 _process_tap_dance_action_fn(&action->state, action->user_data, action->fn.on_reset);
93 del_weak_mods(action->state.weak_mods); 93 del_weak_mods(action->state.weak_mods);
94#ifndef NO_ACTION_ONESHOT 94#ifndef NO_ACTION_ONESHOT
95 del_mods(action->state.oneshot_mods); 95 del_mods(action->state.oneshot_mods);
96#endif 96#endif
97 send_keyboard_report(); 97 send_keyboard_report();
98 action->state = (const qk_tap_dance_state_t){0}; 98 action->state = (const tap_dance_state_t){0};
99} 99}
100 100
101static inline void process_tap_dance_action_on_dance_finished(qk_tap_dance_action_t *action) { 101static inline void process_tap_dance_action_on_dance_finished(tap_dance_action_t *action) {
102 if (!action->state.finished) { 102 if (!action->state.finished) {
103 action->state.finished = true; 103 action->state.finished = true;
104 add_weak_mods(action->state.weak_mods); 104 add_weak_mods(action->state.weak_mods);
@@ -116,7 +116,7 @@ static inline void process_tap_dance_action_on_dance_finished(qk_tap_dance_actio
116} 116}
117 117
118bool preprocess_tap_dance(uint16_t keycode, keyrecord_t *record) { 118bool preprocess_tap_dance(uint16_t keycode, keyrecord_t *record) {
119 qk_tap_dance_action_t *action; 119 tap_dance_action_t *action;
120 120
121 if (!record->event.pressed) return false; 121 if (!record->event.pressed) return false;
122 122
@@ -139,7 +139,7 @@ bool preprocess_tap_dance(uint16_t keycode, keyrecord_t *record) {
139} 139}
140 140
141bool process_tap_dance(uint16_t keycode, keyrecord_t *record) { 141bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
142 qk_tap_dance_action_t *action; 142 tap_dance_action_t *action;
143 143
144 switch (keycode) { 144 switch (keycode) {
145 case QK_TAP_DANCE ... QK_TAP_DANCE_MAX: 145 case QK_TAP_DANCE ... QK_TAP_DANCE_MAX:
@@ -163,7 +163,7 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
163} 163}
164 164
165void tap_dance_task() { 165void tap_dance_task() {
166 qk_tap_dance_action_t *action; 166 tap_dance_action_t *action;
167 167
168 if (!active_td || timer_elapsed(last_tap_time) <= GET_TAPPING_TERM(active_td, &(keyrecord_t){})) return; 168 if (!active_td || timer_elapsed(last_tap_time) <= GET_TAPPING_TERM(active_td, &(keyrecord_t){})) return;
169 169
@@ -173,7 +173,7 @@ void tap_dance_task() {
173 } 173 }
174} 174}
175 175
176void reset_tap_dance(qk_tap_dance_state_t *state) { 176void reset_tap_dance(tap_dance_state_t *state) {
177 active_td = 0; 177 active_td = 0;
178 process_tap_dance_action_on_reset((qk_tap_dance_action_t *)state); 178 process_tap_dance_action_on_reset((tap_dance_action_t *)state);
179} 179}
diff --git a/quantum/process_keycode/process_tap_dance.h b/quantum/process_keycode/process_tap_dance.h
index d6d6c136dc..5cb6d9202c 100644
--- a/quantum/process_keycode/process_tap_dance.h
+++ b/quantum/process_keycode/process_tap_dance.h
@@ -31,39 +31,39 @@ typedef struct {
31 bool pressed : 1; 31 bool pressed : 1;
32 bool finished : 1; 32 bool finished : 1;
33 bool interrupted : 1; 33 bool interrupted : 1;
34} qk_tap_dance_state_t; 34} tap_dance_state_t;
35 35
36typedef void (*qk_tap_dance_user_fn_t)(qk_tap_dance_state_t *state, void *user_data); 36typedef void (*tap_dance_user_fn_t)(tap_dance_state_t *state, void *user_data);
37 37
38typedef struct { 38typedef struct {
39 qk_tap_dance_state_t state; 39 tap_dance_state_t state;
40 struct { 40 struct {
41 qk_tap_dance_user_fn_t on_each_tap; 41 tap_dance_user_fn_t on_each_tap;
42 qk_tap_dance_user_fn_t on_dance_finished; 42 tap_dance_user_fn_t on_dance_finished;
43 qk_tap_dance_user_fn_t on_reset; 43 tap_dance_user_fn_t on_reset;
44 } fn; 44 } fn;
45 void *user_data; 45 void *user_data;
46} qk_tap_dance_action_t; 46} tap_dance_action_t;
47 47
48typedef struct { 48typedef struct {
49 uint16_t kc1; 49 uint16_t kc1;
50 uint16_t kc2; 50 uint16_t kc2;
51} qk_tap_dance_pair_t; 51} tap_dance_pair_t;
52 52
53typedef struct { 53typedef struct {
54 uint16_t kc; 54 uint16_t kc;
55 uint8_t layer; 55 uint8_t layer;
56 void (*layer_function)(uint8_t); 56 void (*layer_function)(uint8_t);
57} qk_tap_dance_dual_role_t; 57} tap_dance_dual_role_t;
58 58
59# define ACTION_TAP_DANCE_DOUBLE(kc1, kc2) \ 59# define ACTION_TAP_DANCE_DOUBLE(kc1, kc2) \
60 { .fn = {qk_tap_dance_pair_on_each_tap, qk_tap_dance_pair_finished, qk_tap_dance_pair_reset}, .user_data = (void *)&((qk_tap_dance_pair_t){kc1, kc2}), } 60 { .fn = {tap_dance_pair_on_each_tap, tap_dance_pair_finished, tap_dance_pair_reset}, .user_data = (void *)&((tap_dance_pair_t){kc1, kc2}), }
61 61
62# define ACTION_TAP_DANCE_LAYER_MOVE(kc, layer) \ 62# define ACTION_TAP_DANCE_LAYER_MOVE(kc, layer) \
63 { .fn = {qk_tap_dance_dual_role_on_each_tap, qk_tap_dance_dual_role_finished, qk_tap_dance_dual_role_reset}, .user_data = (void *)&((qk_tap_dance_dual_role_t){kc, layer, layer_move}), } 63 { .fn = {tap_dance_dual_role_on_each_tap, tap_dance_dual_role_finished, tap_dance_dual_role_reset}, .user_data = (void *)&((tap_dance_dual_role_t){kc, layer, layer_move}), }
64 64
65# define ACTION_TAP_DANCE_LAYER_TOGGLE(kc, layer) \ 65# define ACTION_TAP_DANCE_LAYER_TOGGLE(kc, layer) \
66 { .fn = {NULL, qk_tap_dance_dual_role_finished, qk_tap_dance_dual_role_reset}, .user_data = (void *)&((qk_tap_dance_dual_role_t){kc, layer, layer_invert}), } 66 { .fn = {NULL, tap_dance_dual_role_finished, tap_dance_dual_role_reset}, .user_data = (void *)&((tap_dance_dual_role_t){kc, layer, layer_invert}), }
67 67
68# define ACTION_TAP_DANCE_FN(user_fn) \ 68# define ACTION_TAP_DANCE_FN(user_fn) \
69 { .fn = {NULL, user_fn, NULL}, .user_data = NULL, } 69 { .fn = {NULL, user_fn, NULL}, .user_data = NULL, }
@@ -73,11 +73,11 @@ typedef struct {
73 73
74# define TD(n) (QK_TAP_DANCE | TD_INDEX(n)) 74# define TD(n) (QK_TAP_DANCE | TD_INDEX(n))
75# define TD_INDEX(code) ((code)&0xFF) 75# define TD_INDEX(code) ((code)&0xFF)
76# define TAP_DANCE_KEYCODE(state) TD(((qk_tap_dance_action_t *)state) - tap_dance_actions) 76# define TAP_DANCE_KEYCODE(state) TD(((tap_dance_action_t *)state) - tap_dance_actions)
77 77
78extern qk_tap_dance_action_t tap_dance_actions[]; 78extern tap_dance_action_t tap_dance_actions[];
79 79
80void reset_tap_dance(qk_tap_dance_state_t *state); 80void reset_tap_dance(tap_dance_state_t *state);
81 81
82/* To be used internally */ 82/* To be used internally */
83 83
@@ -85,13 +85,13 @@ bool preprocess_tap_dance(uint16_t keycode, keyrecord_t *record);
85bool process_tap_dance(uint16_t keycode, keyrecord_t *record); 85bool process_tap_dance(uint16_t keycode, keyrecord_t *record);
86void tap_dance_task(void); 86void tap_dance_task(void);
87 87
88void qk_tap_dance_pair_on_each_tap(qk_tap_dance_state_t *state, void *user_data); 88void tap_dance_pair_on_each_tap(tap_dance_state_t *state, void *user_data);
89void qk_tap_dance_pair_finished(qk_tap_dance_state_t *state, void *user_data); 89void tap_dance_pair_finished(tap_dance_state_t *state, void *user_data);
90void qk_tap_dance_pair_reset(qk_tap_dance_state_t *state, void *user_data); 90void tap_dance_pair_reset(tap_dance_state_t *state, void *user_data);
91 91
92void qk_tap_dance_dual_role_on_each_tap(qk_tap_dance_state_t *state, void *user_data); 92void tap_dance_dual_role_on_each_tap(tap_dance_state_t *state, void *user_data);
93void qk_tap_dance_dual_role_finished(qk_tap_dance_state_t *state, void *user_data); 93void tap_dance_dual_role_finished(tap_dance_state_t *state, void *user_data);
94void qk_tap_dance_dual_role_reset(qk_tap_dance_state_t *state, void *user_data); 94void tap_dance_dual_role_reset(tap_dance_state_t *state, void *user_data);
95 95
96#else 96#else
97 97
diff --git a/tests/tap_dance/examples.c b/tests/tap_dance/examples.c
index 4a5be41b08..af74388209 100644
--- a/tests/tap_dance/examples.c
+++ b/tests/tap_dance/examples.c
@@ -23,7 +23,7 @@
23 23
24// Example 1 24// Example 1
25 25
26void dance_egg(qk_tap_dance_state_t *state, void *user_data) { 26void dance_egg(tap_dance_state_t *state, void *user_data) {
27 if (state->count >= 100) { 27 if (state->count >= 100) {
28 // SEND_STRING("Safety dance!"); 28 // SEND_STRING("Safety dance!");
29 tap_code(KC_C); 29 tap_code(KC_C);
@@ -34,7 +34,7 @@ void dance_egg(qk_tap_dance_state_t *state, void *user_data) {
34 34
35// Example 2 35// Example 2
36 36
37void dance_flsh_each(qk_tap_dance_state_t *state, void *user_data) { 37void dance_flsh_each(tap_dance_state_t *state, void *user_data) {
38 switch (state->count) { 38 switch (state->count) {
39 case 1: 39 case 1:
40 register_code(KC_3); 40 register_code(KC_3);
@@ -54,14 +54,14 @@ void dance_flsh_each(qk_tap_dance_state_t *state, void *user_data) {
54 } 54 }
55} 55}
56 56
57void dance_flsh_finished(qk_tap_dance_state_t *state, void *user_data) { 57void dance_flsh_finished(tap_dance_state_t *state, void *user_data) {
58 if (state->count >= 4) { 58 if (state->count >= 4) {
59 // reset_keyboard(); 59 // reset_keyboard();
60 tap_code(KC_R); 60 tap_code(KC_R);
61 } 61 }
62} 62}
63 63
64void dance_flsh_reset(qk_tap_dance_state_t *state, void *user_data) { 64void dance_flsh_reset(tap_dance_state_t *state, void *user_data) {
65 unregister_code(KC_1); 65 unregister_code(KC_1);
66 // wait_ms(50); 66 // wait_ms(50);
67 unregister_code(KC_2); 67 unregister_code(KC_2);
@@ -79,7 +79,7 @@ typedef struct {
79} tap_dance_tap_hold_t; 79} tap_dance_tap_hold_t;
80 80
81bool process_record_user(uint16_t keycode, keyrecord_t *record) { 81bool process_record_user(uint16_t keycode, keyrecord_t *record) {
82 qk_tap_dance_action_t *action; 82 tap_dance_action_t *action;
83 83
84 switch (keycode) { 84 switch (keycode) {
85 case TD(CT_CLN): 85 case TD(CT_CLN):
@@ -92,7 +92,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
92 return true; 92 return true;
93} 93}
94 94
95void tap_dance_tap_hold_finished(qk_tap_dance_state_t *state, void *user_data) { 95void tap_dance_tap_hold_finished(tap_dance_state_t *state, void *user_data) {
96 tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)user_data; 96 tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)user_data;
97 97
98 if (state->pressed) { 98 if (state->pressed) {
@@ -110,7 +110,7 @@ void tap_dance_tap_hold_finished(qk_tap_dance_state_t *state, void *user_data) {
110 } 110 }
111} 111}
112 112
113void tap_dance_tap_hold_reset(qk_tap_dance_state_t *state, void *user_data) { 113void tap_dance_tap_hold_reset(tap_dance_state_t *state, void *user_data) {
114 tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)user_data; 114 tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)user_data;
115 115
116 if (tap_hold->held) { 116 if (tap_hold->held) {
@@ -142,7 +142,7 @@ typedef struct {
142 td_state_t state; 142 td_state_t state;
143} td_tap_t; 143} td_tap_t;
144 144
145td_state_t cur_dance(qk_tap_dance_state_t *state) { 145td_state_t cur_dance(tap_dance_state_t *state) {
146 if (state->count == 1) { 146 if (state->count == 1) {
147 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP; 147 if (state->interrupted || !state->pressed) return TD_SINGLE_TAP;
148 else return TD_SINGLE_HOLD; 148 else return TD_SINGLE_HOLD;
@@ -163,7 +163,7 @@ static td_tap_t xtap_state = {
163 .state = TD_NONE 163 .state = TD_NONE
164}; 164};
165 165
166void x_finished(qk_tap_dance_state_t *state, void *user_data) { 166void x_finished(tap_dance_state_t *state, void *user_data) {
167 xtap_state.state = cur_dance(state); 167 xtap_state.state = cur_dance(state);
168 switch (xtap_state.state) { 168 switch (xtap_state.state) {
169 case TD_SINGLE_TAP: register_code(KC_X); break; 169 case TD_SINGLE_TAP: register_code(KC_X); break;
@@ -175,7 +175,7 @@ void x_finished(qk_tap_dance_state_t *state, void *user_data) {
175 } 175 }
176} 176}
177 177
178void x_reset(qk_tap_dance_state_t *state, void *user_data) { 178void x_reset(tap_dance_state_t *state, void *user_data) {
179 switch (xtap_state.state) { 179 switch (xtap_state.state) {
180 case TD_SINGLE_TAP: unregister_code(KC_X); break; 180 case TD_SINGLE_TAP: unregister_code(KC_X); break;
181 case TD_SINGLE_HOLD: unregister_code(KC_LCTL); break; 181 case TD_SINGLE_HOLD: unregister_code(KC_LCTL); break;
@@ -188,7 +188,7 @@ void x_reset(qk_tap_dance_state_t *state, void *user_data) {
188} 188}
189 189
190 190
191qk_tap_dance_action_t tap_dance_actions[] = { 191tap_dance_action_t tap_dance_actions[] = {
192 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS), 192 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS),
193 [CT_EGG] = ACTION_TAP_DANCE_FN(dance_egg), 193 [CT_EGG] = ACTION_TAP_DANCE_FN(dance_egg),
194 [CT_FLSH] = ACTION_TAP_DANCE_FN_ADVANCED(dance_flsh_each, dance_flsh_finished, dance_flsh_reset), 194 [CT_FLSH] = ACTION_TAP_DANCE_FN_ADVANCED(dance_flsh_each, dance_flsh_finished, dance_flsh_reset),
diff --git a/tests/tap_dance/tap_dance_layers/tap_dance_defs.c b/tests/tap_dance/tap_dance_layers/tap_dance_defs.c
index 5ec900c041..fbe37f7ed0 100644
--- a/tests/tap_dance/tap_dance_layers/tap_dance_defs.c
+++ b/tests/tap_dance/tap_dance_layers/tap_dance_defs.c
@@ -43,7 +43,7 @@ enum lt_app_state {
43 43
44static enum lt_app_state saved_lt_app_state; 44static enum lt_app_state saved_lt_app_state;
45 45
46static enum lt_app_state get_lt_app_state(qk_tap_dance_state_t *state) { 46static enum lt_app_state get_lt_app_state(tap_dance_state_t *state) {
47 if (state->count == 1) { 47 if (state->count == 1) {
48 if (!state->pressed) { 48 if (!state->pressed) {
49 return LTA_SINGLE_TAP; 49 return LTA_SINGLE_TAP;
@@ -57,7 +57,7 @@ static enum lt_app_state get_lt_app_state(qk_tap_dance_state_t *state) {
57 } 57 }
58} 58}
59 59
60static void lt_app_finished(qk_tap_dance_state_t *state, void *user_data) { 60static void lt_app_finished(tap_dance_state_t *state, void *user_data) {
61 saved_lt_app_state = get_lt_app_state(state); 61 saved_lt_app_state = get_lt_app_state(state);
62 switch (saved_lt_app_state) { 62 switch (saved_lt_app_state) {
63 case LTA_NONE: 63 case LTA_NONE:
@@ -74,7 +74,7 @@ static void lt_app_finished(qk_tap_dance_state_t *state, void *user_data) {
74 } 74 }
75} 75}
76 76
77static void lt_app_reset(qk_tap_dance_state_t *state, void *user_data) { 77static void lt_app_reset(tap_dance_state_t *state, void *user_data) {
78 switch (saved_lt_app_state) { 78 switch (saved_lt_app_state) {
79 case LTA_NONE: 79 case LTA_NONE:
80 break; 80 break;
@@ -90,7 +90,7 @@ static void lt_app_reset(qk_tap_dance_state_t *state, void *user_data) {
90 } 90 }
91} 91}
92 92
93qk_tap_dance_action_t tap_dance_actions[] = { 93tap_dance_action_t tap_dance_actions[] = {
94 [TD_L_MOVE] = ACTION_TAP_DANCE_LAYER_MOVE(KC_APP, 1), 94 [TD_L_MOVE] = ACTION_TAP_DANCE_LAYER_MOVE(KC_APP, 1),
95 [TD_L_TOGG] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_APP, 1), 95 [TD_L_TOGG] = ACTION_TAP_DANCE_LAYER_TOGGLE(KC_APP, 1),
96 [TD_LT_APP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lt_app_finished, lt_app_reset), 96 [TD_LT_APP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lt_app_finished, lt_app_reset),
diff --git a/users/333fred/333fred.c b/users/333fred/333fred.c
index c035493e37..e75a862a3e 100644
--- a/users/333fred/333fred.c
+++ b/users/333fred/333fred.c
@@ -31,7 +31,7 @@ typedef enum {
31static tap_dance_state_enum tap_dance_state; 31static tap_dance_state_enum tap_dance_state;
32static bool tap_dance_active = false; 32static bool tap_dance_active = false;
33 33
34void tap_dance_sym_vim_finished(qk_tap_dance_state_t *state, void *user_data) { 34void tap_dance_sym_vim_finished(tap_dance_state_t *state, void *user_data) {
35 // Determine the current state 35 // Determine the current state
36 if (state->count == 1) { 36 if (state->count == 1) {
37 if (state->interrupted || state->pressed == 0) tap_dance_state = SINGLE_TAP; 37 if (state->interrupted || state->pressed == 0) tap_dance_state = SINGLE_TAP;
@@ -60,7 +60,7 @@ void tap_dance_sym_vim_finished(qk_tap_dance_state_t *state, void *user_data) {
60 } 60 }
61} 61}
62 62
63void tap_dance_sym_vim_reset(qk_tap_dance_state_t *state, void *user_data) { 63void tap_dance_sym_vim_reset(tap_dance_state_t *state, void *user_data) {
64 switch(tap_dance_state) { 64 switch(tap_dance_state) {
65 case SINGLE_TAP: 65 case SINGLE_TAP:
66 clear_oneshot_layer_state(ONESHOT_PRESSED); 66 clear_oneshot_layer_state(ONESHOT_PRESSED);
@@ -74,7 +74,7 @@ void tap_dance_sym_vim_reset(qk_tap_dance_state_t *state, void *user_data) {
74 } 74 }
75} 75}
76 76
77void tap_dance_copy_paste_finished(qk_tap_dance_state_t *state, void *user_data) { 77void tap_dance_copy_paste_finished(tap_dance_state_t *state, void *user_data) {
78 bool is_paste = state->count == 2; 78 bool is_paste = state->count == 2;
79 // If either the one-shot shift is set, or if shift is being held, count as shift being held. 79 // If either the one-shot shift is set, or if shift is being held, count as shift being held.
80 // We'll clear the one-shot shift if it was held 80 // We'll clear the one-shot shift if it was held
@@ -103,7 +103,7 @@ void tap_dance_copy_paste_finished(qk_tap_dance_state_t *state, void *user_data)
103 } 103 }
104} 104}
105 105
106qk_tap_dance_action_t tap_dance_actions[] = { 106tap_dance_action_t tap_dance_actions[] = {
107 [TD_SYM_VIM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_dance_sym_vim_finished, tap_dance_sym_vim_reset), 107 [TD_SYM_VIM] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_dance_sym_vim_finished, tap_dance_sym_vim_reset),
108 [TD_COPY_PASTE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_dance_copy_paste_finished, NULL) 108 [TD_COPY_PASTE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_dance_copy_paste_finished, NULL)
109}; 109};
diff --git a/users/333fred/333fred.h b/users/333fred/333fred.h
index 0532ff2df7..e8473e7ce1 100644
--- a/users/333fred/333fred.h
+++ b/users/333fred/333fred.h
@@ -45,7 +45,7 @@ enum custom_keys {
45 PSCREEN_APP 45 PSCREEN_APP
46}; 46};
47 47
48void tap_dance_sym_vim_finished(qk_tap_dance_state_t*, void*); 48void tap_dance_sym_vim_finished(tap_dance_state_t*, void*);
49void tap_dance_sym_vim_reset(qk_tap_dance_state_t*, void*); 49void tap_dance_sym_vim_reset(tap_dance_state_t*, void*);
50void tap_dance_process_keycode(uint16_t); 50void tap_dance_process_keycode(uint16_t);
51bool try_handle_macro(uint16_t keycode, keyrecord_t *record); 51bool try_handle_macro(uint16_t keycode, keyrecord_t *record);
diff --git a/users/billypython/tap_dance.c b/users/billypython/tap_dance.c
index 74ae166393..c55f9e9133 100644
--- a/users/billypython/tap_dance.c
+++ b/users/billypython/tap_dance.c
@@ -2,11 +2,11 @@
2 2
3#define ACTION_TAP_DANCE_DOUBLE_MODS(mod1, mod2) { \ 3#define ACTION_TAP_DANCE_DOUBLE_MODS(mod1, mod2) { \
4 .fn = { td_double_mods_each, NULL, td_double_mods_reset }, \ 4 .fn = { td_double_mods_each, NULL, td_double_mods_reset }, \
5 .user_data = &(qk_tap_dance_pair_t){ mod1, mod2 }, \ 5 .user_data = &(tap_dance_pair_t){ mod1, mod2 }, \
6 } 6 }
7 7
8void td_double_mods_each(qk_tap_dance_state_t *state, void *user_data) { 8void td_double_mods_each(tap_dance_state_t *state, void *user_data) {
9 qk_tap_dance_pair_t *mods = (qk_tap_dance_pair_t *)user_data; 9 tap_dance_pair_t *mods = (tap_dance_pair_t *)user_data;
10 // Single tap → mod1, double tap → mod2, triple tap etc. → mod1+mod2 10 // Single tap → mod1, double tap → mod2, triple tap etc. → mod1+mod2
11 if (state->count == 1 || state->count == 3) { 11 if (state->count == 1 || state->count == 3) {
12 register_code(mods->kc1); 12 register_code(mods->kc1);
@@ -18,8 +18,8 @@ void td_double_mods_each(qk_tap_dance_state_t *state, void *user_data) {
18 state->weak_mods &= ~(MOD_BIT(mods->kc1) | MOD_BIT(mods->kc2)); 18 state->weak_mods &= ~(MOD_BIT(mods->kc1) | MOD_BIT(mods->kc2));
19} 19}
20 20
21void td_double_mods_reset(qk_tap_dance_state_t *state, void *user_data) { 21void td_double_mods_reset(tap_dance_state_t *state, void *user_data) {
22 qk_tap_dance_pair_t *mods = (qk_tap_dance_pair_t *)user_data; 22 tap_dance_pair_t *mods = (tap_dance_pair_t *)user_data;
23 if (state->count == 1 || state->count >= 3) { 23 if (state->count == 1 || state->count >= 3) {
24 unregister_code(mods->kc1); 24 unregister_code(mods->kc1);
25 } 25 }
@@ -28,6 +28,6 @@ void td_double_mods_reset(qk_tap_dance_state_t *state, void *user_data) {
28 } 28 }
29} 29}
30 30
31qk_tap_dance_action_t tap_dance_actions[] = { 31tap_dance_action_t tap_dance_actions[] = {
32 [TD_RSF_RCT] = ACTION_TAP_DANCE_DOUBLE_MODS(KC_RSFT, KC_RCTL), 32 [TD_RSF_RCT] = ACTION_TAP_DANCE_DOUBLE_MODS(KC_RSFT, KC_RCTL),
33}; 33};
diff --git a/users/brandonschlack/tap_dances.c b/users/brandonschlack/tap_dances.c
index 861b31805b..4a4a530ff2 100644
--- a/users/brandonschlack/tap_dances.c
+++ b/users/brandonschlack/tap_dances.c
@@ -16,7 +16,7 @@
16#include "tap_dances.h" 16#include "tap_dances.h"
17#include "process_keycode/process_tap_dance.h" 17#include "process_keycode/process_tap_dance.h"
18 18
19int cur_dance (qk_tap_dance_state_t *state) { 19int cur_dance (tap_dance_state_t *state) {
20 if (state->count == 1) { 20 if (state->count == 1) {
21 if (state->interrupted || !state->pressed) return SINGLE_TAP; 21 if (state->interrupted || !state->pressed) return SINGLE_TAP;
22 else return SINGLE_HOLD; 22 else return SINGLE_HOLD;
@@ -35,8 +35,8 @@ int cur_dance (qk_tap_dance_state_t *state) {
35__attribute__ ((weak)) 35__attribute__ ((weak))
36void process_tap_dance_keycode (bool reset, uint8_t toggle_layer) { }; 36void process_tap_dance_keycode (bool reset, uint8_t toggle_layer) { };
37 37
38void td_trigger_layer_finished (qk_tap_dance_state_t *state, void *user_data) { 38void td_trigger_layer_finished (tap_dance_state_t *state, void *user_data) {
39 qk_tap_dance_trigger_layer_t *data = (qk_tap_dance_trigger_layer_t *)user_data; 39 tap_dance_trigger_layer_t *data = (tap_dance_trigger_layer_t *)user_data;
40 data->state = cur_dance(state); 40 data->state = cur_dance(state);
41 41
42 if (data->state == data->trigger) { 42 if (data->state == data->trigger) {
@@ -46,8 +46,8 @@ void td_trigger_layer_finished (qk_tap_dance_state_t *state, void *user_data) {
46 } 46 }
47 47
48} 48}
49void td_trigger_layer_reset (qk_tap_dance_state_t *state, void *user_data) { 49void td_trigger_layer_reset (tap_dance_state_t *state, void *user_data) {
50 qk_tap_dance_trigger_layer_t *data = (qk_tap_dance_trigger_layer_t *)user_data; 50 tap_dance_trigger_layer_t *data = (tap_dance_trigger_layer_t *)user_data;
51 if (data->state == data->trigger) { 51 if (data->state == data->trigger) {
52 switch (data->trigger) { 52 switch (data->trigger) {
53 case SINGLE_HOLD: 53 case SINGLE_HOLD:
@@ -63,8 +63,8 @@ void td_trigger_layer_reset (qk_tap_dance_state_t *state, void *user_data) {
63} 63}
64 64
65/* Tap Dance: Layer Mod. Toggles Layer when tapped, Mod when held. */ 65/* Tap Dance: Layer Mod. Toggles Layer when tapped, Mod when held. */
66void td_layer_mod_each(qk_tap_dance_state_t *state, void *user_data) { 66void td_layer_mod_each(tap_dance_state_t *state, void *user_data) {
67 qk_tap_dance_dual_role_t *data = (qk_tap_dance_dual_role_t *)user_data; 67 tap_dance_dual_role_t *data = (tap_dance_dual_role_t *)user_data;
68 68
69 // Single tap → toggle layer, Single hold → mod 69 // Single tap → toggle layer, Single hold → mod
70 if (state->pressed) { 70 if (state->pressed) {
@@ -74,16 +74,16 @@ void td_layer_mod_each(qk_tap_dance_state_t *state, void *user_data) {
74 } 74 }
75} 75}
76 76
77void td_layer_mod_finished(qk_tap_dance_state_t *state, void *user_data) { 77void td_layer_mod_finished(tap_dance_state_t *state, void *user_data) {
78 qk_tap_dance_dual_role_t *data = (qk_tap_dance_dual_role_t *)user_data; 78 tap_dance_dual_role_t *data = (tap_dance_dual_role_t *)user_data;
79 79
80 if (state->count == 1 && !state->pressed) { 80 if (state->count == 1 && !state->pressed) {
81 layer_invert(data->layer); 81 layer_invert(data->layer);
82 } 82 }
83} 83}
84 84
85void td_layer_mod_reset(qk_tap_dance_state_t *state, void *user_data) { 85void td_layer_mod_reset(tap_dance_state_t *state, void *user_data) {
86 qk_tap_dance_dual_role_t *data = (qk_tap_dance_dual_role_t *)user_data; 86 tap_dance_dual_role_t *data = (tap_dance_dual_role_t *)user_data;
87 87
88 if (state->count == 1) { 88 if (state->count == 1) {
89 unregister_code(data->kc); 89 unregister_code(data->kc);
diff --git a/users/brandonschlack/tap_dances.h b/users/brandonschlack/tap_dances.h
index 3747619a5e..62c585631e 100644
--- a/users/brandonschlack/tap_dances.h
+++ b/users/brandonschlack/tap_dances.h
@@ -29,7 +29,7 @@ enum tap_dance_states {
29 TRIPLE_HOLD = 7 29 TRIPLE_HOLD = 7
30}; 30};
31 31
32int cur_dance (qk_tap_dance_state_t *state); 32int cur_dance (tap_dance_state_t *state);
33void process_tap_dance_keycode (bool reset, uint8_t toggle_layer); 33void process_tap_dance_keycode (bool reset, uint8_t toggle_layer);
34 34
35/* Tap Dance: Trigger Layer 35/* Tap Dance: Trigger Layer
@@ -41,12 +41,12 @@ typedef struct {
41 uint8_t trigger; 41 uint8_t trigger;
42 uint8_t layer; 42 uint8_t layer;
43 uint8_t state; 43 uint8_t state;
44} qk_tap_dance_trigger_layer_t; 44} tap_dance_trigger_layer_t;
45 45
46#define ACTION_TAP_DANCE_TRIGGER_LAYER(trigger, layer) { \ 46#define ACTION_TAP_DANCE_TRIGGER_LAYER(trigger, layer) { \
47 .fn = { NULL, td_trigger_layer_finished, td_trigger_layer_reset }, \ 47 .fn = { NULL, td_trigger_layer_finished, td_trigger_layer_reset }, \
48 .user_data = (void *)&((qk_tap_dance_trigger_layer_t) { trigger, layer, 0 }), \ 48 .user_data = (void *)&((tap_dance_trigger_layer_t) { trigger, layer, 0 }), \
49} 49}
50 50
51void td_trigger_layer_finished (qk_tap_dance_state_t *state, void *user_data); 51void td_trigger_layer_finished (tap_dance_state_t *state, void *user_data);
52void td_trigger_layer_reset (qk_tap_dance_state_t *state, void *user_data); 52void td_trigger_layer_reset (tap_dance_state_t *state, void *user_data);
diff --git a/users/curry/tap_dances.c b/users/curry/tap_dances.c
index 166ea2c686..86a8f679d2 100644
--- a/users/curry/tap_dances.c
+++ b/users/curry/tap_dances.c
@@ -1,4 +1,4 @@
1#include "tap_dances.h" 1#include "tap_dances.h"
2#include "curry.h" 2#include "curry.h"
3 3
4qk_tap_dance_action_t tap_dance_actions[] = {}; 4tap_dance_action_t tap_dance_actions[] = {};
diff --git a/users/d4mation/tap-dance.c b/users/d4mation/tap-dance.c
index 77d09962d6..928a932611 100644
--- a/users/d4mation/tap-dance.c
+++ b/users/d4mation/tap-dance.c
@@ -1,6 +1,6 @@
1#include "tap-dance.h" 1#include "tap-dance.h"
2 2
3qk_tap_dance_action_t tap_dance_actions[] = { 3tap_dance_action_t tap_dance_actions[] = {
4 /* Tap once/hold for Shift, tap twice for Caps Lock */ 4 /* Tap once/hold for Shift, tap twice for Caps Lock */
5 [SHIFT_CAPS] = ACTION_TAP_DANCE_DOUBLE( KC_LSFT, KC_CAPS ) 5 [SHIFT_CAPS] = ACTION_TAP_DANCE_DOUBLE( KC_LSFT, KC_CAPS )
6}; \ No newline at end of file 6}; \ No newline at end of file
diff --git a/users/danielo515/tap_dance.c b/users/danielo515/tap_dance.c
index a07b4c792f..b69ee715d4 100644
--- a/users/danielo515/tap_dance.c
+++ b/users/danielo515/tap_dance.c
@@ -1,7 +1,7 @@
1#include "tap_dance.h" 1#include "tap_dance.h"
2//**************** Definitions needed for quad function to work *********************// 2//**************** Definitions needed for quad function to work *********************//
3#ifdef QUAD_DANCE 3#ifdef QUAD_DANCE
4int cur_dance(qk_tap_dance_state_t *state) 4int cur_dance(tap_dance_state_t *state)
5{ 5{
6 if (state->count == 1) 6 if (state->count == 1)
7 { 7 {
@@ -30,8 +30,8 @@ int cur_dance(qk_tap_dance_state_t *state)
30# endif 30# endif
31 31
32// Slightly better tap dance double: interruption sends double single and any number over double sends the single that number of times 32// Slightly better tap dance double: interruption sends double single and any number over double sends the single that number of times
33void qk_tap_dance_pair_finished_safe(qk_tap_dance_state_t *state, void *user_data) { 33void tap_dance_pair_finished_safe(tap_dance_state_t *state, void *user_data) {
34 qk_tap_dance_pair_t *pair = (qk_tap_dance_pair_t *)user_data; 34 tap_dance_pair_t *pair = (tap_dance_pair_t *)user_data;
35 int count = state->count; 35 int count = state->count;
36 if (state->count == 2) { 36 if (state->count == 2) {
37 if (state->interrupted){ 37 if (state->interrupted){
@@ -47,8 +47,8 @@ void qk_tap_dance_pair_finished_safe(qk_tap_dance_state_t *state, void *user_dat
47 } 47 }
48} 48}
49 49
50void qk_tap_dance_pair_reset_safe(qk_tap_dance_state_t *state, void *user_data) { 50void tap_dance_pair_reset_safe(tap_dance_state_t *state, void *user_data) {
51 qk_tap_dance_pair_t *pair = (qk_tap_dance_pair_t *)user_data; 51 tap_dance_pair_t *pair = (tap_dance_pair_t *)user_data;
52 if (state->count == 2) { 52 if (state->count == 2) {
53 unregister_code16 (pair->kc2); 53 unregister_code16 (pair->kc2);
54 return; 54 return;
@@ -58,7 +58,7 @@ void qk_tap_dance_pair_reset_safe(qk_tap_dance_state_t *state, void *user_data)
58 58
59//**************** Tap dance functions *********************// 59//**************** Tap dance functions *********************//
60 60
61qk_tap_dance_action_t tap_dance_actions[] = { 61tap_dance_action_t tap_dance_actions[] = {
62 [COPY_CUT] = ACTION_TAP_DANCE_FN(td_copy_cut), 62 [COPY_CUT] = ACTION_TAP_DANCE_FN(td_copy_cut),
63 [PASTE_DANCE] = ACTION_TAP_DANCE_FN(td_paste), 63 [PASTE_DANCE] = ACTION_TAP_DANCE_FN(td_paste),
64 [_TD_F1] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_F1), 64 [_TD_F1] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_F1),
@@ -86,7 +86,7 @@ qk_tap_dance_action_t tap_dance_actions[] = {
86 [_TD_PASTE] = ACTION_TAP_DANCE_FN(dance_paste) 86 [_TD_PASTE] = ACTION_TAP_DANCE_FN(dance_paste)
87}; 87};
88 88
89void td_copy_cut(qk_tap_dance_state_t *state, void *user_data) 89void td_copy_cut(tap_dance_state_t *state, void *user_data)
90{ 90{
91 if (state->count == 2) 91 if (state->count == 2)
92 { 92 {
@@ -99,7 +99,7 @@ void td_copy_cut(qk_tap_dance_state_t *state, void *user_data)
99 reset_tap_dance(state); 99 reset_tap_dance(state);
100}; 100};
101 101
102void td_paste(qk_tap_dance_state_t *state, void *user_data) 102void td_paste(tap_dance_state_t *state, void *user_data)
103{ 103{
104 if (state->count == 2) 104 if (state->count == 2)
105 { 105 {
@@ -113,7 +113,7 @@ void td_paste(qk_tap_dance_state_t *state, void *user_data)
113}; 113};
114 114
115//===== The awesome tap dance for CUT, COPY and PASTE letters 115//===== The awesome tap dance for CUT, COPY and PASTE letters
116void dance_copy (qk_tap_dance_state_t *state, void *user_data) { 116void dance_copy (tap_dance_state_t *state, void *user_data) {
117 if (state->count == 1) { tap_code16(KC_C); } 117 if (state->count == 1) { tap_code16(KC_C); }
118 else 118 else
119 if (state->interrupted) { tap_code16(KC_C);tap_code16(KC_C);} 119 if (state->interrupted) { tap_code16(KC_C);tap_code16(KC_C);}
@@ -122,13 +122,13 @@ void dance_copy (qk_tap_dance_state_t *state, void *user_data) {
122 reset_tap_dance (state); 122 reset_tap_dance (state);
123} 123}
124 124
125void dance_cut (qk_tap_dance_state_t *state, void *user_data) { 125void dance_cut (tap_dance_state_t *state, void *user_data) {
126 if (state->count == 1) { tap_code16(KC_X); } 126 if (state->count == 1) { tap_code16(KC_X); }
127 else { CMD(KC_X); } 127 else { CMD(KC_X); }
128 reset_tap_dance (state); 128 reset_tap_dance (state);
129} 129}
130 130
131void dance_paste (qk_tap_dance_state_t *state, void *user_data) { 131void dance_paste (tap_dance_state_t *state, void *user_data) {
132 if (state->count == 1) { 132 if (state->count == 1) {
133 tap_code16(KC_V); 133 tap_code16(KC_V);
134 } 134 }
diff --git a/users/danielo515/tap_dance.h b/users/danielo515/tap_dance.h
index 880ad525ee..aaf3864841 100644
--- a/users/danielo515/tap_dance.h
+++ b/users/danielo515/tap_dance.h
@@ -4,8 +4,8 @@ extern bool onMac;
4 4
5 5
6#define ACTION_TAP_DANCE_DOUBLE_SAFE(kc1, kc2) { \ 6#define ACTION_TAP_DANCE_DOUBLE_SAFE(kc1, kc2) { \
7 .fn = { NULL, qk_tap_dance_pair_finished_safe, qk_tap_dance_pair_reset_safe }, \ 7 .fn = { NULL, tap_dance_pair_finished_safe, tap_dance_pair_reset_safe }, \
8 .user_data = (void *)&((qk_tap_dance_pair_t) { kc1, kc2 }), \ 8 .user_data = (void *)&((tap_dance_pair_t) { kc1, kc2 }), \
9 } 9 }
10 10
11#ifdef QUAD_DANCE 11#ifdef QUAD_DANCE
@@ -18,7 +18,7 @@ enum {
18 DOUBLE_SINGLE_TAP = 5 //send SINGLE_TAP twice - NOT DOUBLE_TAP 18 DOUBLE_SINGLE_TAP = 5 //send SINGLE_TAP twice - NOT DOUBLE_TAP
19 // Add more enums here if you want for triple, quadruple, etc. 19 // Add more enums here if you want for triple, quadruple, etc.
20}; 20};
21int cur_dance (qk_tap_dance_state_t *state); 21int cur_dance (tap_dance_state_t *state);
22# endif 22# endif
23 23
24enum tap_dance { 24enum tap_dance {
@@ -48,14 +48,14 @@ enum tap_dance {
48 _TD_CUT, 48 _TD_CUT,
49 _TD_PASTE, 49 _TD_PASTE,
50}; 50};
51void qk_tap_dance_pair_finished_safe(qk_tap_dance_state_t *state, void *user_data); 51void tap_dance_pair_finished_safe(tap_dance_state_t *state, void *user_data);
52void qk_tap_dance_pair_reset_safe(qk_tap_dance_state_t *state, void *user_data); 52void tap_dance_pair_reset_safe(tap_dance_state_t *state, void *user_data);
53void td_copy_cut (qk_tap_dance_state_t *state, void *user_data); 53void td_copy_cut (tap_dance_state_t *state, void *user_data);
54void td_paste(qk_tap_dance_state_t *state, void *user_data); 54void td_paste(tap_dance_state_t *state, void *user_data);
55int cur_dance (qk_tap_dance_state_t *state); 55int cur_dance (tap_dance_state_t *state);
56void dance_cut (qk_tap_dance_state_t *state, void *user_data); 56void dance_cut (tap_dance_state_t *state, void *user_data);
57void dance_copy (qk_tap_dance_state_t *state, void *user_data); 57void dance_copy (tap_dance_state_t *state, void *user_data);
58void dance_paste (qk_tap_dance_state_t *state, void *user_data); 58void dance_paste (tap_dance_state_t *state, void *user_data);
59 59
60// Ready to use Tap dance definitions, just put them on your layout 60// Ready to use Tap dance definitions, just put them on your layout
61#define TD_COPY TD(_TD_COPY) 61#define TD_COPY TD(_TD_COPY)
diff --git a/users/draevin/draevin.c b/users/draevin/draevin.c
index 95570bf377..70b465a33d 100644
--- a/users/draevin/draevin.c
+++ b/users/draevin/draevin.c
@@ -54,6 +54,6 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
54 return true; 54 return true;
55} 55}
56 56
57qk_tap_dance_action_t tap_dance_actions[] = { 57tap_dance_action_t tap_dance_actions[] = {
58 [TD_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS) // shift/caps TD 58 [TD_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS) // shift/caps TD
59}; 59};
diff --git a/users/drashna/keyrecords/tap_dance.md b/users/drashna/keyrecords/tap_dance.md
index fef1435918..9dff96640f 100644
--- a/users/drashna/keyrecords/tap_dance.md
+++ b/users/drashna/keyrecords/tap_dance.md
@@ -30,7 +30,7 @@ These are the custom defined dances that I'm using. It sets up everything for l
30 30
31```c 31```c
32//Tap Dance Definitions, sets the index and the keycode. 32//Tap Dance Definitions, sets the index and the keycode.
33qk_tap_dance_action_t tap_dance_actions[] = { 33tap_dance_action_t tap_dance_actions[] = {
34 // tap once to disable, and more to enable timed micros 34 // tap once to disable, and more to enable timed micros
35 [TD_D3_1] = ACTION_TAP_DANCE_DIABLO(0, KC_1), 35 [TD_D3_1] = ACTION_TAP_DANCE_DIABLO(0, KC_1),
36 [TD_D3_2] = ACTION_TAP_DANCE_DIABLO(1, KC_2), 36 [TD_D3_2] = ACTION_TAP_DANCE_DIABLO(1, KC_2),
@@ -82,7 +82,7 @@ The first part of the magic here is the `diablo_tapdance_master` function. The
82 82
83```c 83```c
84// Cycle through the times for the macro, starting at 0, for disabled. 84// Cycle through the times for the macro, starting at 0, for disabled.
85void diablo_tapdance_master(qk_tap_dance_state_t *state, void *user_data) { 85void diablo_tapdance_master(tap_dance_state_t *state, void *user_data) {
86 diable_keys_t *diablo_keys = (diable_keys_t *)user_data; 86 diable_keys_t *diablo_keys = (diable_keys_t *)user_data;
87 // Sets the keycode based on the index 87 // Sets the keycode based on the index
88 diablo_timer[diablo_keys->index].keycode = diablo_keys->keycode; 88 diablo_timer[diablo_keys->index].keycode = diablo_keys->keycode;
diff --git a/users/drashna/keyrecords/tap_dances.c b/users/drashna/keyrecords/tap_dances.c
index 7bdea3cae3..87739c2a18 100644
--- a/users/drashna/keyrecords/tap_dances.c
+++ b/users/drashna/keyrecords/tap_dances.c
@@ -17,7 +17,7 @@ uint8_t diablo_times[] = {0, 1, 3, 5, 10, 30};
17 * @param state Main data struction contining information about events 17 * @param state Main data struction contining information about events
18 * @param user_data Local data for the dance. Allows customization to be passed on to function 18 * @param user_data Local data for the dance. Allows customization to be passed on to function
19 */ 19 */
20void diablo_tapdance_master(qk_tap_dance_state_t *state, void *user_data) { 20void diablo_tapdance_master(tap_dance_state_t *state, void *user_data) {
21 diable_keys_t *diablo_keys = (diable_keys_t *)user_data; 21 diable_keys_t *diablo_keys = (diable_keys_t *)user_data;
22 // Sets the keycode based on the index 22 // Sets the keycode based on the index
23 diablo_timer[diablo_keys->index].keycode = diablo_keys->keycode; 23 diablo_timer[diablo_keys->index].keycode = diablo_keys->keycode;
@@ -40,7 +40,7 @@ void diablo_tapdance_master(qk_tap_dance_state_t *state, void *user_data) {
40// clang-format on 40// clang-format on
41 41
42// Tap Dance Definitions, sets the index and the keycode. 42// Tap Dance Definitions, sets the index and the keycode.
43qk_tap_dance_action_t tap_dance_actions[] = { 43tap_dance_action_t tap_dance_actions[] = {
44 // tap once to disable, and more to enable timed micros 44 // tap once to disable, and more to enable timed micros
45 [TD_D3_1] = ACTION_TAP_DANCE_DIABLO(0, KC_1), 45 [TD_D3_1] = ACTION_TAP_DANCE_DIABLO(0, KC_1),
46 [TD_D3_2] = ACTION_TAP_DANCE_DIABLO(1, KC_2), 46 [TD_D3_2] = ACTION_TAP_DANCE_DIABLO(1, KC_2),
diff --git a/users/dvorak_42_key/dvorak_42_key.c b/users/dvorak_42_key/dvorak_42_key.c
index f4ec3cd06e..99cfd8cb7d 100644
--- a/users/dvorak_42_key/dvorak_42_key.c
+++ b/users/dvorak_42_key/dvorak_42_key.c
@@ -5,7 +5,7 @@
5 5
6bool process_record_user(uint16_t keycode, keyrecord_t *record) { 6bool process_record_user(uint16_t keycode, keyrecord_t *record) {
7 // tap dance processing 7 // tap dance processing
8 qk_tap_dance_action_t *action; 8 tap_dance_action_t *action;
9 switch (keycode) { 9 switch (keycode) {
10 case TD(TD_DEL_WORD_DEL): // list all tap dance keycodes with tap-hold configurations 10 case TD(TD_DEL_WORD_DEL): // list all tap dance keycodes with tap-hold configurations
11 action = &tap_dance_actions[TD_INDEX(keycode)]; 11 action = &tap_dance_actions[TD_INDEX(keycode)];
@@ -167,7 +167,7 @@ bool caps_word_press_user(uint16_t keycode) {
167} 167}
168 168
169 169
170void tap_dance_tap_hold_finished(qk_tap_dance_state_t *state, void *user_data) { 170void tap_dance_tap_hold_finished(tap_dance_state_t *state, void *user_data) {
171 tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)user_data; 171 tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)user_data;
172 172
173 if (state->pressed) { 173 if (state->pressed) {
@@ -185,7 +185,7 @@ void tap_dance_tap_hold_finished(qk_tap_dance_state_t *state, void *user_data) {
185 } 185 }
186} 186}
187 187
188void tap_dance_tap_hold_reset(qk_tap_dance_state_t *state, void *user_data) { 188void tap_dance_tap_hold_reset(tap_dance_state_t *state, void *user_data) {
189 tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)user_data; 189 tap_dance_tap_hold_t *tap_hold = (tap_dance_tap_hold_t *)user_data;
190 190
191 if (tap_hold->held) { 191 if (tap_hold->held) {
@@ -196,7 +196,7 @@ void tap_dance_tap_hold_reset(qk_tap_dance_state_t *state, void *user_data) {
196 196
197 197
198// Tap Dance definitions 198// Tap Dance definitions
199qk_tap_dance_action_t tap_dance_actions[] = { 199tap_dance_action_t tap_dance_actions[] = {
200 // Tap once for Escape, twice for Caps Lock 200 // Tap once for Escape, twice for Caps Lock
201 // [TD_BSPC_CTL_BSPC] = ACTION_TAP_DANCE_DOUBLE(KC_BSPC, RCTL(KC_BSPC)), 201 // [TD_BSPC_CTL_BSPC] = ACTION_TAP_DANCE_DOUBLE(KC_BSPC, RCTL(KC_BSPC)),
202 // [TD_BSPC_CTL_BSPC_IOS] = ACTION_TAP_DANCE_DOUBLE(KC_BSPC, LALT(KC_BSPC)), 202 // [TD_BSPC_CTL_BSPC_IOS] = ACTION_TAP_DANCE_DOUBLE(KC_BSPC, LALT(KC_BSPC)),
diff --git a/users/edvorakjp/edvorakjp_tap_dance.c b/users/edvorakjp/edvorakjp_tap_dance.c
index 69fcbac1ca..d2c9f2b0e9 100644
--- a/users/edvorakjp/edvorakjp_tap_dance.c
+++ b/users/edvorakjp/edvorakjp_tap_dance.c
@@ -14,7 +14,7 @@ typedef struct {
14} td_status_t; 14} td_status_t;
15static td_status_t td_status = {NONE, NONE}; 15static td_status_t td_status = {NONE, NONE};
16 16
17uint8_t cur_dance(qk_tap_dance_state_t *state) { 17uint8_t cur_dance(tap_dance_state_t *state) {
18 if (state->interrupted || !state->pressed) { 18 if (state->interrupted || !state->pressed) {
19 return state->count == 1 ? SINGLE_TAP : DOUBLE_TAP; 19 return state->count == 1 ? SINGLE_TAP : DOUBLE_TAP;
20 } else { 20 } else {
@@ -22,7 +22,7 @@ uint8_t cur_dance(qk_tap_dance_state_t *state) {
22 } 22 }
23} 23}
24 24
25void td_lower_finished(qk_tap_dance_state_t *state, void *user_data) { 25void td_lower_finished(tap_dance_state_t *state, void *user_data) {
26 td_status.lower = cur_dance(state); 26 td_status.lower = cur_dance(state);
27 switch (td_status.lower) { 27 switch (td_status.lower) {
28 case SINGLE_TAP: 28 case SINGLE_TAP:
@@ -36,7 +36,7 @@ void td_lower_finished(qk_tap_dance_state_t *state, void *user_data) {
36 layer_on(L_EDVORAKJP_LOWER); 36 layer_on(L_EDVORAKJP_LOWER);
37} 37}
38 38
39void td_lower_reset(qk_tap_dance_state_t *state, void *user_data) { 39void td_lower_reset(tap_dance_state_t *state, void *user_data) {
40 switch (td_status.lower) { 40 switch (td_status.lower) {
41 case DOUBLE_TAP: 41 case DOUBLE_TAP:
42 unregister_code(KC_ESC); 42 unregister_code(KC_ESC);
@@ -46,7 +46,7 @@ void td_lower_reset(qk_tap_dance_state_t *state, void *user_data) {
46 td_status.lower = NONE; 46 td_status.lower = NONE;
47} 47}
48 48
49void td_raise_finished(qk_tap_dance_state_t *state, void *user_data) { 49void td_raise_finished(tap_dance_state_t *state, void *user_data) {
50 td_status.raise = cur_dance(state); 50 td_status.raise = cur_dance(state);
51 switch (td_status.raise) { 51 switch (td_status.raise) {
52 case DOUBLE_TAP: 52 case DOUBLE_TAP:
@@ -58,12 +58,12 @@ void td_raise_finished(qk_tap_dance_state_t *state, void *user_data) {
58 layer_on(L_EDVORAKJP_RAISE); 58 layer_on(L_EDVORAKJP_RAISE);
59} 59}
60 60
61void td_raise_reset(qk_tap_dance_state_t *state, void *user_data) { 61void td_raise_reset(tap_dance_state_t *state, void *user_data) {
62 layer_off(L_EDVORAKJP_RAISE); 62 layer_off(L_EDVORAKJP_RAISE);
63 td_status.raise = NONE; 63 td_status.raise = NONE;
64} 64}
65 65
66qk_tap_dance_action_t tap_dance_actions[] = { 66tap_dance_action_t tap_dance_actions[] = {
67 [TD_EDVORAKJP_LOWER] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, td_lower_finished, td_lower_reset), 67 [TD_EDVORAKJP_LOWER] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, td_lower_finished, td_lower_reset),
68 [TD_EDVORAKJP_RAISE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, td_raise_finished, td_raise_reset), 68 [TD_EDVORAKJP_RAISE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, td_raise_finished, td_raise_reset),
69}; 69};
diff --git a/users/ericgebhart/extensions/keycodes.h b/users/ericgebhart/extensions/keycodes.h
index a3c5d72a09..eafdfbad43 100755
--- a/users/ericgebhart/extensions/keycodes.h
+++ b/users/ericgebhart/extensions/keycodes.h
@@ -515,9 +515,9 @@ enum {
515int on_qwerty(void); 515int on_qwerty(void);
516 516
517#ifdef TAP_DANCES_ENABLE 517#ifdef TAP_DANCES_ENABLE
518int cur_dance (qk_tap_dance_state_t *state); 518int cur_dance (tap_dance_state_t *state);
519 519
520//for the x tap dance. Put it here so it can be used in any keymap 520//for the x tap dance. Put it here so it can be used in any keymap
521void x_finished (qk_tap_dance_state_t *state, void *user_data); 521void x_finished (tap_dance_state_t *state, void *user_data);
522void x_reset (qk_tap_dance_state_t *state, void *user_data); 522void x_reset (tap_dance_state_t *state, void *user_data);
523#endif 523#endif
diff --git a/users/ericgebhart/extensions/tap_dances.c b/users/ericgebhart/extensions/tap_dances.c
index b292dab678..8b1fea15e8 100755
--- a/users/ericgebhart/extensions/tap_dances.c
+++ b/users/ericgebhart/extensions/tap_dances.c
@@ -22,7 +22,7 @@
22#include "action_layer.h" 22#include "action_layer.h"
23#include "process_keycode/process_tap_dance.h" 23#include "process_keycode/process_tap_dance.h"
24 24
25void tap_dance_mouse_btns (qk_tap_dance_state_t *state, void *user_data) { 25void tap_dance_mouse_btns (tap_dance_state_t *state, void *user_data) {
26 switch(state->count){ 26 switch(state->count){
27 case 1: 27 case 1:
28 register_code(KC_BTN1); 28 register_code(KC_BTN1);
@@ -72,7 +72,7 @@ static void switch_default_layer(uint8_t layer) {
72 } 72 }
73*/ 73*/
74 74
75void tap_dance_df_bepo_layers_switch (qk_tap_dance_state_t *state, void *user_data) { 75void tap_dance_df_bepo_layers_switch (tap_dance_state_t *state, void *user_data) {
76 switch(state->count){ 76 switch(state->count){
77 case 1: 77 case 1:
78 switch_default_layer(_DVORAK_BP); 78 switch_default_layer(_DVORAK_BP);
@@ -89,7 +89,7 @@ void tap_dance_df_bepo_layers_switch (qk_tap_dance_state_t *state, void *user_da
89 reset_tap_dance(state); 89 reset_tap_dance(state);
90} 90}
91 91
92void tap_dance_layer_switch (qk_tap_dance_state_t *state, void *user_data) { 92void tap_dance_layer_switch (tap_dance_state_t *state, void *user_data) {
93 switch(state->count){ 93 switch(state->count){
94 case 1: 94 case 1:
95 if(on_qwerty()) 95 if(on_qwerty())
@@ -115,7 +115,7 @@ void tap_dance_layer_switch (qk_tap_dance_state_t *state, void *user_data) {
115 reset_tap_dance(state); 115 reset_tap_dance(state);
116} 116}
117 117
118void tap_dance_default_layer_switch (qk_tap_dance_state_t *state, void *user_data) { 118void tap_dance_default_layer_switch (tap_dance_state_t *state, void *user_data) {
119 switch(state->count){ 119 switch(state->count){
120 case 1: 120 case 1:
121 switch_default_layer(_DVORAK); 121 switch_default_layer(_DVORAK);
@@ -178,7 +178,7 @@ void switch_default_layer_on_bepo(int count) {
178// a qwerty software keyboard and a bepo software keyboard. 178// a qwerty software keyboard and a bepo software keyboard.
179// if shifted, choose layers based on the other software keyboard, otherwise choose only 179// if shifted, choose layers based on the other software keyboard, otherwise choose only
180// layers that work on the current software keyboard. 180// layers that work on the current software keyboard.
181void tap_dance_default_os_layer_switch (qk_tap_dance_state_t *state, void *user_data) { 181void tap_dance_default_os_layer_switch (tap_dance_state_t *state, void *user_data) {
182 //uint8_t shifted = (get_mods() & MOD_BIT(KC_LSFT|KC_RSFT)); 182 //uint8_t shifted = (get_mods() & MOD_BIT(KC_LSFT|KC_RSFT));
183 bool shifted = ( keyboard_report->mods & (MOD_BIT(KC_LSFT)|MOD_BIT(KC_RSFT)) ); 183 bool shifted = ( keyboard_report->mods & (MOD_BIT(KC_LSFT)|MOD_BIT(KC_RSFT)) );
184 int qwerty = on_qwerty(); 184 int qwerty = on_qwerty();
@@ -230,7 +230,7 @@ void tap_dance_default_os_layer_switch (qk_tap_dance_state_t *state, void *user_
230 * For the third point, there does exist the 'DOUBLE_SINGLE_TAP', however this is not fully tested 230 * For the third point, there does exist the 'DOUBLE_SINGLE_TAP', however this is not fully tested
231 * 231 *
232 */ 232 */
233int cur_dance (qk_tap_dance_state_t *state) { 233int cur_dance (tap_dance_state_t *state) {
234 if (state->count == 1) { 234 if (state->count == 1) {
235 if (state->interrupted || !state->pressed) return SINGLE_TAP; 235 if (state->interrupted || !state->pressed) return SINGLE_TAP;
236 //key has not been interrupted, but they key is still held. Means you want to send a 'HOLD'. 236 //key has not been interrupted, but they key is still held. Means you want to send a 'HOLD'.
@@ -257,7 +257,7 @@ int cur_dance (qk_tap_dance_state_t *state) {
257} 257}
258 258
259//Tap Dance Definitions 259//Tap Dance Definitions
260qk_tap_dance_action_t tap_dance_actions[] = { 260tap_dance_action_t tap_dance_actions[] = {
261 //Tap once for Esc, twice for Caps Lock 261 //Tap once for Esc, twice for Caps Lock
262 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS), 262 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS),
263 [TD_TAB_BKTAB] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, LSFT(KC_TAB)), 263 [TD_TAB_BKTAB] = ACTION_TAP_DANCE_DOUBLE(KC_TAB, LSFT(KC_TAB)),
diff --git a/users/greatwizard/tap_dances.c b/users/greatwizard/tap_dances.c
index c6be995c45..ca2c33824f 100644
--- a/users/greatwizard/tap_dances.c
+++ b/users/greatwizard/tap_dances.c
@@ -15,7 +15,7 @@
15 */ 15 */
16#include "tap_dances.h" 16#include "tap_dances.h"
17 17
18uint8_t cur_dance(qk_tap_dance_state_t *state) { 18uint8_t cur_dance(tap_dance_state_t *state) {
19 if (state->count == 1) { 19 if (state->count == 1) {
20 if (state->interrupted || !state->pressed) return SINGLE_TAP; 20 if (state->interrupted || !state->pressed) return SINGLE_TAP;
21 else return SINGLE_HOLD; 21 else return SINGLE_HOLD;
@@ -36,7 +36,7 @@ static tap tap_state = {
36}; 36};
37 37
38#ifdef TAP_DANCE_LALT_GIT 38#ifdef TAP_DANCE_LALT_GIT
39void lalt_finished(qk_tap_dance_state_t *state, void *user_data) { 39void lalt_finished(tap_dance_state_t *state, void *user_data) {
40 tap_state.state = cur_dance(state); 40 tap_state.state = cur_dance(state);
41 switch (tap_state.state) { 41 switch (tap_state.state) {
42 case SINGLE_HOLD: 42 case SINGLE_HOLD:
@@ -49,7 +49,7 @@ void lalt_finished(qk_tap_dance_state_t *state, void *user_data) {
49 } 49 }
50} 50}
51 51
52void lalt_reset(qk_tap_dance_state_t *state, void *user_data) { 52void lalt_reset(tap_dance_state_t *state, void *user_data) {
53 switch (tap_state.state) { 53 switch (tap_state.state) {
54 case SINGLE_HOLD: 54 case SINGLE_HOLD:
55 unregister_mods(MOD_BIT(KC_LALT)); 55 unregister_mods(MOD_BIT(KC_LALT));
@@ -65,7 +65,7 @@ void lalt_reset(qk_tap_dance_state_t *state, void *user_data) {
65 65
66#ifdef TAP_DANCE_LSFT_CAPS 66#ifdef TAP_DANCE_LSFT_CAPS
67# ifdef LAYERS_PROGRAMMER 67# ifdef LAYERS_PROGRAMMER
68void pg_lsft_finished(qk_tap_dance_state_t *state, void *user_data) { 68void pg_lsft_finished(tap_dance_state_t *state, void *user_data) {
69 tap_state.state = cur_dance(state); 69 tap_state.state = cur_dance(state);
70 switch (tap_state.state) { 70 switch (tap_state.state) {
71 case SINGLE_HOLD: 71 case SINGLE_HOLD:
@@ -80,7 +80,7 @@ void pg_lsft_finished(qk_tap_dance_state_t *state, void *user_data) {
80 } 80 }
81} 81}
82 82
83void pg_lsft_reset(qk_tap_dance_state_t *state, void *user_data) { 83void pg_lsft_reset(tap_dance_state_t *state, void *user_data) {
84 switch (tap_state.state) { 84 switch (tap_state.state) {
85 case SINGLE_HOLD: 85 case SINGLE_HOLD:
86 unregister_mods(MOD_BIT(KC_LSFT)); 86 unregister_mods(MOD_BIT(KC_LSFT));
@@ -92,7 +92,7 @@ void pg_lsft_reset(qk_tap_dance_state_t *state, void *user_data) {
92# endif 92# endif
93#endif 93#endif
94 94
95qk_tap_dance_action_t tap_dance_actions[] = { 95dance_action_t tap_dance_actions[] = {
96#ifdef TAP_DANCE_LALT_GIT 96#ifdef TAP_DANCE_LALT_GIT
97 [TD_LALT_GIT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lalt_finished, lalt_reset), 97 [TD_LALT_GIT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, lalt_finished, lalt_reset),
98#endif 98#endif
diff --git a/users/greatwizard/tap_dances.h b/users/greatwizard/tap_dances.h
index 944ae45553..19819125b5 100644
--- a/users/greatwizard/tap_dances.h
+++ b/users/greatwizard/tap_dances.h
@@ -45,18 +45,18 @@ enum {
45#endif 45#endif
46}; 46};
47 47
48uint8_t cur_dance(qk_tap_dance_state_t *state); 48uint8_t cur_dance(tap_dance_state_t *state);
49 49
50#ifdef TAP_DANCE_LALT_GIT 50#ifdef TAP_DANCE_LALT_GIT
51void lalt_finished(qk_tap_dance_state_t *state, void *user_data); 51void lalt_finished(tap_dance_state_t *state, void *user_data);
52void lalt_reset(qk_tap_dance_state_t *state, void *user_data); 52void lalt_reset(tap_dance_state_t *state, void *user_data);
53# define TD_LALT TD(TD_LALT_GIT) 53# define TD_LALT TD(TD_LALT_GIT)
54#endif 54#endif
55 55
56#ifdef TAP_DANCE_LSFT_CAPS 56#ifdef TAP_DANCE_LSFT_CAPS
57# ifdef LAYERS_PROGRAMMER 57# ifdef LAYERS_PROGRAMMER
58void pg_lsft_finished(qk_tap_dance_state_t *state, void *user_data); 58void pg_lsft_finished(tap_dance_state_t *state, void *user_data);
59void pg_lsft_reset(qk_tap_dance_state_t *state, void *user_data); 59void pg_lsft_reset(tap_dance_state_t *state, void *user_data);
60# endif 60# endif
61#endif 61#endif
62 62
diff --git a/users/hvp/tap_dances.c b/users/hvp/tap_dances.c
index 1269d5f272..51e227737a 100644
--- a/users/hvp/tap_dances.c
+++ b/users/hvp/tap_dances.c
@@ -2,7 +2,7 @@
2 2
3// Tap dance function for enable swedish characters on first layer. Unregister to not let tap bleed over to next keypress. 3// Tap dance function for enable swedish characters on first layer. Unregister to not let tap bleed over to next keypress.
4// Tap dance 1 4// Tap dance 1
5void dance_1_finished(qk_tap_dance_state_t *state, void *user_data) { 5void dance_1_finished(tap_dance_state_t *state, void *user_data) {
6 if (state->count == 2) { 6 if (state->count == 2) {
7 tap_code(KC_SCLN); 7 tap_code(KC_SCLN);
8 } else { 8 } else {
@@ -10,7 +10,7 @@ void dance_1_finished(qk_tap_dance_state_t *state, void *user_data) {
10 } 10 }
11} 11}
12 12
13void dance_1_reset(qk_tap_dance_state_t *state, void *user_data) { 13void dance_1_reset(tap_dance_state_t *state, void *user_data) {
14 if (state->count == 2) { 14 if (state->count == 2) {
15 unregister_code(KC_SCLN); 15 unregister_code(KC_SCLN);
16 } else { 16 } else {
@@ -19,7 +19,7 @@ void dance_1_reset(qk_tap_dance_state_t *state, void *user_data) {
19} 19}
20 20
21// Tap dance 2 21// Tap dance 2
22void dance_2_finished(qk_tap_dance_state_t *state, void *user_data) { 22void dance_2_finished(tap_dance_state_t *state, void *user_data) {
23 if (state->count == 2) { 23 if (state->count == 2) {
24 tap_code(KC_QUOT); 24 tap_code(KC_QUOT);
25 } else { 25 } else {
@@ -27,7 +27,7 @@ void dance_2_finished(qk_tap_dance_state_t *state, void *user_data) {
27 } 27 }
28} 28}
29 29
30void dance_2_reset(qk_tap_dance_state_t *state, void *user_data) { 30void dance_2_reset(tap_dance_state_t *state, void *user_data) {
31 if (state->count == 2) { 31 if (state->count == 2) {
32 unregister_code(KC_QUOT); 32 unregister_code(KC_QUOT);
33 } else { 33 } else {
@@ -36,7 +36,7 @@ void dance_2_reset(qk_tap_dance_state_t *state, void *user_data) {
36} 36}
37 37
38// Tap dance 3 38// Tap dance 3
39void dance_3_finished(qk_tap_dance_state_t *state, void *user_data) { 39void dance_3_finished(tap_dance_state_t *state, void *user_data) {
40 // if (state->count == 2) 40 // if (state->count == 2)
41 if (state->count == 2) { 41 if (state->count == 2) {
42 tap_code(KC_SLSH); 42 tap_code(KC_SLSH);
@@ -45,7 +45,7 @@ void dance_3_finished(qk_tap_dance_state_t *state, void *user_data) {
45 } 45 }
46} 46}
47 47
48void dance_3_reset(qk_tap_dance_state_t *state, void *user_data) { 48void dance_3_reset(tap_dance_state_t *state, void *user_data) {
49 if (state->count == 2) { 49 if (state->count == 2) {
50 unregister_code(KC_SLSH); 50 unregister_code(KC_SLSH);
51 } else { 51 } else {
@@ -54,7 +54,7 @@ void dance_3_reset(qk_tap_dance_state_t *state, void *user_data) {
54} 54}
55 55
56// Tap dance 4 56// Tap dance 4
57void dance_4_finished(qk_tap_dance_state_t *state, void *user_data) { 57void dance_4_finished(tap_dance_state_t *state, void *user_data) {
58 // if (state->count == 2) 58 // if (state->count == 2)
59 if (state->count == 2) { 59 if (state->count == 2) {
60 tap_code(KC_DOT); 60 tap_code(KC_DOT);
@@ -63,7 +63,7 @@ void dance_4_finished(qk_tap_dance_state_t *state, void *user_data) {
63 } 63 }
64} 64}
65 65
66void dance_4_reset(qk_tap_dance_state_t *state, void *user_data) { 66void dance_4_reset(tap_dance_state_t *state, void *user_data) {
67 if (state->count == 2) { 67 if (state->count == 2) {
68 unregister_code(KC_DOT); 68 unregister_code(KC_DOT);
69 } else { 69 } else {
@@ -72,7 +72,7 @@ void dance_4_reset(qk_tap_dance_state_t *state, void *user_data) {
72} 72}
73 73
74// Tap dance 5 74// Tap dance 5
75void dance_5_finished(qk_tap_dance_state_t *state, void *user_data) { 75void dance_5_finished(tap_dance_state_t *state, void *user_data) {
76 // if (state->count == 2) 76 // if (state->count == 2)
77 if (state->count == 2) { 77 if (state->count == 2) {
78 tap_code(KC_DOT); 78 tap_code(KC_DOT);
@@ -81,7 +81,7 @@ void dance_5_finished(qk_tap_dance_state_t *state, void *user_data) {
81 } 81 }
82} 82}
83 83
84void dance_5_reset(qk_tap_dance_state_t *state, void *user_data) { 84void dance_5_reset(tap_dance_state_t *state, void *user_data) {
85 if (state->count == 2) { 85 if (state->count == 2) {
86 unregister_code(KC_DOT); 86 unregister_code(KC_DOT);
87 } else { 87 } else {
@@ -90,7 +90,7 @@ void dance_5_reset(qk_tap_dance_state_t *state, void *user_data) {
90} 90}
91 91
92// Tap Dance Definitions 92// Tap Dance Definitions
93qk_tap_dance_action_t tap_dance_actions[] = { 93tap_dance_action_t tap_dance_actions[] = {
94 // simple tap dance 94 // simple tap dance
95 [TD1] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_1_finished, dance_1_reset), 95 [TD1] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_1_finished, dance_1_reset),
96 96
diff --git a/users/imchipwood/imchipwood.c b/users/imchipwood/imchipwood.c
index b019012a71..9d111c015b 100644
--- a/users/imchipwood/imchipwood.c
+++ b/users/imchipwood/imchipwood.c
@@ -18,7 +18,7 @@
18static td_state_t td_state[3]; 18static td_state_t td_state[3];
19 19
20// determine the tapdance state to return 20// determine the tapdance state to return
21int cur_dance(qk_tap_dance_state_t *state) { 21int cur_dance(tap_dance_state_t *state) {
22 if (state->count == 1) { 22 if (state->count == 1) {
23 if (state->interrupted || !state->pressed) { 23 if (state->interrupted || !state->pressed) {
24 return SINGLE_TAP; 24 return SINGLE_TAP;
@@ -33,7 +33,7 @@ int cur_dance(qk_tap_dance_state_t *state) {
33 } // any number higher than the maximum state value you return above 33 } // any number higher than the maximum state value you return above
34} 34}
35 35
36void altf2_finished(qk_tap_dance_state_t *state, void *user_data) { 36void altf2_finished(tap_dance_state_t *state, void *user_data) {
37 td_state[0] = cur_dance(state); 37 td_state[0] = cur_dance(state);
38 switch (td_state[0]) { 38 switch (td_state[0]) {
39 case SINGLE_TAP: 39 case SINGLE_TAP:
@@ -49,7 +49,7 @@ void altf2_finished(qk_tap_dance_state_t *state, void *user_data) {
49 } 49 }
50} 50}
51 51
52void altf2_reset(qk_tap_dance_state_t *state, void *user_data) { 52void altf2_reset(tap_dance_state_t *state, void *user_data) {
53 switch (td_state[0]) { 53 switch (td_state[0]) {
54 case SINGLE_TAP: 54 case SINGLE_TAP:
55 unregister_code(KC_F2); 55 unregister_code(KC_F2);
@@ -65,7 +65,7 @@ void altf2_reset(qk_tap_dance_state_t *state, void *user_data) {
65} 65}
66 66
67 67
68void ctlf5_finished(qk_tap_dance_state_t *state, void *user_data) { 68void ctlf5_finished(tap_dance_state_t *state, void *user_data) {
69 td_state[1] = cur_dance(state); 69 td_state[1] = cur_dance(state);
70 switch (td_state[1]) { 70 switch (td_state[1]) {
71 case SINGLE_TAP: 71 case SINGLE_TAP:
@@ -81,7 +81,7 @@ void ctlf5_finished(qk_tap_dance_state_t *state, void *user_data) {
81 } 81 }
82} 82}
83 83
84void ctlf5_reset(qk_tap_dance_state_t *state, void *user_data) { 84void ctlf5_reset(tap_dance_state_t *state, void *user_data) {
85 switch (td_state[1]) { 85 switch (td_state[1]) {
86 case SINGLE_TAP: 86 case SINGLE_TAP:
87 unregister_code(KC_F5); 87 unregister_code(KC_F5);
@@ -96,7 +96,7 @@ void ctlf5_reset(qk_tap_dance_state_t *state, void *user_data) {
96 } 96 }
97} 97}
98 98
99void altf7_finished(qk_tap_dance_state_t *state, void *user_data) { 99void altf7_finished(tap_dance_state_t *state, void *user_data) {
100 td_state[2] = cur_dance(state); 100 td_state[2] = cur_dance(state);
101 switch (td_state[2]) { 101 switch (td_state[2]) {
102 case SINGLE_TAP: 102 case SINGLE_TAP:
@@ -112,7 +112,7 @@ void altf7_finished(qk_tap_dance_state_t *state, void *user_data) {
112 } 112 }
113} 113}
114 114
115void altf7_reset(qk_tap_dance_state_t *state, void *user_data) { 115void altf7_reset(tap_dance_state_t *state, void *user_data) {
116 switch (td_state[2]) { 116 switch (td_state[2]) {
117 case SINGLE_TAP: 117 case SINGLE_TAP:
118 unregister_code(KC_F7); 118 unregister_code(KC_F7);
@@ -127,7 +127,7 @@ void altf7_reset(qk_tap_dance_state_t *state, void *user_data) {
127 } 127 }
128} 128}
129 129
130qk_tap_dance_action_t tap_dance_actions[] = { 130tap_dance_action_t tap_dance_actions[] = {
131 [ALT_F2] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altf2_finished, altf2_reset), 131 [ALT_F2] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altf2_finished, altf2_reset),
132 [CTL_F5] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctlf5_finished, ctlf5_reset), 132 [CTL_F5] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctlf5_finished, ctlf5_reset),
133 [ALT_F7] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altf7_finished, altf7_reset), 133 [ALT_F7] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, altf7_finished, altf7_reset),
diff --git a/users/imchipwood/imchipwood.h b/users/imchipwood/imchipwood.h
index 64726a862b..1e4bc3f744 100644
--- a/users/imchipwood/imchipwood.h
+++ b/users/imchipwood/imchipwood.h
@@ -41,11 +41,11 @@ enum td_keycodes {
41 41
42 42
43typedef enum { SINGLE_TAP, SINGLE_HOLD, DOUBLE_TAP } td_state_t; 43typedef enum { SINGLE_TAP, SINGLE_HOLD, DOUBLE_TAP } td_state_t;
44int cur_dance(qk_tap_dance_state_t *state); 44int cur_dance(tap_dance_state_t *state);
45 45
46void altf2_finished(qk_tap_dance_state_t *state, void *user_data); 46void altf2_finished(tap_dance_state_t *state, void *user_data);
47void altf2_reset(qk_tap_dance_state_t *state, void *user_data); 47void altf2_reset(tap_dance_state_t *state, void *user_data);
48void ctlf5_finished(qk_tap_dance_state_t *state, void *user_data); 48void ctlf5_finished(tap_dance_state_t *state, void *user_data);
49void ctlf5_reset(qk_tap_dance_state_t *state, void *user_data); 49void ctlf5_reset(tap_dance_state_t *state, void *user_data);
50void altf7_finished(qk_tap_dance_state_t *state, void *user_data); 50void altf7_finished(tap_dance_state_t *state, void *user_data);
51void altf7_reset(qk_tap_dance_state_t *state, void *user_data); 51void altf7_reset(tap_dance_state_t *state, void *user_data);
diff --git a/users/jdelkins/jdelkins.c b/users/jdelkins/jdelkins.c
index e7bef607c9..4f59e8901b 100644
--- a/users/jdelkins/jdelkins.c
+++ b/users/jdelkins/jdelkins.c
@@ -45,7 +45,7 @@ void send_secret_string(uint8_t n) {
45 45
46// To activate SINGLE_HOLD, you will need to hold for 200ms first. 46// To activate SINGLE_HOLD, you will need to hold for 200ms first.
47// This tap dance favors keys that are used frequently in typing like 'f' 47// This tap dance favors keys that are used frequently in typing like 'f'
48int cur_dance(qk_tap_dance_state_t *state) { 48int cur_dance(tap_dance_state_t *state) {
49 if (state->count == 1) { 49 if (state->count == 1) {
50 // If count = 1, and it has been interrupted - it doesn't matter if it 50 // If count = 1, and it has been interrupted - it doesn't matter if it
51 // is pressed or not: Send SINGLE_TAP 51 // is pressed or not: Send SINGLE_TAP
@@ -84,7 +84,7 @@ int cur_dance(qk_tap_dance_state_t *state) {
84 84
85// This works well if you want this key to work as a "fast modifier". It favors 85// This works well if you want this key to work as a "fast modifier". It favors
86// being held over being tapped. 86// being held over being tapped.
87int hold_cur_dance(qk_tap_dance_state_t *state) { 87int hold_cur_dance(tap_dance_state_t *state) {
88 if (state->count == 1) { 88 if (state->count == 1) {
89 if (state->interrupted) { 89 if (state->interrupted) {
90 if (!state->pressed) 90 if (!state->pressed)
diff --git a/users/jdelkins/jdelkins.h b/users/jdelkins/jdelkins.h
index ddec8dc4ae..7c9f2d021c 100644
--- a/users/jdelkins/jdelkins.h
+++ b/users/jdelkins/jdelkins.h
@@ -128,7 +128,7 @@ enum {
128 TRIPLE_HOLD = 7 128 TRIPLE_HOLD = 7
129}; 129};
130 130
131int cur_dance(qk_tap_dance_state_t *state); // prefer tap 131int cur_dance(tap_dance_state_t *state); // prefer tap
132int hold_cur_dance(qk_tap_dance_state_t *state); // prefer hold 132int hold_cur_dance(tap_dance_state_t *state); // prefer hold
133 133
134#endif // TAP_DANCE_ENABLE 134#endif // TAP_DANCE_ENABLE
diff --git a/users/jonavin/jonavin.c b/users/jonavin/jonavin.c
index f203bd77df..94173ac20e 100644
--- a/users/jonavin/jonavin.c
+++ b/users/jonavin/jonavin.c
@@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
22 22
23#ifdef TD_LSFT_CAPSLOCK_ENABLE 23#ifdef TD_LSFT_CAPSLOCK_ENABLE
24 // Tap once for shift, twice for Caps Lock but only if Win Key in not disabled 24 // Tap once for shift, twice for Caps Lock but only if Win Key in not disabled
25 void dance_LSFT_finished(qk_tap_dance_state_t *state, void *user_data) { 25 void dance_LSFT_finished(tap_dance_state_t *state, void *user_data) {
26 if (state->count == 1 || keymap_config.no_gui) { 26 if (state->count == 1 || keymap_config.no_gui) {
27 register_code16(KC_LSFT); 27 register_code16(KC_LSFT);
28 } else { 28 } else {
@@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
30 } 30 }
31 } 31 }
32 32
33 void dance_LSFT_reset(qk_tap_dance_state_t *state, void *user_data) { 33 void dance_LSFT_reset(tap_dance_state_t *state, void *user_data) {
34 if (state->count == 1 || keymap_config.no_gui) { 34 if (state->count == 1 || keymap_config.no_gui) {
35 unregister_code16(KC_LSFT); 35 unregister_code16(KC_LSFT);
36 } else { 36 } else {
@@ -38,7 +38,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
38 } 38 }
39 } 39 }
40 40
41 qk_tap_dance_action_t tap_dance_actions[] = { 41 tap_dance_action_t tap_dance_actions[] = {
42 // Tap once for shift, twice for Caps Lock 42 // Tap once for shift, twice for Caps Lock
43 [TD_LSFT_CAPSLOCK] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), 43 [TD_LSFT_CAPSLOCK] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
44 [TD_LSFT_CAPS_WIN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LSFT_finished, dance_LSFT_reset), 44 [TD_LSFT_CAPS_WIN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LSFT_finished, dance_LSFT_reset),
diff --git a/users/klackygears/tap_dances.c b/users/klackygears/tap_dances.c
index 9f706d2b7f..3749e0ed4e 100644
--- a/users/klackygears/tap_dances.c
+++ b/users/klackygears/tap_dances.c
@@ -1,7 +1,7 @@
1#include "tap_dances.h" 1#include "tap_dances.h"
2 2
3/* 3/*
4void macroTogKey(qk_tap_dance_state_t *state, void *user_data) { 4void macroTogKey(tap_dance_state_t *state, void *user_data) {
5 keyrecord_t kr; 5 keyrecord_t kr;
6 6
7 if (state->count == 1) 7 if (state->count == 1)
@@ -21,7 +21,7 @@ void macroTogKey(qk_tap_dance_state_t *state, void *user_data) {
21 } 21 }
22} 22}
23 23
24void macroTogKey2(qk_tap_dance_state_t *state, void *user_data) { 24void macroTogKey2(tap_dance_state_t *state, void *user_data) {
25 keyrecord_t kr; 25 keyrecord_t kr;
26 26
27 if (state->count == 1) 27 if (state->count == 1)
@@ -42,7 +42,7 @@ void macroTogKey2(qk_tap_dance_state_t *state, void *user_data) {
42} 42}
43*/ 43*/
44 44
45void pstinsrt(qk_tap_dance_state_t *state, void *user_data) { 45void pstinsrt(tap_dance_state_t *state, void *user_data) {
46 if (state->count > 1) { 46 if (state->count > 1) {
47 register_code(KC_LALT); 47 register_code(KC_LALT);
48 tap_code(KC_I); 48 tap_code(KC_I);
@@ -54,7 +54,7 @@ void pstinsrt(qk_tap_dance_state_t *state, void *user_data) {
54 reset_tap_dance(state); 54 reset_tap_dance(state);
55} 55}
56 56
57void ccopy(qk_tap_dance_state_t *state, void *user_data) { 57void ccopy(tap_dance_state_t *state, void *user_data) {
58 if (state->count > 1) { 58 if (state->count > 1) {
59 tap_code16(C(KC_X)); 59 tap_code16(C(KC_X));
60 60
@@ -65,7 +65,7 @@ void ccopy(qk_tap_dance_state_t *state, void *user_data) {
65 reset_tap_dance(state); 65 reset_tap_dance(state);
66} 66}
67 67
68void pstspecial(qk_tap_dance_state_t *state, void *user_data) { 68void pstspecial(tap_dance_state_t *state, void *user_data) {
69 if (state->count > 1) { 69 if (state->count > 1) {
70 register_code(KC_LALT); 70 register_code(KC_LALT);
71 tap_code(KC_E); 71 tap_code(KC_E);
@@ -82,7 +82,7 @@ void pstspecial(qk_tap_dance_state_t *state, void *user_data) {
82 reset_tap_dance(state); 82 reset_tap_dance(state);
83} 83}
84 84
85void deldel(qk_tap_dance_state_t *state, void *user_data) { 85void deldel(tap_dance_state_t *state, void *user_data) {
86 if (state->count > 1) { 86 if (state->count > 1) {
87 register_code(KC_LALT); 87 register_code(KC_LALT);
88 tap_code(KC_E); 88 tap_code(KC_E);
@@ -94,7 +94,7 @@ void deldel(qk_tap_dance_state_t *state, void *user_data) {
94 reset_tap_dance(state); 94 reset_tap_dance(state);
95} 95}
96 96
97void findreplace(qk_tap_dance_state_t *state, void *user_data) { 97void findreplace(tap_dance_state_t *state, void *user_data) {
98 if (state->count > 1) { 98 if (state->count > 1) {
99 tap_code16(C(KC_H)); 99 tap_code16(C(KC_H));
100 } else { 100 } else {
@@ -103,7 +103,7 @@ void findreplace(qk_tap_dance_state_t *state, void *user_data) {
103 reset_tap_dance(state); 103 reset_tap_dance(state);
104} 104}
105 105
106void cyclawin(qk_tap_dance_state_t *state, void *user_data) { 106void cyclawin(tap_dance_state_t *state, void *user_data) {
107 if (state->count > 1) { 107 if (state->count > 1) {
108 tap_code16(C(S(KC_F6))); 108 tap_code16(C(S(KC_F6)));
109 } else { 109 } else {
@@ -112,7 +112,7 @@ void cyclawin(qk_tap_dance_state_t *state, void *user_data) {
112 reset_tap_dance(state); 112 reset_tap_dance(state);
113} 113}
114 114
115void SCRNSNP(qk_tap_dance_state_t *state, void *user_data) { 115void SCRNSNP(tap_dance_state_t *state, void *user_data) {
116 if (state->count > 1) { 116 if (state->count > 1) {
117 tap_code16(A(KC_PSCR)); 117 tap_code16(A(KC_PSCR));
118 } else { 118 } else {
@@ -124,7 +124,7 @@ void SCRNSNP(qk_tap_dance_state_t *state, void *user_data) {
124 reset_tap_dance(state); 124 reset_tap_dance(state);
125} 125}
126 126
127void mcccpy(qk_tap_dance_state_t *state, void *user_data) { 127void mcccpy(tap_dance_state_t *state, void *user_data) {
128 if (state->count > 1) { 128 if (state->count > 1) {
129 tap_code16(G(KC_X)); 129 tap_code16(G(KC_X));
130 } else { 130 } else {
@@ -133,7 +133,7 @@ void mcccpy(qk_tap_dance_state_t *state, void *user_data) {
133 reset_tap_dance(state); 133 reset_tap_dance(state);
134} 134}
135 135
136void mcpstin(qk_tap_dance_state_t *state, void *user_data) { 136void mcpstin(tap_dance_state_t *state, void *user_data) {
137 if (state->count > 1) { 137 if (state->count > 1) {
138 tap_code16(G(KC_I)); 138 tap_code16(G(KC_I));
139 } else { 139 } else {
@@ -142,7 +142,7 @@ void mcpstin(qk_tap_dance_state_t *state, void *user_data) {
142 reset_tap_dance(state); 142 reset_tap_dance(state);
143} 143}
144 144
145void enttab(qk_tap_dance_state_t *state, void *user_data) { 145void enttab(tap_dance_state_t *state, void *user_data) {
146 if (state->count > 1) { 146 if (state->count > 1) {
147 tap_code(KC_ENT); 147 tap_code(KC_ENT);
148 } else { 148 } else {
@@ -151,7 +151,7 @@ void enttab(qk_tap_dance_state_t *state, void *user_data) {
151 reset_tap_dance(state); 151 reset_tap_dance(state);
152} 152}
153 153
154void rgb_toggle(qk_tap_dance_state_t *state, void *user_data) { 154void rgb_toggle(tap_dance_state_t *state, void *user_data) {
155#ifdef RGBLIGHT_ENABLE 155#ifdef RGBLIGHT_ENABLE
156 if (state->count == 1) { 156 if (state->count == 1) {
157 rgblight_step(); 157 rgblight_step();
@@ -162,7 +162,7 @@ void rgb_toggle(qk_tap_dance_state_t *state, void *user_data) {
162} 162}
163 163
164// Tap Dance Definitions 164// Tap Dance Definitions
165qk_tap_dance_action_t tap_dance_actions[] = { 165tap_dance_action_t tap_dance_actions[] = {
166 [TD_PSTI] = ACTION_TAP_DANCE_FN(pstinsrt), 166 [TD_PSTI] = ACTION_TAP_DANCE_FN(pstinsrt),
167 [TD_PTSP] = ACTION_TAP_DANCE_FN(pstspecial), 167 [TD_PTSP] = ACTION_TAP_DANCE_FN(pstspecial),
168 [TD_FNDR] = ACTION_TAP_DANCE_FN(findreplace), 168 [TD_FNDR] = ACTION_TAP_DANCE_FN(findreplace),
diff --git a/users/konstantin/tap_dance.c b/users/konstantin/tap_dance.c
index 57a29d98b8..38d00bf56c 100644
--- a/users/konstantin/tap_dance.c
+++ b/users/konstantin/tap_dance.c
@@ -19,11 +19,11 @@
19 19
20#define ACTION_TAP_DANCE_DOUBLE_MOD(mod1, mod2) { \ 20#define ACTION_TAP_DANCE_DOUBLE_MOD(mod1, mod2) { \
21 .fn = { td_double_mod_each, NULL, td_double_mod_reset }, \ 21 .fn = { td_double_mod_each, NULL, td_double_mod_reset }, \
22 .user_data = &(qk_tap_dance_pair_t){ mod1, mod2 }, \ 22 .user_data = &(tap_dance_pair_t){ mod1, mod2 }, \
23 } 23 }
24 24
25void td_double_mod_each(qk_tap_dance_state_t *state, void *user_data) { 25void td_double_mod_each(tap_dance_state_t *state, void *user_data) {
26 qk_tap_dance_pair_t *data = (qk_tap_dance_pair_t *)user_data; 26 tap_dance_pair_t *data = (tap_dance_pair_t *)user_data;
27 27
28 // Single tap → mod1, double tap → mod2, triple tap etc. → mod1+mod2 28 // Single tap → mod1, double tap → mod2, triple tap etc. → mod1+mod2
29 if (state->count == 1 || state->count == 3) { 29 if (state->count == 1 || state->count == 3) {
@@ -36,8 +36,8 @@ void td_double_mod_each(qk_tap_dance_state_t *state, void *user_data) {
36 state->weak_mods &= ~(MOD_BIT(data->kc1) | MOD_BIT(data->kc2)); 36 state->weak_mods &= ~(MOD_BIT(data->kc1) | MOD_BIT(data->kc2));
37} 37}
38 38
39void td_double_mod_reset(qk_tap_dance_state_t *state, void *user_data) { 39void td_double_mod_reset(tap_dance_state_t *state, void *user_data) {
40 qk_tap_dance_pair_t *data = (qk_tap_dance_pair_t *)user_data; 40 tap_dance_pair_t *data = (tap_dance_pair_t *)user_data;
41 41
42 if (state->count == 1 || state->count >= 3) { 42 if (state->count == 1 || state->count >= 3) {
43 unregister_code(data->kc1); 43 unregister_code(data->kc1);
@@ -49,11 +49,11 @@ void td_double_mod_reset(qk_tap_dance_state_t *state, void *user_data) {
49 49
50#define ACTION_TAP_DANCE_MOD_LAYER(mod, layer) { \ 50#define ACTION_TAP_DANCE_MOD_LAYER(mod, layer) { \
51 .fn = { td_mod_layer_each, NULL, td_mod_layer_reset }, \ 51 .fn = { td_mod_layer_each, NULL, td_mod_layer_reset }, \
52 .user_data = &(qk_tap_dance_dual_role_t){ mod, layer }, \ 52 .user_data = &(tap_dance_dual_role_t){ mod, layer }, \
53 } 53 }
54 54
55void td_mod_layer_each(qk_tap_dance_state_t *state, void *user_data) { 55void td_mod_layer_each(tap_dance_state_t *state, void *user_data) {
56 qk_tap_dance_dual_role_t *data = (qk_tap_dance_dual_role_t *)user_data; 56 tap_dance_dual_role_t *data = (tap_dance_dual_role_t *)user_data;
57 57
58 // Single tap → mod, double tap → layer, triple tap etc. → mod+layer 58 // Single tap → mod, double tap → layer, triple tap etc. → mod+layer
59 if (state->count == 1 || state->count == 3) { 59 if (state->count == 1 || state->count == 3) {
@@ -66,8 +66,8 @@ void td_mod_layer_each(qk_tap_dance_state_t *state, void *user_data) {
66 } 66 }
67} 67}
68 68
69void td_mod_layer_reset(qk_tap_dance_state_t *state, void *user_data) { 69void td_mod_layer_reset(tap_dance_state_t *state, void *user_data) {
70 qk_tap_dance_dual_role_t *data = (qk_tap_dance_dual_role_t *)user_data; 70 tap_dance_dual_role_t *data = (tap_dance_dual_role_t *)user_data;
71 71
72 if (state->count == 1 || state->count >= 3) { 72 if (state->count == 1 || state->count >= 3) {
73 unregister_code(data->kc); 73 unregister_code(data->kc);
@@ -79,7 +79,7 @@ void td_mod_layer_reset(qk_tap_dance_state_t *state, void *user_data) {
79 79
80#define ACTION_TAP_DANCE_LAYER_MOD(layer, mod) { \ 80#define ACTION_TAP_DANCE_LAYER_MOD(layer, mod) { \
81 .fn = { td_layer_mod_each, NULL, td_layer_mod_reset }, \ 81 .fn = { td_layer_mod_each, NULL, td_layer_mod_reset }, \
82 .user_data = &(qk_tap_dance_layer_mod_t){ layer, mod, 0, 0 }, \ 82 .user_data = &(tap_dance_layer_mod_t){ layer, mod, 0, 0 }, \
83 } 83 }
84 84
85typedef struct { 85typedef struct {
@@ -87,10 +87,10 @@ typedef struct {
87 uint16_t kc; 87 uint16_t kc;
88 bool layer_on; // Layer state when tap dance started 88 bool layer_on; // Layer state when tap dance started
89 bool started; 89 bool started;
90} qk_tap_dance_layer_mod_t; 90} tap_dance_layer_mod_t;
91 91
92void td_layer_mod_each(qk_tap_dance_state_t *state, void *user_data) { 92void td_layer_mod_each(tap_dance_state_t *state, void *user_data) {
93 qk_tap_dance_layer_mod_t *data = (qk_tap_dance_layer_mod_t *)user_data; 93 tap_dance_layer_mod_t *data = (tap_dance_layer_mod_t *)user_data;
94 if (!data->started) { 94 if (!data->started) {
95 data->layer_on = IS_LAYER_ON(data->layer); 95 data->layer_on = IS_LAYER_ON(data->layer);
96 data->started = true; 96 data->started = true;
@@ -107,8 +107,8 @@ void td_layer_mod_each(qk_tap_dance_state_t *state, void *user_data) {
107 } 107 }
108} 108}
109 109
110void td_layer_mod_reset(qk_tap_dance_state_t *state, void *user_data) { 110void td_layer_mod_reset(tap_dance_state_t *state, void *user_data) {
111 qk_tap_dance_layer_mod_t *data = (qk_tap_dance_layer_mod_t *)user_data; 111 tap_dance_layer_mod_t *data = (tap_dance_layer_mod_t *)user_data;
112 112
113 if ((state->count == 1 || state->count >= 3) && !data->layer_on) { 113 if ((state->count == 1 || state->count >= 3) && !data->layer_on) {
114 layer_off(data->layer); 114 layer_off(data->layer);
@@ -120,7 +120,7 @@ void td_layer_mod_reset(qk_tap_dance_state_t *state, void *user_data) {
120 data->started = false; 120 data->started = false;
121} 121}
122 122
123qk_tap_dance_action_t tap_dance_actions[] = { 123tap_dance_action_t tap_dance_actions[] = {
124 [TD_DST_A_R] = ACTION_TAP_DANCE_DOUBLE(DST_ADD, DST_REM), 124 [TD_DST_A_R] = ACTION_TAP_DANCE_DOUBLE(DST_ADD, DST_REM),
125 125
126 [TD_RAL_RGU] = ACTION_TAP_DANCE_DOUBLE_MOD(KC_RALT, KC_RGUI), 126 [TD_RAL_RGU] = ACTION_TAP_DANCE_DOUBLE_MOD(KC_RALT, KC_RGUI),
diff --git a/users/kuatsure/kuatsure.c b/users/kuatsure/kuatsure.c
index 84afcc9623..bfdbdd4035 100644
--- a/users/kuatsure/kuatsure.c
+++ b/users/kuatsure/kuatsure.c
@@ -1,7 +1,7 @@
1#include "kuatsure.h" 1#include "kuatsure.h"
2#include "version.h" 2#include "version.h"
3 3
4qk_tap_dance_action_t tap_dance_actions[] = { 4tap_dance_action_t tap_dance_actions[] = {
5 [TD_LBRC] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LT), 5 [TD_LBRC] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, KC_LT),
6 [TD_RBRC] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_GT), 6 [TD_RBRC] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, KC_GT),
7 [TD_SLSH] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, KC_BSLS), 7 [TD_SLSH] = ACTION_TAP_DANCE_DOUBLE(KC_SLSH, KC_BSLS),
diff --git a/users/kuchosauronad0/tap_dances.c b/users/kuchosauronad0/tap_dances.c
index 7bdd3d3375..40d1c245e3 100644
--- a/users/kuchosauronad0/tap_dances.c
+++ b/users/kuchosauronad0/tap_dances.c
@@ -1,5 +1,5 @@
1#include "tap_dances.h" 1#include "tap_dances.h"
2void td_parenthesis (qk_tap_dance_state_t *state, void *user_data) { 2void td_parenthesis (tap_dance_state_t *state, void *user_data) {
3 if (state->count == 1) { 3 if (state->count == 1) {
4// SEND_STRING ("\("); 4// SEND_STRING ("\(");
5 tap_code(KC_QUOT); 5 tap_code(KC_QUOT);
@@ -23,7 +23,7 @@ void td_parenthesis (qk_tap_dance_state_t *state, void *user_data) {
23 } 23 }
24} 24}
25 25
26void safe_reset(qk_tap_dance_state_t *state, void *user_data) { 26void safe_reset(tap_dance_state_t *state, void *user_data) {
27 if (state->count >= 3) { 27 if (state->count >= 3) {
28 // Reset the keyboard if you tap the key more than three times 28 // Reset the keyboard if you tap the key more than three times
29 reset_keyboard(); 29 reset_keyboard();
@@ -31,7 +31,7 @@ void safe_reset(qk_tap_dance_state_t *state, void *user_data) {
31 } 31 }
32} 32}
33 33
34qk_tap_dance_action_t tap_dance_actions[] = { 34tap_dance_action_t tap_dance_actions[] = {
35 [TD_RESET] = ACTION_TAP_DANCE_FN(safe_reset), 35 [TD_RESET] = ACTION_TAP_DANCE_FN(safe_reset),
36 [TD_NUM1] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_4), 36 [TD_NUM1] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_4),
37 [TD_NUM2] = ACTION_TAP_DANCE_DOUBLE(KC_2, KC_5), 37 [TD_NUM2] = ACTION_TAP_DANCE_DOUBLE(KC_2, KC_5),
diff --git a/users/kuchosauronad0/tap_dances.h b/users/kuchosauronad0/tap_dances.h
index 19da8d69dc..818bbd7b93 100644
--- a/users/kuchosauronad0/tap_dances.h
+++ b/users/kuchosauronad0/tap_dances.h
@@ -23,4 +23,4 @@ enum {
23 TD_ABR // single double angle brackets 23 TD_ABR // single double angle brackets
24}; 24};
25#endif // TAP_DANCE_ENABLE 25#endif // TAP_DANCE_ENABLE
26void td_parenthesis (qk_tap_dance_state_t *state, void *user_data); 26void td_parenthesis (tap_dance_state_t *state, void *user_data);
diff --git a/users/losinggeneration/losinggeneration-keymap.h b/users/losinggeneration/losinggeneration-keymap.h
index bb1c6cf697..14e25adecc 100644
--- a/users/losinggeneration/losinggeneration-keymap.h
+++ b/users/losinggeneration/losinggeneration-keymap.h
@@ -17,7 +17,7 @@ enum tap_dance_keycodes {
17 Used to indicate a CTRL should be pressed on one press, or CTRL+ALT on 17 Used to indicate a CTRL should be pressed on one press, or CTRL+ALT on
18 a double tap 18 a double tap
19*/ 19*/
20void dance_ctl_ctlalt_each(qk_tap_dance_state_t *state, void *user_data) { 20void dance_ctl_ctlalt_each(tap_dance_state_t *state, void *user_data) {
21 register_code(KC_LCTL); 21 register_code(KC_LCTL);
22 if(state->count > 1) { 22 if(state->count > 1) {
23 register_code(KC_LALT); 23 register_code(KC_LALT);
@@ -25,7 +25,7 @@ void dance_ctl_ctlalt_each(qk_tap_dance_state_t *state, void *user_data) {
25} 25}
26 26
27/* Used to release CTRL or the double tapped variant CTRL+ALT */ 27/* Used to release CTRL or the double tapped variant CTRL+ALT */
28void dance_ctl_ctlalt_reset(qk_tap_dance_state_t *state, void *user_data) { 28void dance_ctl_ctlalt_reset(tap_dance_state_t *state, void *user_data) {
29 unregister_code(KC_LCTL); 29 unregister_code(KC_LCTL);
30 if(state->count > 1) { 30 if(state->count > 1) {
31 unregister_code(KC_LALT); 31 unregister_code(KC_LALT);
@@ -37,7 +37,7 @@ void dance_ctl_ctlalt_reset(qk_tap_dance_state_t *state, void *user_data) {
37 Each is used to make sure ADJUST activates as soon as it's pressed the first 37 Each is used to make sure ADJUST activates as soon as it's pressed the first
38 time. 38 time.
39*/ 39*/
40void dance_adj_each(qk_tap_dance_state_t *state, void *user_data) { 40void dance_adj_each(tap_dance_state_t *state, void *user_data) {
41 if(state->count == 1) { 41 if(state->count == 1) {
42 layer_on(_ADJUST); 42 layer_on(_ADJUST);
43 } else { 43 } else {
@@ -46,7 +46,7 @@ void dance_adj_each(qk_tap_dance_state_t *state, void *user_data) {
46} 46}
47 47
48/* Set NUMPAD layer on second tap and MOUSE layer on 3rd */ 48/* Set NUMPAD layer on second tap and MOUSE layer on 3rd */
49void dance_adj_finish(qk_tap_dance_state_t *state, void *user_data) { 49void dance_adj_finish(tap_dance_state_t *state, void *user_data) {
50 switch(state->count) { 50 switch(state->count) {
51 case 1: break; 51 case 1: break;
52 case 2: 52 case 2:
@@ -62,7 +62,7 @@ void dance_adj_finish(qk_tap_dance_state_t *state, void *user_data) {
62} 62}
63 63
64/* Turn off any layer that may have been tapped on */ 64/* Turn off any layer that may have been tapped on */
65void dance_adj_reset(qk_tap_dance_state_t *state, void *user_data) { 65void dance_adj_reset(tap_dance_state_t *state, void *user_data) {
66 switch(state->count) { 66 switch(state->count) {
67 case 1: 67 case 1:
68 layer_off(_ADJUST); 68 layer_off(_ADJUST);
@@ -76,7 +76,7 @@ void dance_adj_reset(qk_tap_dance_state_t *state, void *user_data) {
76 } 76 }
77} 77}
78 78
79qk_tap_dance_action_t tap_dance_actions[] = { 79tap_dance_action_t tap_dance_actions[] = {
80 [TD_CTL_CTLALT] = ACTION_TAP_DANCE_FN_ADVANCED(dance_ctl_ctlalt_each, NULL, dance_ctl_ctlalt_reset), 80 [TD_CTL_CTLALT] = ACTION_TAP_DANCE_FN_ADVANCED(dance_ctl_ctlalt_each, NULL, dance_ctl_ctlalt_reset),
81 [TD_LGUI_RGUI] = ACTION_TAP_DANCE_DOUBLE(KC_LGUI, KC_RGUI), 81 [TD_LGUI_RGUI] = ACTION_TAP_DANCE_DOUBLE(KC_LGUI, KC_RGUI),
82 [TD_LALT_RALT] = ACTION_TAP_DANCE_DOUBLE(KC_LALT, KC_RALT), 82 [TD_LALT_RALT] = ACTION_TAP_DANCE_DOUBLE(KC_LALT, KC_RALT),
diff --git a/users/manna-harbour_miryoku/manna-harbour_miryoku.c b/users/manna-harbour_miryoku/manna-harbour_miryoku.c
index 5de5d9b129..4662bd8f42 100644
--- a/users/manna-harbour_miryoku/manna-harbour_miryoku.c
+++ b/users/manna-harbour_miryoku/manna-harbour_miryoku.c
@@ -17,14 +17,14 @@ MIRYOKU_LAYER_LIST
17#undef MIRYOKU_X 17#undef MIRYOKU_X
18}; 18};
19 19
20void u_td_fn_boot(qk_tap_dance_state_t *state, void *user_data) { \ 20void u_td_fn_boot(tap_dance_state_t *state, void *user_data) { \
21 if (state->count == 2) { 21 if (state->count == 2) {
22 reset_keyboard(); 22 reset_keyboard();
23 } 23 }
24} 24}
25 25
26#define MIRYOKU_X(LAYER, STRING) \ 26#define MIRYOKU_X(LAYER, STRING) \
27void u_td_fn_U_##LAYER(qk_tap_dance_state_t *state, void *user_data) { \ 27void u_td_fn_U_##LAYER(tap_dance_state_t *state, void *user_data) { \
28 if (state->count == 2) { \ 28 if (state->count == 2) { \
29 default_layer_set((layer_state_t)1 << U_##LAYER); \ 29 default_layer_set((layer_state_t)1 << U_##LAYER); \
30 } \ 30 } \
@@ -32,7 +32,7 @@ void u_td_fn_U_##LAYER(qk_tap_dance_state_t *state, void *user_data) { \
32MIRYOKU_LAYER_LIST 32MIRYOKU_LAYER_LIST
33#undef MIRYOKU_X 33#undef MIRYOKU_X
34 34
35qk_tap_dance_action_t tap_dance_actions[] = { 35tap_dance_action_t tap_dance_actions[] = {
36 [U_TD_BOOT] = ACTION_TAP_DANCE_FN(u_td_fn_boot), 36 [U_TD_BOOT] = ACTION_TAP_DANCE_FN(u_td_fn_boot),
37#define MIRYOKU_X(LAYER, STRING) [U_TD_U_##LAYER] = ACTION_TAP_DANCE_FN(u_td_fn_U_##LAYER), 37#define MIRYOKU_X(LAYER, STRING) [U_TD_U_##LAYER] = ACTION_TAP_DANCE_FN(u_td_fn_U_##LAYER),
38MIRYOKU_LAYER_LIST 38MIRYOKU_LAYER_LIST
diff --git a/users/mnil/mnil.c b/users/mnil/mnil.c
index 00da6086ef..eb3b4a1c9d 100644
--- a/users/mnil/mnil.c
+++ b/users/mnil/mnil.c
@@ -54,7 +54,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
54 54
55// Tap Dance 55// Tap Dance
56// Determine the current tap dance state 56// Determine the current tap dance state
57int cur_dance(qk_tap_dance_state_t *state) { 57int cur_dance(tap_dance_state_t *state) {
58 if (state->count == 1) { 58 if (state->count == 1) {
59 if (state->interrupted || !state->pressed) 59 if (state->interrupted || !state->pressed)
60 return SINGLE_TAP; 60 return SINGLE_TAP;
@@ -79,7 +79,7 @@ int cur_dance(qk_tap_dance_state_t *state) {
79 79
80static tap ae_tap_state = {.is_press_action = true, .state = 0}; 80static tap ae_tap_state = {.is_press_action = true, .state = 0};
81 81
82void ae_finished(qk_tap_dance_state_t *state, void *user_data) { 82void ae_finished(tap_dance_state_t *state, void *user_data) {
83 ae_tap_state.state = cur_dance(state); 83 ae_tap_state.state = cur_dance(state);
84 switch (ae_tap_state.state) { 84 switch (ae_tap_state.state) {
85 case SINGLE_TAP: 85 case SINGLE_TAP:
@@ -95,7 +95,7 @@ void ae_finished(qk_tap_dance_state_t *state, void *user_data) {
95 } 95 }
96} 96}
97 97
98void ae_reset(qk_tap_dance_state_t *state, void *user_data) { 98void ae_reset(tap_dance_state_t *state, void *user_data) {
99 switch (ae_tap_state.state) { 99 switch (ae_tap_state.state) {
100 case SINGLE_TAP: 100 case SINGLE_TAP:
101 unregister_code(KC_A); 101 unregister_code(KC_A);
@@ -109,7 +109,7 @@ void ae_reset(qk_tap_dance_state_t *state, void *user_data) {
109 109
110static tap aa_tap_state = {.is_press_action = true, .state = 0}; 110static tap aa_tap_state = {.is_press_action = true, .state = 0};
111 111
112void aa_finished(qk_tap_dance_state_t *state, void *user_data) { 112void aa_finished(tap_dance_state_t *state, void *user_data) {
113 aa_tap_state.state = cur_dance(state); 113 aa_tap_state.state = cur_dance(state);
114 switch (aa_tap_state.state) { 114 switch (aa_tap_state.state) {
115 case SINGLE_TAP: 115 case SINGLE_TAP:
@@ -126,7 +126,7 @@ void aa_finished(qk_tap_dance_state_t *state, void *user_data) {
126 } 126 }
127} 127}
128 128
129void aa_reset(qk_tap_dance_state_t *state, void *user_data) { 129void aa_reset(tap_dance_state_t *state, void *user_data) {
130 switch (aa_tap_state.state) { 130 switch (aa_tap_state.state) {
131 case SINGLE_TAP: 131 case SINGLE_TAP:
132 unregister_code(SE_ODIA); 132 unregister_code(SE_ODIA);
@@ -139,7 +139,7 @@ void aa_reset(qk_tap_dance_state_t *state, void *user_data) {
139} 139}
140 140
141// clang-format off 141// clang-format off
142qk_tap_dance_action_t tap_dance_actions[] = { 142tap_dance_action_t tap_dance_actions[] = {
143 [AAE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ae_finished, ae_reset), 143 [AAE] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ae_finished, ae_reset),
144 [OAA] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, aa_finished, aa_reset) 144 [OAA] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, aa_finished, aa_reset)
145}; 145};
diff --git a/users/muppetjones/features/dancelayers.c b/users/muppetjones/features/dancelayers.c
index e7e5f2a6f2..3744950a4f 100644
--- a/users/muppetjones/features/dancelayers.c
+++ b/users/muppetjones/features/dancelayers.c
@@ -27,7 +27,7 @@ static td_tap_t lyr_tap_state = {.is_press_action = true, .state = TD_NONE};
27 * @param A tap dance state struct. 27 * @param A tap dance state struct.
28 * @return A struct. 28 * @return A struct.
29 */ 29 */
30td_state_t cur_dance(qk_tap_dance_state_t *state) { 30td_state_t cur_dance(tap_dance_state_t *state) {
31 switch (state->count) { 31 switch (state->count) {
32 case 1: 32 case 1:
33 if (!state->pressed) 33 if (!state->pressed)
@@ -49,7 +49,7 @@ td_state_t cur_dance(qk_tap_dance_state_t *state) {
49} 49}
50 50
51// Functions that control what our tap dance key does 51// Functions that control what our tap dance key does
52__attribute__((weak)) void td_layer_finished(qk_tap_dance_state_t *state, void *user_data) { 52__attribute__((weak)) void td_layer_finished(tap_dance_state_t *state, void *user_data) {
53 lyr_tap_state.state = cur_dance(state); 53 lyr_tap_state.state = cur_dance(state);
54 switch (lyr_tap_state.state) { 54 switch (lyr_tap_state.state) {
55 case TD_1X_TAP: 55 case TD_1X_TAP:
@@ -87,7 +87,7 @@ __attribute__((weak)) void td_layer_finished(qk_tap_dance_state_t *state, void *
87 } 87 }
88} 88}
89 89
90__attribute__((weak)) void td_layer_reset(qk_tap_dance_state_t *state, void *user_data) { 90__attribute__((weak)) void td_layer_reset(tap_dance_state_t *state, void *user_data) {
91 // If the key was held down and now is released then switch off the layer 91 // If the key was held down and now is released then switch off the layer
92 if (lyr_tap_state.state == TD_1X_HOLD) { 92 if (lyr_tap_state.state == TD_1X_HOLD) {
93 layer_off(_ADJUST); 93 layer_off(_ADJUST);
diff --git a/users/muppetjones/features/dancelayers.h b/users/muppetjones/features/dancelayers.h
index 23defcca92..5f7440f48b 100644
--- a/users/muppetjones/features/dancelayers.h
+++ b/users/muppetjones/features/dancelayers.h
@@ -51,7 +51,7 @@ typedef struct {
51 * @param A tap dance state struct. 51 * @param A tap dance state struct.
52 * @return A struct. 52 * @return A struct.
53 */ 53 */
54td_state_t cur_dance(qk_tap_dance_state_t *state); 54td_state_t cur_dance(tap_dance_state_t *state);
55 55
56// Functions associated with individual tap dances 56// Functions associated with individual tap dances
57 57
@@ -63,7 +63,7 @@ td_state_t cur_dance(qk_tap_dance_state_t *state);
63 * @param user_data Pointer to user data. 63 * @param user_data Pointer to user data.
64 * @return None. 64 * @return None.
65 */ 65 */
66void td_layer_finished(qk_tap_dance_state_t *state, void *user_data); 66void td_layer_finished(tap_dance_state_t *state, void *user_data);
67 67
68/* @brief Reset tap dance actions. 68/* @brief Reset tap dance actions.
69 * 69 *
@@ -73,10 +73,10 @@ void td_layer_finished(qk_tap_dance_state_t *state, void *user_data);
73 * @param user_data Pointer to user data. 73 * @param user_data Pointer to user data.
74 * @return None. 74 * @return None.
75 */ 75 */
76void td_layer_reset(qk_tap_dance_state_t *state, void *user_data); 76void td_layer_reset(tap_dance_state_t *state, void *user_data);
77 77
78/* Define tap dance actions. 78/* Define tap dance actions.
79 */ 79 */
80__attribute__((weak)) 80__attribute__((weak))
81qk_tap_dance_action_t tap_dance_actions[1] = {[TD_LAYERS] = ACTION_TAP_DANCE_FN_ADVANCED_TIME(NULL, td_layer_finished, td_layer_reset, 275)}; 81tap_dance_action_t tap_dance_actions[1] = {[TD_LAYERS] = ACTION_TAP_DANCE_FN_ADVANCED_TIME(NULL, td_layer_finished, td_layer_reset, 275)};
82#endif 82#endif
diff --git a/users/ninjonas/tap_dances.c b/users/ninjonas/tap_dances.c
index 3e4cec9133..c03433e2d6 100644
--- a/users/ninjonas/tap_dances.c
+++ b/users/ninjonas/tap_dances.c
@@ -1,7 +1,7 @@
1#include "ninjonas.h" 1#include "ninjonas.h"
2 2
3//// BEGIN: Advanced Tap Dances 3//// BEGIN: Advanced Tap Dances
4int cur_dance (qk_tap_dance_state_t *state) { 4int cur_dance (tap_dance_state_t *state) {
5 if (state->count == 1) { 5 if (state->count == 1) {
6 if (state->interrupted || !state->pressed) return SINGLE_TAP; 6 if (state->interrupted || !state->pressed) return SINGLE_TAP;
7 //key has not been interrupted, but they key is still held. Means you want to send a 'HOLD'. 7 //key has not been interrupted, but they key is still held. Means you want to send a 'HOLD'.
@@ -34,7 +34,7 @@ static tap copy_paste_app_tap_state = {
34 .state = 0 34 .state = 0
35}; 35};
36 36
37void copy_paste_app_finished (qk_tap_dance_state_t *state, void *user_data) { 37void copy_paste_app_finished (tap_dance_state_t *state, void *user_data) {
38 copy_paste_app_tap_state.state = cur_dance(state); 38 copy_paste_app_tap_state.state = cur_dance(state);
39 switch (copy_paste_app_tap_state.state) { 39 switch (copy_paste_app_tap_state.state) {
40 case SINGLE_TAP: 40 case SINGLE_TAP:
@@ -56,7 +56,7 @@ void copy_paste_app_finished (qk_tap_dance_state_t *state, void *user_data) {
56 } 56 }
57} 57}
58 58
59void copy_paste_app_reset (qk_tap_dance_state_t *state, void *user_data) { 59void copy_paste_app_reset (tap_dance_state_t *state, void *user_data) {
60 copy_paste_app_tap_state.state = 0; 60 copy_paste_app_tap_state.state = 0;
61} 61}
62// END: Copy, Paste, Apps 62// END: Copy, Paste, Apps
@@ -67,7 +67,7 @@ static tap y_numpad_tap_state = {
67 .state = 0 67 .state = 0
68}; 68};
69 69
70void y_numpad_finished (qk_tap_dance_state_t *state, void *user_data) { 70void y_numpad_finished (tap_dance_state_t *state, void *user_data) {
71 y_numpad_tap_state.state = cur_dance(state); 71 y_numpad_tap_state.state = cur_dance(state);
72 switch (y_numpad_tap_state.state) { 72 switch (y_numpad_tap_state.state) {
73 case SINGLE_TAP: 73 case SINGLE_TAP:
@@ -86,7 +86,7 @@ void y_numpad_finished (qk_tap_dance_state_t *state, void *user_data) {
86 } 86 }
87} 87}
88 88
89void y_numpad_reset (qk_tap_dance_state_t *state, void *user_data) { 89void y_numpad_reset (tap_dance_state_t *state, void *user_data) {
90 switch (y_numpad_tap_state.state) { 90 switch (y_numpad_tap_state.state) {
91 case SINGLE_HOLD: 91 case SINGLE_HOLD:
92 unregister_code16(KC_Y); 92 unregister_code16(KC_Y);
@@ -98,7 +98,7 @@ void y_numpad_reset (qk_tap_dance_state_t *state, void *user_data) {
98 98
99//// END: Advanced Tap Dances 99//// END: Advanced Tap Dances
100 100
101qk_tap_dance_action_t tap_dance_actions[] = { 101tap_dance_action_t tap_dance_actions[] = {
102 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS), 102 [TD_ESC_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_CAPS),
103 [TD_LBRC_BACK] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, LGUI(KC_LBRC)), 103 [TD_LBRC_BACK] = ACTION_TAP_DANCE_DOUBLE(KC_LBRC, LGUI(KC_LBRC)),
104 [TD_RBRC_FWD] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, LGUI(KC_RBRC)), 104 [TD_RBRC_FWD] = ACTION_TAP_DANCE_DOUBLE(KC_RBRC, LGUI(KC_RBRC)),
diff --git a/users/nstickney/nstickney.c b/users/nstickney/nstickney.c
index 94453ec340..b056e1cbaf 100644
--- a/users/nstickney/nstickney.c
+++ b/users/nstickney/nstickney.c
@@ -16,7 +16,7 @@
16#include "nstickney.h" 16#include "nstickney.h"
17 17
18// Tap Dancing 18// Tap Dancing
19void dance_layer(qk_tap_dance_state_t *state, void *user_data) { 19void dance_layer(tap_dance_state_t *state, void *user_data) {
20 switch (state->count) { 20 switch (state->count) {
21 case 1: 21 case 1:
22 tap_code(KC_APP); 22 tap_code(KC_APP);
@@ -32,7 +32,7 @@ void dance_layer(qk_tap_dance_state_t *state, void *user_data) {
32 } 32 }
33}; 33};
34 34
35void dance_lock_finished(qk_tap_dance_state_t *state, void *user_data) { 35void dance_lock_finished(tap_dance_state_t *state, void *user_data) {
36 switch (state->count) { 36 switch (state->count) {
37 case 1: 37 case 1:
38 register_code(KC_LGUI); 38 register_code(KC_LGUI);
@@ -51,7 +51,7 @@ void dance_lock_finished(qk_tap_dance_state_t *state, void *user_data) {
51 } 51 }
52}; 52};
53 53
54void dance_lock_reset(qk_tap_dance_state_t *state, void *user_data) { 54void dance_lock_reset(tap_dance_state_t *state, void *user_data) {
55 switch (state->count) { 55 switch (state->count) {
56 case 1: 56 case 1:
57 unregister_code(KC_LGUI); 57 unregister_code(KC_LGUI);
@@ -70,7 +70,7 @@ void dance_lock_reset(qk_tap_dance_state_t *state, void *user_data) {
70 } 70 }
71}; 71};
72 72
73qk_tap_dance_action_t tap_dance_actions[] = { 73tap_dance_action_t tap_dance_actions[] = {
74 [LOCKS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_lock_finished, dance_lock_reset), 74 [LOCKS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_lock_finished, dance_lock_reset),
75 [LAYERS] = ACTION_TAP_DANCE_FN(dance_layer) 75 [LAYERS] = ACTION_TAP_DANCE_FN(dance_layer)
76}; 76};
diff --git a/users/pvinis/pvinis.c b/users/pvinis/pvinis.c
index 96b01bb461..f3263f9bd5 100644
--- a/users/pvinis/pvinis.c
+++ b/users/pvinis/pvinis.c
@@ -75,7 +75,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
75} 75}
76 76
77#ifdef TAP_DANCE_ENABLE 77#ifdef TAP_DANCE_ENABLE
78qk_tap_dance_action_t tap_dance_actions[] = {}; 78tap_dance_action_t tap_dance_actions[] = {};
79#endif 79#endif
80 80
81void keyboard_post_init_rgb_light(void) { 81void keyboard_post_init_rgb_light(void) {
diff --git a/users/riblee/riblee.c b/users/riblee/riblee.c
index 937e603b7a..4be43ba82c 100644
--- a/users/riblee/riblee.c
+++ b/users/riblee/riblee.c
@@ -18,7 +18,7 @@
18#include <string.h> 18#include <string.h>
19 19
20// Tap Dance functions 20// Tap Dance functions
21void dance_key_a (qk_tap_dance_state_t *state, void *user_data) { 21void dance_key_a (tap_dance_state_t *state, void *user_data) {
22 if (state->count == 1) { 22 if (state->count == 1) {
23 SEND_STRING("a"); 23 SEND_STRING("a");
24 reset_tap_dance(state); 24 reset_tap_dance(state);
@@ -33,7 +33,7 @@ void dance_key_a (qk_tap_dance_state_t *state, void *user_data) {
33 } 33 }
34} 34}
35 35
36void dance_key_e (qk_tap_dance_state_t *state, void *user_data) { 36void dance_key_e (tap_dance_state_t *state, void *user_data) {
37 if (state->count == 1) { 37 if (state->count == 1) {
38 SEND_STRING("e"); 38 SEND_STRING("e");
39 reset_tap_dance(state); 39 reset_tap_dance(state);
@@ -48,7 +48,7 @@ void dance_key_e (qk_tap_dance_state_t *state, void *user_data) {
48 } 48 }
49} 49}
50 50
51void dance_key_i (qk_tap_dance_state_t *state, void *user_data) { 51void dance_key_i (tap_dance_state_t *state, void *user_data) {
52 if (state->count == 1) { 52 if (state->count == 1) {
53 SEND_STRING("i"); 53 SEND_STRING("i");
54 reset_tap_dance(state); 54 reset_tap_dance(state);
@@ -63,7 +63,7 @@ void dance_key_i (qk_tap_dance_state_t *state, void *user_data) {
63 } 63 }
64} 64}
65 65
66void dance_key_o (qk_tap_dance_state_t *state, void *user_data) { 66void dance_key_o (tap_dance_state_t *state, void *user_data) {
67 if (state->count == 1) { 67 if (state->count == 1) {
68 SEND_STRING("o"); 68 SEND_STRING("o");
69 reset_tap_dance(state); 69 reset_tap_dance(state);
@@ -94,7 +94,7 @@ void dance_key_o (qk_tap_dance_state_t *state, void *user_data) {
94 } 94 }
95} 95}
96 96
97void dance_key_u (qk_tap_dance_state_t *state, void *user_data) { 97void dance_key_u (tap_dance_state_t *state, void *user_data) {
98 if (state->count == 1) { 98 if (state->count == 1) {
99 SEND_STRING("u"); 99 SEND_STRING("u");
100 reset_tap_dance(state); 100 reset_tap_dance(state);
diff --git a/users/riblee/riblee.h b/users/riblee/riblee.h
index 786e4c31ab..910c57db69 100644
--- a/users/riblee/riblee.h
+++ b/users/riblee/riblee.h
@@ -49,11 +49,11 @@ enum {
49 TD_U, 49 TD_U,
50}; 50};
51 51
52void dance_key_a (qk_tap_dance_state_t *, void *); 52void dance_key_a (tap_dance_state_t *, void *);
53void dance_key_e (qk_tap_dance_state_t *, void *); 53void dance_key_e (tap_dance_state_t *, void *);
54void dance_key_i (qk_tap_dance_state_t *, void *); 54void dance_key_i (tap_dance_state_t *, void *);
55void dance_key_o (qk_tap_dance_state_t *, void *); 55void dance_key_o (tap_dance_state_t *, void *);
56void dance_key_u (qk_tap_dance_state_t *, void *); 56void dance_key_u (tap_dance_state_t *, void *);
57 57
58layer_state_t layer_state_set_user(layer_state_t); 58layer_state_t layer_state_set_user(layer_state_t);
59bool process_record_user(uint16_t keycode, keyrecord_t *record); \ No newline at end of file 59bool process_record_user(uint16_t keycode, keyrecord_t *record); \ No newline at end of file
diff --git a/users/ridingqwerty/tapdances.c b/users/ridingqwerty/tapdances.c
index 644166cb45..0fdd941637 100644
--- a/users/ridingqwerty/tapdances.c
+++ b/users/ridingqwerty/tapdances.c
@@ -1,13 +1,13 @@
1#include "ridingqwerty.h" 1#include "ridingqwerty.h"
2#include "tapdances.h" 2#include "tapdances.h"
3 3
4void braces_finished (qk_tap_dance_state_t *state, void *user_data) { 4void braces_finished (tap_dance_state_t *state, void *user_data) {
5 if ((state->count == 1) || (state->count == 3)) { 5 if ((state->count == 1) || (state->count == 3)) {
6 register_code(KC_LSFT); 6 register_code(KC_LSFT);
7 } 7 }
8} 8}
9 9
10void braces_reset (qk_tap_dance_state_t *state, void *user_data) { 10void braces_reset (tap_dance_state_t *state, void *user_data) {
11 // two or three taps for "[]"/"{}" 11 // two or three taps for "[]"/"{}"
12 if ((state->count == 2) || (state->count == 3)) { 12 if ((state->count == 2) || (state->count == 3)) {
13 tap_code(KC_LBRC); 13 tap_code(KC_LBRC);
@@ -28,6 +28,6 @@ void braces_reset (qk_tap_dance_state_t *state, void *user_data) {
28 } 28 }
29} 29}
30 30
31qk_tap_dance_action_t tap_dance_actions[] = { 31tap_dance_action_t tap_dance_actions[] = {
32 [TD_BRACES] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, braces_finished, braces_reset) 32 [TD_BRACES] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, braces_finished, braces_reset)
33}; 33};
diff --git a/users/rmeli/keyrecords/tap_dances.c b/users/rmeli/keyrecords/tap_dances.c
index 3b38bf4a33..4e7ac31962 100644
--- a/users/rmeli/keyrecords/tap_dances.c
+++ b/users/rmeli/keyrecords/tap_dances.c
@@ -23,7 +23,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
23 23
24// Tap dances definitions 24// Tap dances definitions
25// Need to needs to be defined in a .c file to avoid a linker error (multiple definitions) 25// Need to needs to be defined in a .c file to avoid a linker error (multiple definitions)
26qk_tap_dance_action_t tap_dance_actions[] = { 26tap_dance_action_t tap_dance_actions[] = {
27 [TD_LSPO_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, LSPO_CAPS_finished, LSPO_CAPS_reset), 27 [TD_LSPO_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, LSPO_CAPS_finished, LSPO_CAPS_reset),
28 [TD_RSPC_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, RSPC_CAPS_finished, RSPC_CAPS_reset), 28 [TD_RSPC_CAPS] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, RSPC_CAPS_finished, RSPC_CAPS_reset),
29 [TD_ESC_DEL] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_DEL), 29 [TD_ESC_DEL] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_DEL),
@@ -34,7 +34,7 @@ qk_tap_dance_action_t tap_dance_actions[] = {
34// + ------ + 34// + ------ +
35 35
36// https://github.com/qmk/qmk_firmware/blob/9294258c02d3e025e01935a06c4d9f1997535bda/users/gordon/gordon.c#L112-L135 36// https://github.com/qmk/qmk_firmware/blob/9294258c02d3e025e01935a06c4d9f1997535bda/users/gordon/gordon.c#L112-L135
37td_state_t hold_cur_dance(qk_tap_dance_state_t *state) { 37td_state_t hold_cur_dance(tap_dance_state_t *state) {
38 if (state->count == 1) { 38 if (state->count == 1) {
39 if (state->interrupted) { 39 if (state->interrupted) {
40 if (!state->pressed) 40 if (!state->pressed)
@@ -63,7 +63,7 @@ td_state_t hold_cur_dance(qk_tap_dance_state_t *state) {
63// Create an instance of 'td_tap_t' for the 'LSPO_CAPS' tap dance. 63// Create an instance of 'td_tap_t' for the 'LSPO_CAPS' tap dance.
64static td_tap_t LSPO_CAPS_state = {.is_press_action = true, .state = TD_NONE}; 64static td_tap_t LSPO_CAPS_state = {.is_press_action = true, .state = TD_NONE};
65 65
66void LSPO_CAPS_finished(qk_tap_dance_state_t *state, void *user_data) { 66void LSPO_CAPS_finished(tap_dance_state_t *state, void *user_data) {
67 LSPO_CAPS_state.state = hold_cur_dance(state); 67 LSPO_CAPS_state.state = hold_cur_dance(state);
68 switch (LSPO_CAPS_state.state) { 68 switch (LSPO_CAPS_state.state) {
69 case TD_SINGLE_TAP: 69 case TD_SINGLE_TAP:
@@ -80,7 +80,7 @@ void LSPO_CAPS_finished(qk_tap_dance_state_t *state, void *user_data) {
80 } 80 }
81} 81}
82 82
83void LSPO_CAPS_reset(qk_tap_dance_state_t *state, void *user_data) { 83void LSPO_CAPS_reset(tap_dance_state_t *state, void *user_data) {
84 switch (LSPO_CAPS_state.state) { 84 switch (LSPO_CAPS_state.state) {
85 case TD_SINGLE_TAP: 85 case TD_SINGLE_TAP:
86 unregister_code16(KC_LPRN); 86 unregister_code16(KC_LPRN);
@@ -104,7 +104,7 @@ void LSPO_CAPS_reset(qk_tap_dance_state_t *state, void *user_data) {
104// Create an instance of 'td_tap_t' for the 'RSPC_CAPS' tap dance. 104// Create an instance of 'td_tap_t' for the 'RSPC_CAPS' tap dance.
105static td_tap_t RSPC_CAPS_state = {.is_press_action = true, .state = TD_NONE}; 105static td_tap_t RSPC_CAPS_state = {.is_press_action = true, .state = TD_NONE};
106 106
107void RSPC_CAPS_finished(qk_tap_dance_state_t *state, void *user_data) { 107void RSPC_CAPS_finished(tap_dance_state_t *state, void *user_data) {
108 RSPC_CAPS_state.state = hold_cur_dance(state); 108 RSPC_CAPS_state.state = hold_cur_dance(state);
109 switch (RSPC_CAPS_state.state) { 109 switch (RSPC_CAPS_state.state) {
110 case TD_SINGLE_TAP: 110 case TD_SINGLE_TAP:
@@ -121,7 +121,7 @@ void RSPC_CAPS_finished(qk_tap_dance_state_t *state, void *user_data) {
121 } 121 }
122} 122}
123 123
124void RSPC_CAPS_reset(qk_tap_dance_state_t *state, void *user_data) { 124void RSPC_CAPS_reset(tap_dance_state_t *state, void *user_data) {
125 switch (RSPC_CAPS_state.state) { 125 switch (RSPC_CAPS_state.state) {
126 case TD_SINGLE_TAP: 126 case TD_SINGLE_TAP:
127 unregister_code16(KC_RPRN); 127 unregister_code16(KC_RPRN);
diff --git a/users/rmeli/keyrecords/tap_dances.h b/users/rmeli/keyrecords/tap_dances.h
index 1d3018441e..40866fe17f 100644
--- a/users/rmeli/keyrecords/tap_dances.h
+++ b/users/rmeli/keyrecords/tap_dances.h
@@ -60,12 +60,12 @@ typedef struct {
60// + --------- + 60// + --------- +
61 61
62// Tap dance for fast modifiers; favors being held over being tapped. 62// Tap dance for fast modifiers; favors being held over being tapped.
63td_state_t hold_cur_dance(qk_tap_dance_state_t *state); 63td_state_t hold_cur_dance(tap_dance_state_t *state);
64 64
65// Left Shift Parenthesis Open (LSPO) and Caps Lock (CAPS) on DOUBLE_TAP 65// Left Shift Parenthesis Open (LSPO) and Caps Lock (CAPS) on DOUBLE_TAP
66void LSPO_CAPS_finished(qk_tap_dance_state_t *state, void *user_data); 66void LSPO_CAPS_finished(tap_dance_state_t *state, void *user_data);
67void LSPO_CAPS_reset(qk_tap_dance_state_t *state, void *user_data); 67void LSPO_CAPS_reset(tap_dance_state_t *state, void *user_data);
68 68
69// Right Shift Parenthesis Close (RSPC) and Caps Lock (CAPS) on DOUBLE_TAP 69// Right Shift Parenthesis Close (RSPC) and Caps Lock (CAPS) on DOUBLE_TAP
70void RSPC_CAPS_finished(qk_tap_dance_state_t *state, void *user_data); 70void RSPC_CAPS_finished(tap_dance_state_t *state, void *user_data);
71void RSPC_CAPS_reset(qk_tap_dance_state_t *state, void *user_data); 71void RSPC_CAPS_reset(tap_dance_state_t *state, void *user_data);
diff --git a/users/rmw/tapdances.c b/users/rmw/tapdances.c
index 1b44a87253..792bd83e55 100644
--- a/users/rmw/tapdances.c
+++ b/users/rmw/tapdances.c
@@ -2,7 +2,7 @@
2 2
3#include "tapdances.h" 3#include "tapdances.h"
4 4
5qk_tap_dance_action_t tap_dance_actions[] = { 5tap_dance_action_t tap_dance_actions[] = {
6 [SHCAP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, caps, shift_reset) 6 [SHCAP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, caps, shift_reset)
7 ,[TDGUI] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, shiftgui, gui_reset) 7 ,[TDGUI] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, shiftgui, gui_reset)
8 ,[TDGUI2] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, guictl, ubermod_reset) 8 ,[TDGUI2] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, guictl, ubermod_reset)
@@ -22,13 +22,13 @@ qk_tap_dance_action_t tap_dance_actions[] = {
22 ,[FRBK] = ACTION_TAP_DANCE_DOUBLE(KC_WWW_BACK,KC_WWW_FORWARD) 22 ,[FRBK] = ACTION_TAP_DANCE_DOUBLE(KC_WWW_BACK,KC_WWW_FORWARD)
23}; 23};
24 24
25void caps(qk_tap_dance_state_t *state, void *user_data) // Shift, Caps 25void caps(tap_dance_state_t *state, void *user_data) // Shift, Caps
26{ if (state->count >= 2) {register_code(KC_CAPS); unregister_code(KC_CAPS);} 26{ if (state->count >= 2) {register_code(KC_CAPS); unregister_code(KC_CAPS);}
27 else if (state->pressed) {register_mods(MOD_LSFT);} else {set_oneshot_mods(MOD_LSFT);} 27 else if (state->pressed) {register_mods(MOD_LSFT);} else {set_oneshot_mods(MOD_LSFT);}
28 reset_tap_dance(state); 28 reset_tap_dance(state);
29} 29}
30 30
31void forward_back_mac(qk_tap_dance_state_t *state, void *user_data) // G<-, then G-> 31void forward_back_mac(tap_dance_state_t *state, void *user_data) // G<-, then G->
32{ 32{
33 if (state->count > 1) { 33 if (state->count > 1) {
34 tap_code16(G(KC_RGHT)); 34 tap_code16(G(KC_RGHT));
@@ -39,7 +39,7 @@ void forward_back_mac(qk_tap_dance_state_t *state, void *user_data) // G<-, then
39 reset_tap_dance(state); 39 reset_tap_dance(state);
40} 40}
41 41
42void shiftgui(qk_tap_dance_state_t *state, void *user_data) // G->SG 42void shiftgui(tap_dance_state_t *state, void *user_data) // G->SG
43{ 43{
44 if (state->count > 1) { 44 if (state->count > 1) {
45 if (state->pressed) { 45 if (state->pressed) {
@@ -58,7 +58,7 @@ void shiftgui(qk_tap_dance_state_t *state, void *user_data) // G->SG
58 reset_tap_dance(state); 58 reset_tap_dance(state);
59} 59}
60 60
61void guictl(qk_tap_dance_state_t *state, void *user_data) // G->GC 61void guictl(tap_dance_state_t *state, void *user_data) // G->GC
62{ 62{
63 if (state->count > 1) { 63 if (state->count > 1) {
64 if (state->pressed) { 64 if (state->pressed) {
@@ -77,7 +77,7 @@ void guictl(qk_tap_dance_state_t *state, void *user_data) // G->GC
77 reset_tap_dance(state); 77 reset_tap_dance(state);
78} 78}
79 79
80void deleter(qk_tap_dance_state_t *state, void *user_data) // bkspc -> delwrd -> delline 80void deleter(tap_dance_state_t *state, void *user_data) // bkspc -> delwrd -> delline
81{ 81{
82 if (state->count > 3) { 82 if (state->count > 3) {
83 tap_code16(G(KC_BSPC)); 83 tap_code16(G(KC_BSPC));
@@ -91,7 +91,7 @@ void deleter(qk_tap_dance_state_t *state, void *user_data) // bkspc -> delwrd ->
91 reset_tap_dance(state); 91 reset_tap_dance(state);
92} 92}
93 93
94void ubermod(qk_tap_dance_state_t *state, void *user_data) // CTL->ALT->GUI 94void ubermod(tap_dance_state_t *state, void *user_data) // CTL->ALT->GUI
95{ 95{
96 if (state->count > 2) { 96 if (state->count > 2) {
97 if (state->pressed) { 97 if (state->pressed) {
@@ -118,7 +118,7 @@ void ubermod(qk_tap_dance_state_t *state, void *user_data) // CTL->ALT->GUI
118 reset_tap_dance(state); 118 reset_tap_dance(state);
119} 119}
120 120
121void ubermod_mac(qk_tap_dance_state_t *state, void *user_data) // GUI->CTL->ALT 121void ubermod_mac(tap_dance_state_t *state, void *user_data) // GUI->CTL->ALT
122{ 122{
123 if (state->count > 2) { 123 if (state->count > 2) {
124 if (state->pressed) { 124 if (state->pressed) {
@@ -145,7 +145,7 @@ void ubermod_mac(qk_tap_dance_state_t *state, void *user_data) // GUI->CTL->ALT
145 reset_tap_dance(state); 145 reset_tap_dance(state);
146} 146}
147 147
148void ubermod2(qk_tap_dance_state_t *state, void *user_data) // ALT->CTL->GUI 148void ubermod2(tap_dance_state_t *state, void *user_data) // ALT->CTL->GUI
149{ 149{
150 if (state->count > 2) { 150 if (state->count > 2) {
151 if (state->pressed) { 151 if (state->pressed) {
@@ -172,7 +172,7 @@ void ubermod2(qk_tap_dance_state_t *state, void *user_data) // ALT->CTL->GUI
172 reset_tap_dance(state); 172 reset_tap_dance(state);
173} 173}
174 174
175void ubermod2_mac(qk_tap_dance_state_t *state, void *user_data) // ALT->GUI->CTL 175void ubermod2_mac(tap_dance_state_t *state, void *user_data) // ALT->GUI->CTL
176{ 176{
177 if (state->count > 2) { 177 if (state->count > 2) {
178 if (state->pressed) { 178 if (state->pressed) {
@@ -199,30 +199,30 @@ void ubermod2_mac(qk_tap_dance_state_t *state, void *user_data) // ALT->GUI->CTL
199 reset_tap_dance(state); 199 reset_tap_dance(state);
200} 200}
201 201
202void shift_reset(qk_tap_dance_state_t *state, void *user_data) 202void shift_reset(tap_dance_state_t *state, void *user_data)
203{ 203{
204 unregister_mods(MOD_LSFT); 204 unregister_mods(MOD_LSFT);
205 // clear_oneshot_mods(); 205 // clear_oneshot_mods();
206} 206}
207void gui_reset(qk_tap_dance_state_t *state, void *user_data) 207void gui_reset(tap_dance_state_t *state, void *user_data)
208{ 208{
209 unregister_mods(MOD_LSFT | MOD_LGUI); 209 unregister_mods(MOD_LSFT | MOD_LGUI);
210} 210}
211void CAS_reset(qk_tap_dance_state_t *state, void *user_data) 211void CAS_reset(tap_dance_state_t *state, void *user_data)
212{ 212{
213 unregister_mods(MOD_LCTL | MOD_LSFT | MOD_LALT); 213 unregister_mods(MOD_LCTL | MOD_LSFT | MOD_LALT);
214} 214}
215void CASG_reset(qk_tap_dance_state_t *state, void *user_data) 215void CASG_reset(tap_dance_state_t *state, void *user_data)
216{ 216{
217 unregister_mods(MOD_LCTL | MOD_LSFT | MOD_LALT | MOD_LGUI); 217 unregister_mods(MOD_LCTL | MOD_LSFT | MOD_LALT | MOD_LGUI);
218 // clear_oneshot_mods(); 218 // clear_oneshot_mods();
219} 219}
220void ubermod_reset(qk_tap_dance_state_t *state, void *user_data) // AKA CAG_reset 220void ubermod_reset(tap_dance_state_t *state, void *user_data) // AKA CAG_reset
221{ 221{
222 unregister_mods(MOD_LCTL | MOD_LALT | MOD_LGUI); 222 unregister_mods(MOD_LCTL | MOD_LALT | MOD_LGUI);
223} 223}
224 224
225void shiftenter(qk_tap_dance_state_t *state, void *user_data) 225void shiftenter(tap_dance_state_t *state, void *user_data)
226{ 226{
227 if (state->count > 1) { 227 if (state->count > 1) {
228 tap_code(KC_ENT); 228 tap_code(KC_ENT);
@@ -236,7 +236,7 @@ void shiftenter(qk_tap_dance_state_t *state, void *user_data)
236 reset_tap_dance(state); 236 reset_tap_dance(state);
237} 237}
238 238
239void shiftentercaps(qk_tap_dance_state_t *state, void *user_data) 239void shiftentercaps(tap_dance_state_t *state, void *user_data)
240{ 240{
241 if (state->count > 2) { 241 if (state->count > 2) {
242 tap_code(KC_CAPS); 242 tap_code(KC_CAPS);
@@ -253,7 +253,7 @@ void shiftentercaps(qk_tap_dance_state_t *state, void *user_data)
253 reset_tap_dance(state); 253 reset_tap_dance(state);
254} 254}
255 255
256void ctrl_all_mac(qk_tap_dance_state_t *state, void *user_data) // C->CG->CAG 256void ctrl_all_mac(tap_dance_state_t *state, void *user_data) // C->CG->CAG
257{ 257{
258 if (state->count > 2) { 258 if (state->count > 2) {
259 if (state->pressed) { 259 if (state->pressed) {
@@ -280,7 +280,7 @@ void ctrl_all_mac(qk_tap_dance_state_t *state, void *user_data) // C->CG->CAG
280 reset_tap_dance(state); 280 reset_tap_dance(state);
281} 281}
282 282
283void ctrl_all(qk_tap_dance_state_t *state, void *user_data) // C->CA->SC 283void ctrl_all(tap_dance_state_t *state, void *user_data) // C->CA->SC
284{ 284{
285 if (state->count > 2) { 285 if (state->count > 2) {
286 if (state->pressed) { 286 if (state->pressed) {
@@ -307,7 +307,7 @@ void ctrl_all(qk_tap_dance_state_t *state, void *user_data) // C->CA->SC
307 reset_tap_dance(state); 307 reset_tap_dance(state);
308} 308}
309 309
310void alt_all(qk_tap_dance_state_t *state, void *user_data) // A->SA->AC 310void alt_all(tap_dance_state_t *state, void *user_data) // A->SA->AC
311{ 311{
312 if (state->count > 2) { 312 if (state->count > 2) {
313 if (state->pressed) { 313 if (state->pressed) {
@@ -334,7 +334,7 @@ void alt_all(qk_tap_dance_state_t *state, void *user_data) // A->SA->AC
334 reset_tap_dance(state); 334 reset_tap_dance(state);
335} 335}
336 336
337void shift_and(qk_tap_dance_state_t *state, void *user_data) // SC->SA->SG 337void shift_and(tap_dance_state_t *state, void *user_data) // SC->SA->SG
338{ 338{
339 if (state->count > 2) { 339 if (state->count > 2) {
340 if (state->pressed) { 340 if (state->pressed) {
@@ -361,7 +361,7 @@ void shift_and(qk_tap_dance_state_t *state, void *user_data) // SC->SA->SG
361 reset_tap_dance(state); 361 reset_tap_dance(state);
362} 362}
363 363
364void shift_and_mac(qk_tap_dance_state_t *state, void *user_data) // SG->SC->SA 364void shift_and_mac(tap_dance_state_t *state, void *user_data) // SG->SC->SA
365{ 365{
366 if (state->count > 1) { 366 if (state->count > 1) {
367 if (state->pressed) { 367 if (state->pressed) {
diff --git a/users/rmw/tapdances.h b/users/rmw/tapdances.h
index 11425011c5..f358358cb6 100644
--- a/users/rmw/tapdances.h
+++ b/users/rmw/tapdances.h
@@ -3,27 +3,27 @@
3#include "process_tap_dance.h" 3#include "process_tap_dance.h"
4#include "action.h" 4#include "action.h"
5 5
6void caps(qk_tap_dance_state_t *state, void *user_data); // Shift, Caps 6void caps(tap_dance_state_t *state, void *user_data); // Shift, Caps
7void forward_back_mac(qk_tap_dance_state_t *state, void *user_data); // G<-, then G-> 7void forward_back_mac(tap_dance_state_t *state, void *user_data); // G<-, then G->
8void shiftgui(qk_tap_dance_state_t *state, void *user_data); // G->SG 8void shiftgui(tap_dance_state_t *state, void *user_data); // G->SG
9void guictl(qk_tap_dance_state_t *state, void *user_data); // G->GC 9void guictl(tap_dance_state_t *state, void *user_data); // G->GC
10void deleter(qk_tap_dance_state_t *state, void *user_data); // bkspc -> delwrd -> delline 10void deleter(tap_dance_state_t *state, void *user_data); // bkspc -> delwrd -> delline
11void ubermod(qk_tap_dance_state_t *state, void *user_data); // CTL->ALT->GUI 11void ubermod(tap_dance_state_t *state, void *user_data); // CTL->ALT->GUI
12void ubermod_mac(qk_tap_dance_state_t *state, void *user_data); // GUI->CTL->ALT 12void ubermod_mac(tap_dance_state_t *state, void *user_data); // GUI->CTL->ALT
13void ubermod2(qk_tap_dance_state_t *state, void *user_data); // ALT->CTL->GUI 13void ubermod2(tap_dance_state_t *state, void *user_data); // ALT->CTL->GUI
14void ubermod2_mac(qk_tap_dance_state_t *state, void *user_data); // ALT->GUI->CTL 14void ubermod2_mac(tap_dance_state_t *state, void *user_data); // ALT->GUI->CTL
15void shift_reset(qk_tap_dance_state_t *state, void *user_data); 15void shift_reset(tap_dance_state_t *state, void *user_data);
16void gui_reset(qk_tap_dance_state_t *state, void *user_data); 16void gui_reset(tap_dance_state_t *state, void *user_data);
17void CAS_reset(qk_tap_dance_state_t *state, void *user_data); 17void CAS_reset(tap_dance_state_t *state, void *user_data);
18void CASG_reset(qk_tap_dance_state_t *state, void *user_data); 18void CASG_reset(tap_dance_state_t *state, void *user_data);
19void ubermod_reset(qk_tap_dance_state_t *state, void *user_data); // AKA CAG_reset 19void ubermod_reset(tap_dance_state_t *state, void *user_data); // AKA CAG_reset
20void shiftenter(qk_tap_dance_state_t *state, void *user_data); 20void shiftenter(tap_dance_state_t *state, void *user_data);
21void shiftentercaps(qk_tap_dance_state_t *state, void *user_data); 21void shiftentercaps(tap_dance_state_t *state, void *user_data);
22void ctrl_all_mac(qk_tap_dance_state_t *state, void *user_data); // C->CG->CAG 22void ctrl_all_mac(tap_dance_state_t *state, void *user_data); // C->CG->CAG
23void ctrl_all(qk_tap_dance_state_t *state, void *user_data); // C->CA->SC 23void ctrl_all(tap_dance_state_t *state, void *user_data); // C->CA->SC
24void alt_all(qk_tap_dance_state_t *state, void *user_data); // A->SA->AC 24void alt_all(tap_dance_state_t *state, void *user_data); // A->SA->AC
25void shift_and(qk_tap_dance_state_t *state, void *user_data); // SC->SA->SG 25void shift_and(tap_dance_state_t *state, void *user_data); // SC->SA->SG
26void shift_and_mac(qk_tap_dance_state_t *state, void *user_data); // SG->SC->SA 26void shift_and_mac(tap_dance_state_t *state, void *user_data); // SG->SC->SA
27 27
28enum { 28enum {
29 SHCAP = 0 29 SHCAP = 0
diff --git a/users/romus/romus.c b/users/romus/romus.c
index 7b2e330228..19d17a63a9 100644
--- a/users/romus/romus.c
+++ b/users/romus/romus.c
@@ -42,7 +42,7 @@ float tone_windows[][2] = SONG(UNICODE_WINDOWS);
42|*-----TAP-DANCE-----*| 42|*-----TAP-DANCE-----*|
43\*-------------------*/ 43\*-------------------*/
44#ifdef TAP_DANCE_ENABLE 44#ifdef TAP_DANCE_ENABLE
45qk_tap_dance_action_t tap_dance_actions[] = { 45tap_dance_action_t tap_dance_actions[] = {
46 // Shift on double tap of semicolon 46 // Shift on double tap of semicolon
47 [SCL] = ACTION_TAP_DANCE_DOUBLE( KC_SCLN, KC_COLN ) 47 [SCL] = ACTION_TAP_DANCE_DOUBLE( KC_SCLN, KC_COLN )
48}; 48};
diff --git a/users/sethBarberee/tap_dance.c b/users/sethBarberee/tap_dance.c
index 9461e5ad60..924b3141fe 100644
--- a/users/sethBarberee/tap_dance.c
+++ b/users/sethBarberee/tap_dance.c
@@ -16,7 +16,7 @@
16#include "tap_dance.h" 16#include "tap_dance.h"
17 17
18// Shamelessly stolen from QMK Docs 18// Shamelessly stolen from QMK Docs
19int cur_dance (qk_tap_dance_state_t *state) { 19int cur_dance (tap_dance_state_t *state) {
20 if (state->count == 1) { 20 if (state->count == 1) {
21 if (state->interrupted || !state->pressed) { 21 if (state->interrupted || !state->pressed) {
22 return SINGLE_TAP; 22 return SINGLE_TAP;
@@ -44,7 +44,7 @@ tap caps_status = {
44}; 44};
45 45
46 46
47void dance_ecap_finished (qk_tap_dance_state_t *state, void *user_data){ 47void dance_ecap_finished (tap_dance_state_t *state, void *user_data){
48 caps_status.state = cur_dance(state); 48 caps_status.state = cur_dance(state);
49 switch(caps_status.state){ 49 switch(caps_status.state){
50 case SINGLE_TAP: 50 case SINGLE_TAP:
@@ -74,7 +74,7 @@ void dance_ecap_finished (qk_tap_dance_state_t *state, void *user_data){
74 } 74 }
75} 75}
76 76
77void dance_ecap_reset (qk_tap_dance_state_t *state, void *user_data){ 77void dance_ecap_reset (tap_dance_state_t *state, void *user_data){
78 if(caps_status.state == SINGLE_HOLD){ 78 if(caps_status.state == SINGLE_HOLD){
79 unregister_code(KC_LCTL); 79 unregister_code(KC_LCTL);
80 } 80 }
@@ -82,7 +82,7 @@ void dance_ecap_reset (qk_tap_dance_state_t *state, void *user_data){
82} 82}
83 83
84//Tap Dance Definitions 84//Tap Dance Definitions
85qk_tap_dance_action_t tap_dance_actions[] = { 85tap_dance_action_t tap_dance_actions[] = {
86 //Tap once for Esc, twice for Caps Lock 86 //Tap once for Esc, twice for Caps Lock
87 [TD_ECAP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_ecap_finished, dance_ecap_reset), 87 [TD_ECAP] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_ecap_finished, dance_ecap_reset),
88// Other declarations would go here, separated by commas, if you have them 88// Other declarations would go here, separated by commas, if you have them
diff --git a/users/stanrc85/stanrc85.c b/users/stanrc85/stanrc85.c
index 5f74612848..6dd5db0e33 100644
--- a/users/stanrc85/stanrc85.c
+++ b/users/stanrc85/stanrc85.c
@@ -8,7 +8,7 @@ bool process_record_keymap(uint16_t keycode, keyrecord_t *record) {
8} 8}
9 9
10// determine the tapdance state to return 10// determine the tapdance state to return
11int cur_dance (qk_tap_dance_state_t *state) { 11int cur_dance (tap_dance_state_t *state) {
12 if (state->count == 1) { 12 if (state->count == 1) {
13 if (state->interrupted || !state->pressed) { return SINGLE_TAP; } 13 if (state->interrupted || !state->pressed) { return SINGLE_TAP; }
14 else { return SINGLE_HOLD; } 14 else { return SINGLE_HOLD; }
@@ -18,7 +18,7 @@ int cur_dance (qk_tap_dance_state_t *state) {
18} 18}
19 19
20// handle the possible states for each tapdance keycode you define: 20// handle the possible states for each tapdance keycode you define:
21void ctl_copy_finished (qk_tap_dance_state_t *state, void *user_data) { 21void ctl_copy_finished (tap_dance_state_t *state, void *user_data) {
22 td_state = cur_dance(state); 22 td_state = cur_dance(state);
23 switch (td_state) { 23 switch (td_state) {
24 case SINGLE_TAP: 24 case SINGLE_TAP:
@@ -32,7 +32,7 @@ void ctl_copy_finished (qk_tap_dance_state_t *state, void *user_data) {
32 } 32 }
33} 33}
34 34
35void ctl_copy_reset (qk_tap_dance_state_t *state, void *user_data) { 35void ctl_copy_reset (tap_dance_state_t *state, void *user_data) {
36 switch (td_state) { 36 switch (td_state) {
37 case SINGLE_TAP: 37 case SINGLE_TAP:
38 break; 38 break;
@@ -61,7 +61,7 @@ void ctl_copy_reset (qk_tap_dance_state_t *state, void *user_data) {
61 static uint8_t led_user = 0; 61 static uint8_t led_user = 0;
62#endif 62#endif
63 63
64void lock_unlock (qk_tap_dance_state_t *state, void *user_data) { 64void lock_unlock (tap_dance_state_t *state, void *user_data) {
65 td_state = cur_dance(state); 65 td_state = cur_dance(state);
66 switch (td_state) { 66 switch (td_state) {
67 case SINGLE_TAP: // Ctl + Alt + Del to unlock workstation 67 case SINGLE_TAP: // Ctl + Alt + Del to unlock workstation
@@ -97,7 +97,7 @@ void lock_unlock (qk_tap_dance_state_t *state, void *user_data) {
97 } 97 }
98} 98}
99 99
100qk_tap_dance_action_t tap_dance_actions[] = { 100tap_dance_action_t tap_dance_actions[] = {
101 [TD_WIN] = ACTION_TAP_DANCE_FN(lock_unlock), 101 [TD_WIN] = ACTION_TAP_DANCE_FN(lock_unlock),
102 [TD_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_GRV), 102 [TD_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_ESC, KC_GRV),
103 [TD_RCTL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctl_copy_finished, ctl_copy_reset) 103 [TD_RCTL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, ctl_copy_finished, ctl_copy_reset)
diff --git a/users/stanrc85/stanrc85.h b/users/stanrc85/stanrc85.h
index 0007e0898c..a6550ca72c 100644
--- a/users/stanrc85/stanrc85.h
+++ b/users/stanrc85/stanrc85.h
@@ -48,8 +48,8 @@ typedef enum {
48} td_state_t; 48} td_state_t;
49 49
50// function to determine the current tapdance state 50// function to determine the current tapdance state
51int cur_dance (qk_tap_dance_state_t *state); 51int cur_dance (tap_dance_state_t *state);
52 52
53// `finished` and `reset` functions for each tapdance keycode 53// `finished` and `reset` functions for each tapdance keycode
54void ctl_copy_finished (qk_tap_dance_state_t *state, void *user_data); 54void ctl_copy_finished (tap_dance_state_t *state, void *user_data);
55void ctl_copy_reset (qk_tap_dance_state_t *state, void *user_data); 55void ctl_copy_reset (tap_dance_state_t *state, void *user_data);
diff --git a/users/talljoe/tapdance/actions/td.function.c b/users/talljoe/tapdance/actions/td.function.c
index fffbf283dd..577f2be3d4 100644
--- a/users/talljoe/tapdance/actions/td.function.c
+++ b/users/talljoe/tapdance/actions/td.function.c
@@ -19,14 +19,14 @@ static struct {
19} function_state = {0}; 19} function_state = {0};
20 20
21// Send semi-colon + enter on two taps 21// Send semi-colon + enter on two taps
22void tap_dance_function_finished(qk_tap_dance_state_t *state, void *user_data) { 22void tap_dance_function_finished(tap_dance_state_t *state, void *user_data) {
23 function_state.state = hold_cur_dance(state); 23 function_state.state = hold_cur_dance(state);
24 switch (function_state.state) { 24 switch (function_state.state) {
25 case SINGLE_HOLD: layer_on(_ADJUST); break; 25 case SINGLE_HOLD: layer_on(_ADJUST); break;
26 } 26 }
27} 27}
28 28
29void tap_dance_function_reset(qk_tap_dance_state_t *state, void *user_data) { 29void tap_dance_function_reset(tap_dance_state_t *state, void *user_data) {
30 switch (function_state.state) { 30 switch (function_state.state) {
31 case SPECIAL: reset_keyboard(); break; 31 case SPECIAL: reset_keyboard(); break;
32 case SINGLE_HOLD: layer_off(_ADJUST); break; 32 case SINGLE_HOLD: layer_off(_ADJUST); break;
diff --git a/users/talljoe/tapdance/actions/td.grave.c b/users/talljoe/tapdance/actions/td.grave.c
index 509b66dc35..f58f00f8c0 100644
--- a/users/talljoe/tapdance/actions/td.grave.c
+++ b/users/talljoe/tapdance/actions/td.grave.c
@@ -15,7 +15,7 @@
15 */ 15 */
16 16
17// Send `. ~. ``` 17// Send `. ~. ```
18void tap_dance_grave_finished(qk_tap_dance_state_t *state, void *user_data) { 18void tap_dance_grave_finished(tap_dance_state_t *state, void *user_data) {
19 switch(state->count) { 19 switch(state->count) {
20 case 1: 20 case 1:
21 SEND_STRING("`"); 21 SEND_STRING("`");
@@ -26,7 +26,7 @@ void tap_dance_grave_finished(qk_tap_dance_state_t *state, void *user_data) {
26 } 26 }
27} 27}
28 28
29void tap_dance_grave_each(qk_tap_dance_state_t *state, void *user_data) { 29void tap_dance_grave_each(tap_dance_state_t *state, void *user_data) {
30 if(state->count == 3) { 30 if(state->count == 3) {
31 SEND_STRING("```"); 31 SEND_STRING("```");
32 } else if (state->count > 3) { 32 } else if (state->count > 3) {
diff --git a/users/talljoe/tapdance/actions/td.lock.c b/users/talljoe/tapdance/actions/td.lock.c
index 4422d9e252..bdca0bb11b 100644
--- a/users/talljoe/tapdance/actions/td.lock.c
+++ b/users/talljoe/tapdance/actions/td.lock.c
@@ -19,7 +19,7 @@ static struct {
19} lock_state = {0}; 19} lock_state = {0};
20 20
21// Send semi-colon + enter on two taps 21// Send semi-colon + enter on two taps
22void tap_dance_lock_finished(qk_tap_dance_state_t *state, void *user_data) { 22void tap_dance_lock_finished(tap_dance_state_t *state, void *user_data) {
23 lock_state.state = cur_dance(state); 23 lock_state.state = cur_dance(state);
24 switch (lock_state.state) { 24 switch (lock_state.state) {
25 case SINGLE_TAP: register_code(KC_ESC); break; 25 case SINGLE_TAP: register_code(KC_ESC); break;
@@ -27,7 +27,7 @@ void tap_dance_lock_finished(qk_tap_dance_state_t *state, void *user_data) {
27 } 27 }
28} 28}
29 29
30void tap_dance_lock_reset(qk_tap_dance_state_t *state, void *user_data) { 30void tap_dance_lock_reset(tap_dance_state_t *state, void *user_data) {
31 switch (lock_state.state) { 31 switch (lock_state.state) {
32 case SINGLE_TAP: unregister_code(KC_ESC); break; 32 case SINGLE_TAP: unregister_code(KC_ESC); break;
33 } 33 }
diff --git a/users/talljoe/tapdance/actions/td.semicolon.c b/users/talljoe/tapdance/actions/td.semicolon.c
index 45776492a4..c2fc500c48 100644
--- a/users/talljoe/tapdance/actions/td.semicolon.c
+++ b/users/talljoe/tapdance/actions/td.semicolon.c
@@ -19,12 +19,12 @@ static struct {
19 bool mods; 19 bool mods;
20} tap_state = {0}; 20} tap_state = {0};
21 21
22void tap_dance_semicolon_each(qk_tap_dance_state_t *state, void *user_data) { 22void tap_dance_semicolon_each(tap_dance_state_t *state, void *user_data) {
23 tap_state.mods |= get_mods(); 23 tap_state.mods |= get_mods();
24} 24}
25 25
26// Send semi-colon + enter on two taps 26// Send semi-colon + enter on two taps
27void tap_dance_semicolon_finished(qk_tap_dance_state_t *state, void *user_data) { 27void tap_dance_semicolon_finished(tap_dance_state_t *state, void *user_data) {
28 tap_state.semicolon = hold_cur_dance(state); 28 tap_state.semicolon = hold_cur_dance(state);
29 switch (tap_state.semicolon) { 29 switch (tap_state.semicolon) {
30 case SINGLE_TAP: case DOUBLE_HOLD: register_code(KC_SCLN); break; 30 case SINGLE_TAP: case DOUBLE_HOLD: register_code(KC_SCLN); break;
@@ -32,7 +32,7 @@ void tap_dance_semicolon_finished(qk_tap_dance_state_t *state, void *user_data)
32 } 32 }
33} 33}
34 34
35void tap_dance_semicolon_reset(qk_tap_dance_state_t *state, void *user_data) { 35void tap_dance_semicolon_reset(tap_dance_state_t *state, void *user_data) {
36 switch (tap_state.semicolon) { 36 switch (tap_state.semicolon) {
37 case SINGLE_TAP: case DOUBLE_HOLD: unregister_code(KC_SCLN); break; 37 case SINGLE_TAP: case DOUBLE_HOLD: unregister_code(KC_SCLN); break;
38 case DOUBLE_TAP: { 38 case DOUBLE_TAP: {
diff --git a/users/talljoe/tapdance/tapdance_actions.c b/users/talljoe/tapdance/tapdance_actions.c
index 59a34b7b9e..b574586171 100644
--- a/users/talljoe/tapdance/tapdance_actions.c
+++ b/users/talljoe/tapdance/tapdance_actions.c
@@ -20,7 +20,7 @@
20#include "actions/td.semicolon.c" 20#include "actions/td.semicolon.c"
21#include "actions/td.function.c" 21#include "actions/td.function.c"
22 22
23qk_tap_dance_action_t tap_dance_actions[] = { 23tap_dance_action_t tap_dance_actions[] = {
24 [TD_SEMICOLON] = ACTION_TAP_DANCE_FN_ADVANCED(tap_dance_semicolon_each, tap_dance_semicolon_finished, tap_dance_semicolon_reset), 24 [TD_SEMICOLON] = ACTION_TAP_DANCE_FN_ADVANCED(tap_dance_semicolon_each, tap_dance_semicolon_finished, tap_dance_semicolon_reset),
25 [TD_LOCK] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_dance_lock_finished, tap_dance_lock_reset), 25 [TD_LOCK] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, tap_dance_lock_finished, tap_dance_lock_reset),
26 [TD_GRAVE] = ACTION_TAP_DANCE_FN_ADVANCED(tap_dance_grave_each, tap_dance_grave_finished, NULL), 26 [TD_GRAVE] = ACTION_TAP_DANCE_FN_ADVANCED(tap_dance_grave_each, tap_dance_grave_finished, NULL),
diff --git a/users/talljoe/tapdance/td_setup.c b/users/talljoe/tapdance/td_setup.c
index d8464144ac..0742763266 100644
--- a/users/talljoe/tapdance/td_setup.c
+++ b/users/talljoe/tapdance/td_setup.c
@@ -16,7 +16,7 @@
16 16
17#include "tapdance.h" 17#include "tapdance.h"
18 18
19int cur_dance (qk_tap_dance_state_t *state) { 19int cur_dance (tap_dance_state_t *state) {
20 if (state->count == 1) { 20 if (state->count == 1) {
21 //If count = 1, and it has been interrupted - it doesn't matter if it is pressed or not: Send SINGLE_TAP 21 //If count = 1, and it has been interrupted - it doesn't matter if it is pressed or not: Send SINGLE_TAP
22 if (state->interrupted) { 22 if (state->interrupted) {
@@ -45,7 +45,7 @@ int cur_dance (qk_tap_dance_state_t *state) {
45 else return SPECIAL; 45 else return SPECIAL;
46} 46}
47 47
48int hold_cur_dance (qk_tap_dance_state_t *state) { 48int hold_cur_dance (tap_dance_state_t *state) {
49 if (state->count == 1) { 49 if (state->count == 1) {
50 if (state->interrupted) { 50 if (state->interrupted) {
51 if (!state->pressed) return SINGLE_TAP; 51 if (!state->pressed) return SINGLE_TAP;
diff --git a/users/talljoe/tapdance/td_setup.h b/users/talljoe/tapdance/td_setup.h
index 85d45d944f..e9685c83b2 100644
--- a/users/talljoe/tapdance/td_setup.h
+++ b/users/talljoe/tapdance/td_setup.h
@@ -25,5 +25,5 @@ enum {
25 SPECIAL = 8 25 SPECIAL = 8
26}; 26};
27 27
28int cur_dance (qk_tap_dance_state_t *state); 28int cur_dance (tap_dance_state_t *state);
29int hold_cur_dance (qk_tap_dance_state_t *state); 29int hold_cur_dance (tap_dance_state_t *state);
diff --git a/users/tominabox1/tominabox1.c b/users/tominabox1/tominabox1.c
index 999222fa67..4344e06a1f 100644
--- a/users/tominabox1/tominabox1.c
+++ b/users/tominabox1/tominabox1.c
@@ -79,7 +79,7 @@ void rgb_matrix_layer_helper(uint8_t hue, uint8_t sat, uint8_t val, uint8_t mode
79} 79}
80#endif //RGB_MATRIX_ENABLE 80#endif //RGB_MATRIX_ENABLE
81 81
82void dance_cln_finished (qk_tap_dance_state_t *state, void *user_data) { 82void dance_cln_finished (tap_dance_state_t *state, void *user_data) {
83 if (state->count == 1) { 83 if (state->count == 1) {
84 register_code16(S(KC_2)); 84 register_code16(S(KC_2));
85 } else { 85 } else {
@@ -87,14 +87,14 @@ void dance_cln_finished (qk_tap_dance_state_t *state, void *user_data) {
87 } 87 }
88} 88}
89 89
90void dance_cln_reset (qk_tap_dance_state_t *state, void *user_data) { 90void dance_cln_reset (tap_dance_state_t *state, void *user_data) {
91 if (state->count == 1) { 91 if (state->count == 1) {
92 unregister_code16(S(KC_2)); 92 unregister_code16(S(KC_2));
93 } else { 93 } else {
94 } 94 }
95} 95}
96 96
97qk_tap_dance_action_t tap_dance_actions[] = { 97tap_dance_action_t tap_dance_actions[] = {
98 [KC_EMAIL] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_cln_finished, dance_cln_reset), 98 [KC_EMAIL] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_cln_finished, dance_cln_reset),
99 [TD_SFT_CPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS), 99 [TD_SFT_CPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS),
100}; 100};
diff --git a/users/wanleg/tapdances.c b/users/wanleg/tapdances.c
index cfd84a2644..5d820df3b8 100644
--- a/users/wanleg/tapdances.c
+++ b/users/wanleg/tapdances.c
@@ -27,7 +27,7 @@ typedef struct {
27 int state; 27 int state;
28} tap; 28} tap;
29 29
30int cur_dance (qk_tap_dance_state_t *state) { 30int cur_dance (tap_dance_state_t *state) {
31 if (state->count == 1) { 31 if (state->count == 1) {
32 //If count = 1, and it has been interrupted - it doesn't matter if it is pressed or not: Send SINGLE_TAP 32 //If count = 1, and it has been interrupted - it doesn't matter if it is pressed or not: Send SINGLE_TAP
33 if (state->interrupted || !state->pressed) return SINGLE_TAP; 33 if (state->interrupted || !state->pressed) return SINGLE_TAP;
@@ -59,7 +59,7 @@ static tap CADtap_state = {
59 .state = 0 59 .state = 0
60}; 60};
61 61
62void CAD_finished (qk_tap_dance_state_t *state, void *user_data) { 62void CAD_finished (tap_dance_state_t *state, void *user_data) {
63 CADtap_state.state = cur_dance(state); 63 CADtap_state.state = cur_dance(state);
64 switch (CADtap_state.state) { 64 switch (CADtap_state.state) {
65 case SINGLE_TAP: 65 case SINGLE_TAP:
@@ -102,7 +102,7 @@ void CAD_finished (qk_tap_dance_state_t *state, void *user_data) {
102 } 102 }
103} 103}
104 104
105void CAD_reset (qk_tap_dance_state_t *state, void *user_data) { 105void CAD_reset (tap_dance_state_t *state, void *user_data) {
106 switch (CADtap_state.state) { 106 switch (CADtap_state.state) {
107//nothing to do 107//nothing to do
108 } 108 }
@@ -115,7 +115,7 @@ static tap RSTtap_state = {
115 .state = 0 115 .state = 0
116}; 116};
117 117
118void RST_finished (qk_tap_dance_state_t *state, void *user_data) { 118void RST_finished (tap_dance_state_t *state, void *user_data) {
119 RSTtap_state.state = cur_dance(state); 119 RSTtap_state.state = cur_dance(state);
120 switch (RSTtap_state.state) { 120 switch (RSTtap_state.state) {
121 case SINGLE_TAP: register_code(KC_LCTL); break; 121 case SINGLE_TAP: register_code(KC_LCTL); break;
@@ -125,7 +125,7 @@ void RST_finished (qk_tap_dance_state_t *state, void *user_data) {
125 } 125 }
126} 126}
127 127
128void RST_reset (qk_tap_dance_state_t *state, void *user_data) { 128void RST_reset (tap_dance_state_t *state, void *user_data) {
129 switch (RSTtap_state.state) { 129 switch (RSTtap_state.state) {
130 case SINGLE_TAP: unregister_code(KC_LCTL); break; 130 case SINGLE_TAP: unregister_code(KC_LCTL); break;
131 case SINGLE_HOLD: unregister_code(KC_LCTL); break; 131 case SINGLE_HOLD: unregister_code(KC_LCTL); break;
@@ -140,7 +140,7 @@ static tap LYRtap_state = {
140 .state = 0 140 .state = 0
141}; 141};
142 142
143void LYR_finished (qk_tap_dance_state_t *state, void *user_data) { 143void LYR_finished (tap_dance_state_t *state, void *user_data) {
144 LYRtap_state.state = cur_dance(state); 144 LYRtap_state.state = cur_dance(state);
145 switch (LYRtap_state.state) { 145 switch (LYRtap_state.state) {
146 case SINGLE_TAP: register_code(KC_PSLS); break; 146 case SINGLE_TAP: register_code(KC_PSLS); break;
@@ -149,7 +149,7 @@ void LYR_finished (qk_tap_dance_state_t *state, void *user_data) {
149 } 149 }
150} 150}
151 151
152void LYR_reset (qk_tap_dance_state_t *state, void *user_data) { 152void LYR_reset (tap_dance_state_t *state, void *user_data) {
153 switch (LYRtap_state.state) { 153 switch (LYRtap_state.state) {
154 case SINGLE_TAP: unregister_code(KC_PSLS); break; 154 case SINGLE_TAP: unregister_code(KC_PSLS); break;
155 case DOUBLE_TAP: set_single_persistent_default_layer(_GK); break; 155 case DOUBLE_TAP: set_single_persistent_default_layer(_GK); break;
@@ -164,7 +164,7 @@ static tap LYR75tap_state = {
164 .state = 0 164 .state = 0
165}; 165};
166 166
167void LYR75_finished (qk_tap_dance_state_t *state, void *user_data) { 167void LYR75_finished (tap_dance_state_t *state, void *user_data) {
168 LYR75tap_state.state = cur_dance(state); 168 LYR75tap_state.state = cur_dance(state);
169 switch (LYR75tap_state.state) { 169 switch (LYR75tap_state.state) {
170 case SINGLE_TAP: register_code(KC_PSLS); break; 170 case SINGLE_TAP: register_code(KC_PSLS); break;
@@ -173,7 +173,7 @@ void LYR75_finished (qk_tap_dance_state_t *state, void *user_data) {
173 } 173 }
174} 174}
175 175
176void LYR75_reset (qk_tap_dance_state_t *state, void *user_data) { 176void LYR75_reset (tap_dance_state_t *state, void *user_data) {
177 switch (LYR75tap_state.state) { 177 switch (LYR75tap_state.state) {
178 case SINGLE_TAP: unregister_code(KC_PSLS); break; 178 case SINGLE_TAP: unregister_code(KC_PSLS); break;
179 case DOUBLE_TAP: set_single_persistent_default_layer(_GK); break; 179 case DOUBLE_TAP: set_single_persistent_default_layer(_GK); break;
@@ -188,7 +188,7 @@ static tap LYR50tap_state = {
188 .state = 0 188 .state = 0
189}; 189};
190 190
191void LYR50_finished (qk_tap_dance_state_t *state, void *user_data) { 191void LYR50_finished (tap_dance_state_t *state, void *user_data) {
192 LYR50tap_state.state = cur_dance(state); 192 LYR50tap_state.state = cur_dance(state);
193 switch (LYR75tap_state.state) { 193 switch (LYR75tap_state.state) {
194 case SINGLE_TAP: register_code(KC_PSLS); break; 194 case SINGLE_TAP: register_code(KC_PSLS); break;
@@ -197,7 +197,7 @@ void LYR50_finished (qk_tap_dance_state_t *state, void *user_data) {
197 } 197 }
198} 198}
199 199
200void LYR50_reset (qk_tap_dance_state_t *state, void *user_data) { 200void LYR50_reset (tap_dance_state_t *state, void *user_data) {
201 switch (LYR50tap_state.state) { 201 switch (LYR50tap_state.state) {
202 case SINGLE_TAP: unregister_code(KC_PSLS); break; 202 case SINGLE_TAP: unregister_code(KC_PSLS); break;
203 case DOUBLE_TAP: set_single_persistent_default_layer(GK50); break; 203 case DOUBLE_TAP: set_single_persistent_default_layer(GK50); break;
@@ -212,7 +212,7 @@ static tap BSWtap_state = {
212 .state = 0 212 .state = 0
213}; 213};
214 214
215void BSW_finished (qk_tap_dance_state_t *state, void *user_data) { 215void BSW_finished (tap_dance_state_t *state, void *user_data) {
216 BSWtap_state.state = cur_dance(state); 216 BSWtap_state.state = cur_dance(state);
217 switch (BSWtap_state.state) { 217 switch (BSWtap_state.state) {
218 case SINGLE_TAP: register_code(KC_ENTER); break; 218 case SINGLE_TAP: register_code(KC_ENTER); break;
@@ -233,7 +233,7 @@ void BSW_finished (qk_tap_dance_state_t *state, void *user_data) {
233 } 233 }
234} 234}
235 235
236void BSW_reset (qk_tap_dance_state_t *state, void *user_data) { 236void BSW_reset (tap_dance_state_t *state, void *user_data) {
237 switch (BSWtap_state.state) { 237 switch (BSWtap_state.state) {
238 case SINGLE_TAP: unregister_code(KC_ENTER); break; 238 case SINGLE_TAP: unregister_code(KC_ENTER); break;
239 case DOUBLE_TAP: 239 case DOUBLE_TAP:
@@ -248,7 +248,7 @@ void BSW_reset (qk_tap_dance_state_t *state, void *user_data) {
248 248
249//Tap Dance Definitions 249//Tap Dance Definitions
250//THIS SECTION HAS TO BE AT THE END OF THE TAP DANCE SECTION 250//THIS SECTION HAS TO BE AT THE END OF THE TAP DANCE SECTION
251qk_tap_dance_action_t tap_dance_actions[] = { 251tap_dance_action_t tap_dance_actions[] = {
252 [TD_SFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS) 252 [TD_SFT_CAPS] = ACTION_TAP_DANCE_DOUBLE(KC_LSFT, KC_CAPS)
253// Other declarations would go here, separated by commas, if you have them 253// Other declarations would go here, separated by commas, if you have them
254 ,[TD_Q_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC) 254 ,[TD_Q_ESC] = ACTION_TAP_DANCE_DOUBLE(KC_Q, KC_ESC)
diff --git a/users/xulkal/custom_tap_dance.c b/users/xulkal/custom_tap_dance.c
index bcbfb577bb..c2f9efe44b 100644
--- a/users/xulkal/custom_tap_dance.c
+++ b/users/xulkal/custom_tap_dance.c
@@ -4,7 +4,7 @@
4#ifdef TAP_DANCE_ENABLE 4#ifdef TAP_DANCE_ENABLE
5 5
6//Tap Dance Definitions 6//Tap Dance Definitions
7qk_tap_dance_action_t tap_dance_actions[] = { 7tap_dance_action_t tap_dance_actions[] = {
8 [COMM_QUOT] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_QUOT), 8 [COMM_QUOT] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_QUOT),
9 [BACKSPACE] = ACTION_TAP_DANCE_DOUBLE (KC_BACKSPACE, LCTL(KC_BACKSPACE)), 9 [BACKSPACE] = ACTION_TAP_DANCE_DOUBLE (KC_BACKSPACE, LCTL(KC_BACKSPACE)),
10 [DELETE] = ACTION_TAP_DANCE_DOUBLE (KC_DELETE, LCTL(KC_DELETE)) 10 [DELETE] = ACTION_TAP_DANCE_DOUBLE (KC_DELETE, LCTL(KC_DELETE))
diff --git a/users/yet-another-developer/tap_dances.c b/users/yet-another-developer/tap_dances.c
index 66dcc60fa5..cde0cb832e 100644
--- a/users/yet-another-developer/tap_dances.c
+++ b/users/yet-another-developer/tap_dances.c
@@ -1,6 +1,6 @@
1#include "tap_dances.h" 1#include "tap_dances.h"
2 2
3void td_parenthesis (qk_tap_dance_state_t *state, void *user_data) { 3void td_parenthesis (tap_dance_state_t *state, void *user_data) {
4 if (state->count == 1) { 4 if (state->count == 1) {
5// SEND_STRING ("\("); 5// SEND_STRING ("\(");
6 tap_code(KC_QUOT); 6 tap_code(KC_QUOT);
@@ -24,7 +24,7 @@ void td_parenthesis (qk_tap_dance_state_t *state, void *user_data) {
24 } 24 }
25} 25}
26 26
27void safe_reset(qk_tap_dance_state_t *state, void *user_data) { 27void safe_reset(tap_dance_state_t *state, void *user_data) {
28 if (state->count >= 3) { 28 if (state->count >= 3) {
29 // Reset the keyboard if you tap the key more than three times 29 // Reset the keyboard if you tap the key more than three times
30 reset_keyboard(); 30 reset_keyboard();
@@ -32,7 +32,7 @@ void safe_reset(qk_tap_dance_state_t *state, void *user_data) {
32 } 32 }
33} 33}
34 34
35qk_tap_dance_action_t tap_dance_actions[] = { 35tap_dance_action_t tap_dance_actions[] = {
36 [TD_RESET] = ACTION_TAP_DANCE_FN(safe_reset), 36 [TD_RESET] = ACTION_TAP_DANCE_FN(safe_reset),
37 [TD_NUM1] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_4), 37 [TD_NUM1] = ACTION_TAP_DANCE_DOUBLE(KC_1, KC_4),
38 [TD_NUM2] = ACTION_TAP_DANCE_DOUBLE(KC_2, KC_5), 38 [TD_NUM2] = ACTION_TAP_DANCE_DOUBLE(KC_2, KC_5),
diff --git a/users/yet-another-developer/tap_dances.h b/users/yet-another-developer/tap_dances.h
index 8afda817cb..ca925e71bd 100644
--- a/users/yet-another-developer/tap_dances.h
+++ b/users/yet-another-developer/tap_dances.h
@@ -23,4 +23,4 @@ enum {
23 TD_ABR // single double angle brackets 23 TD_ABR // single double angle brackets
24}; 24};
25#endif // TAP_DANCE_ENABLE 25#endif // TAP_DANCE_ENABLE
26void td_parenthesis (qk_tap_dance_state_t *state, void *user_data); 26void td_parenthesis (tap_dance_state_t *state, void *user_data);
diff --git a/users/zer09/tap_dance.c b/users/zer09/tap_dance.c
index 4c7d182d8a..dc87f31eb5 100644
--- a/users/zer09/tap_dance.c
+++ b/users/zer09/tap_dance.c
@@ -1,7 +1,7 @@
1#include "tap_dance.h" 1#include "tap_dance.h"
2#include "lights.h" 2#include "lights.h"
3 3
4qk_tap_dance_action_t tap_dance_actions[] = { 4tap_dance_action_t tap_dance_actions[] = {
5 [DA_LCTL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_lctl_finished, 5 [DA_LCTL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_lctl_finished,
6 dance_lctl_reset), 6 dance_lctl_reset),
7 [DA_LSPR] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_lspr_finished, 7 [DA_LSPR] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_lspr_finished,
@@ -40,7 +40,7 @@ void layer_switcher_tap(uint8_t new_layer) {
40 } 40 }
41} 41}
42 42
43int cur_dance(qk_tap_dance_state_t *state) { 43int cur_dance(tap_dance_state_t *state) {
44 switch (state->count) { 44 switch (state->count) {
45 case 1: 45 case 1:
46 return state->pressed == 0 ? SINGLE_TAP : SINGLE_HOLD; 46 return state->pressed == 0 ? SINGLE_TAP : SINGLE_HOLD;
@@ -53,17 +53,17 @@ int cur_dance(qk_tap_dance_state_t *state) {
53 } 53 }
54} 54}
55 55
56void dance_lctl_finished(qk_tap_dance_state_t *state, void *user_data) { 56void dance_lctl_finished(tap_dance_state_t *state, void *user_data) {
57 rbw_led_keys[RBW_LCTL].status = ENABLED; 57 rbw_led_keys[RBW_LCTL].status = ENABLED;
58 register_code(KC_LCTL); 58 register_code(KC_LCTL);
59}; 59};
60 60
61void dance_lctl_reset(qk_tap_dance_state_t *state, void *user_data) { 61void dance_lctl_reset(tap_dance_state_t *state, void *user_data) {
62 unregister_code(KC_LCTL); 62 unregister_code(KC_LCTL);
63 rbw_led_keys[RBW_LCTL].status = DISABLED; 63 rbw_led_keys[RBW_LCTL].status = DISABLED;
64}; 64};
65 65
66void dance_lspr_finished(qk_tap_dance_state_t *state, void *user_data) { 66void dance_lspr_finished(tap_dance_state_t *state, void *user_data) {
67 lsprtap_state.state = cur_dance(state); 67 lsprtap_state.state = cur_dance(state);
68 68
69 switch (lsprtap_state.state) { 69 switch (lsprtap_state.state) {
@@ -77,7 +77,7 @@ void dance_lspr_finished(qk_tap_dance_state_t *state, void *user_data) {
77 } 77 }
78}; 78};
79 79
80void dance_lspr_reset(qk_tap_dance_state_t *state, void *user_data) { 80void dance_lspr_reset(tap_dance_state_t *state, void *user_data) {
81 switch (lsprtap_state.state) { 81 switch (lsprtap_state.state) {
82 case DOUBLE_HOLD: 82 case DOUBLE_HOLD:
83 unregister_code(KC_LALT); 83 unregister_code(KC_LALT);
@@ -89,17 +89,17 @@ void dance_lspr_reset(qk_tap_dance_state_t *state, void *user_data) {
89 } 89 }
90}; 90};
91 91
92void dance_rctl_finished(qk_tap_dance_state_t *state, void *user_data) { 92void dance_rctl_finished(tap_dance_state_t *state, void *user_data) {
93 rbw_led_keys[RBW_RCTL].status = ENABLED; 93 rbw_led_keys[RBW_RCTL].status = ENABLED;
94 register_code(KC_RCTL); 94 register_code(KC_RCTL);
95}; 95};
96 96
97void dance_rctl_reset(qk_tap_dance_state_t *state, void *user_data) { 97void dance_rctl_reset(tap_dance_state_t *state, void *user_data) {
98 unregister_code(KC_RCTL); 98 unregister_code(KC_RCTL);
99 rbw_led_keys[RBW_RCTL].status = DISABLED; 99 rbw_led_keys[RBW_RCTL].status = DISABLED;
100}; 100};
101 101
102void dance_ralt_finished(qk_tap_dance_state_t *state, void *user_data) { 102void dance_ralt_finished(tap_dance_state_t *state, void *user_data) {
103 ralttap_state.state = cur_dance(state); 103 ralttap_state.state = cur_dance(state);
104 104
105 switch (ralttap_state.state) { 105 switch (ralttap_state.state) {
@@ -113,7 +113,7 @@ void dance_ralt_finished(qk_tap_dance_state_t *state, void *user_data) {
113 } 113 }
114}; 114};
115 115
116void dance_ralt_reset(qk_tap_dance_state_t *state, void *user_data) { 116void dance_ralt_reset(tap_dance_state_t *state, void *user_data) {
117 switch (ralttap_state.state) { 117 switch (ralttap_state.state) {
118 case DOUBLE_HOLD: 118 case DOUBLE_HOLD:
119 unregister_code(KC_RGUI); 119 unregister_code(KC_RGUI);
@@ -125,7 +125,7 @@ void dance_ralt_reset(qk_tap_dance_state_t *state, void *user_data) {
125 } 125 }
126}; 126};
127 127
128void dance_uply_finished(qk_tap_dance_state_t *state, void *user_data) { 128void dance_uply_finished(tap_dance_state_t *state, void *user_data) {
129 upltap_state.state = cur_dance(state); 129 upltap_state.state = cur_dance(state);
130 130
131 switch (upltap_state.state) { 131 switch (upltap_state.state) {
@@ -145,7 +145,7 @@ void dance_uply_finished(qk_tap_dance_state_t *state, void *user_data) {
145 } 145 }
146} 146}
147 147
148void dance_uply_reset(qk_tap_dance_state_t *state, void *user_data) { 148void dance_uply_reset(tap_dance_state_t *state, void *user_data) {
149 switch (upltap_state.state) { 149 switch (upltap_state.state) {
150 case SINGLE_TAP: 150 case SINGLE_TAP:
151 break; 151 break;
@@ -157,7 +157,7 @@ void dance_uply_reset(qk_tap_dance_state_t *state, void *user_data) {
157 upltap_state.state = 0; 157 upltap_state.state = 0;
158} 158}
159 159
160void dance_dwly_finished(qk_tap_dance_state_t *state, void *user_data) { 160void dance_dwly_finished(tap_dance_state_t *state, void *user_data) {
161 dwltap_state.state = cur_dance(state); 161 dwltap_state.state = cur_dance(state);
162 162
163 switch (dwltap_state.state) { 163 switch (dwltap_state.state) {
@@ -188,7 +188,7 @@ void dance_dwly_finished(qk_tap_dance_state_t *state, void *user_data) {
188 } 188 }
189} 189}
190 190
191void dance_dwly_reset(qk_tap_dance_state_t *state, void *user_data) { 191void dance_dwly_reset(tap_dance_state_t *state, void *user_data) {
192 switch (dwltap_state.state) { 192 switch (dwltap_state.state) {
193 case SINGLE_TAP: 193 case SINGLE_TAP:
194 break; 194 break;
diff --git a/users/zer09/tap_dance.h b/users/zer09/tap_dance.h
index 555c159248..293b5eedc5 100644
--- a/users/zer09/tap_dance.h
+++ b/users/zer09/tap_dance.h
@@ -32,24 +32,24 @@ enum {
32extern volatile uint8_t active_layer; 32extern volatile uint8_t active_layer;
33 33
34void layer_switcher_tap(uint8_t); 34void layer_switcher_tap(uint8_t);
35int cur_dance(qk_tap_dance_state_t *); 35int cur_dance(tap_dance_state_t *);
36 36
37void dance_lctl_finished(qk_tap_dance_state_t *, void *); 37void dance_lctl_finished(tap_dance_state_t *, void *);
38void dance_lctl_reset(qk_tap_dance_state_t *, void *); 38void dance_lctl_reset(tap_dance_state_t *, void *);
39 39
40void dance_lspr_finished(qk_tap_dance_state_t *, void *); 40void dance_lspr_finished(tap_dance_state_t *, void *);
41void dance_lspr_reset(qk_tap_dance_state_t *, void *); 41void dance_lspr_reset(tap_dance_state_t *, void *);
42 42
43void dance_rctl_finished(qk_tap_dance_state_t *, void *); 43void dance_rctl_finished(tap_dance_state_t *, void *);
44void dance_rctl_reset(qk_tap_dance_state_t *, void *); 44void dance_rctl_reset(tap_dance_state_t *, void *);
45 45
46void dance_ralt_finished(qk_tap_dance_state_t *, void *); 46void dance_ralt_finished(tap_dance_state_t *, void *);
47void dance_ralt_reset(qk_tap_dance_state_t *, void *); 47void dance_ralt_reset(tap_dance_state_t *, void *);
48 48
49void dance_uply_finished(qk_tap_dance_state_t *, void *); 49void dance_uply_finished(tap_dance_state_t *, void *);
50void dance_uply_reset(qk_tap_dance_state_t *, void *); 50void dance_uply_reset(tap_dance_state_t *, void *);
51 51
52void dance_dwly_finished(qk_tap_dance_state_t *, void *); 52void dance_dwly_finished(tap_dance_state_t *, void *);
53void dance_dwly_reset(qk_tap_dance_state_t *, void *); 53void dance_dwly_reset(tap_dance_state_t *, void *);
54 54
55#endif 55#endif
diff --git a/users/zigotica/tapdances.c b/users/zigotica/tapdances.c
index 06015fc64d..69390d244c 100644
--- a/users/zigotica/tapdances.c
+++ b/users/zigotica/tapdances.c
@@ -13,7 +13,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
13 13
14#include "tapdances.h" 14#include "tapdances.h"
15 15
16void ios_media(qk_tap_dance_state_t *state, void *user_data) { 16void ios_media(tap_dance_state_t *state, void *user_data) {
17 if (state->count == 1) { 17 if (state->count == 1) {
18 tap_code(KC_MPLY); 18 tap_code(KC_MPLY);
19 } else if (state->count == 2) { 19 } else if (state->count == 2) {
@@ -25,7 +25,7 @@ void ios_media(qk_tap_dance_state_t *state, void *user_data) {
25 } 25 }
26} 26}
27 27
28qk_tap_dance_action_t tap_dance_actions[] = { 28tap_dance_action_t tap_dance_actions[] = {
29 [0] = ACTION_TAP_DANCE_FN(ios_media), 29 [0] = ACTION_TAP_DANCE_FN(ios_media),
30 [1] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_SCLN), 30 [1] = ACTION_TAP_DANCE_DOUBLE(KC_COMM, KC_SCLN),
31 [2] = ACTION_TAP_DANCE_DOUBLE(KC_DOT, KC_COLON), 31 [2] = ACTION_TAP_DANCE_DOUBLE(KC_DOT, KC_COLON),
diff --git a/users/zyber/zyber.c b/users/zyber/zyber.c
index 63915ddbd4..72852d091a 100644
--- a/users/zyber/zyber.c
+++ b/users/zyber/zyber.c
@@ -65,14 +65,14 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
65} 65}
66 66
67/* Screenshoot */ 67/* Screenshoot */
68void dance_SSHT_finished(qk_tap_dance_state_t *state, void *user_data) { 68void dance_SSHT_finished(tap_dance_state_t *state, void *user_data) {
69 if (state->count == 2) { 69 if (state->count == 2) {
70 tap_code16(C(S(G(KC_4)))); 70 tap_code16(C(S(G(KC_4))));
71 } else { 71 } else {
72 tap_code(KC_4); 72 tap_code(KC_4);
73 } 73 }
74} 74}
75void dance_SSHT_reset(qk_tap_dance_state_t *state, void *user_data) { 75void dance_SSHT_reset(tap_dance_state_t *state, void *user_data) {
76 if (state->count == 2) { 76 if (state->count == 2) {
77 unregister_code16(C(S(G(KC_4)))); 77 unregister_code16(C(S(G(KC_4))));
78 } else { 78 } else {
@@ -81,14 +81,14 @@ void dance_SSHT_reset(qk_tap_dance_state_t *state, void *user_data) {
81} 81}
82 82
83/* Å */ 83/* Å */
84void dance_LBRC_finished(qk_tap_dance_state_t *state, void *user_data) { 84void dance_LBRC_finished(tap_dance_state_t *state, void *user_data) {
85 if (state->count == 2) { 85 if (state->count == 2) {
86 tap_code16(A(KC_LBRC)); 86 tap_code16(A(KC_LBRC));
87 } else { 87 } else {
88 tap_code(KC_LBRC); 88 tap_code(KC_LBRC);
89 } 89 }
90} 90}
91void dance_LBRC_reset(qk_tap_dance_state_t *state, void *user_data) { 91void dance_LBRC_reset(tap_dance_state_t *state, void *user_data) {
92 if (state->count == 2) { 92 if (state->count == 2) {
93 unregister_code16(A(KC_LBRC)); 93 unregister_code16(A(KC_LBRC));
94 } else { 94 } else {
@@ -97,14 +97,14 @@ void dance_LBRC_reset(qk_tap_dance_state_t *state, void *user_data) {
97} 97}
98 98
99/* Ö */ 99/* Ö */
100void dance_SCLN_finished(qk_tap_dance_state_t *state, void *user_data) { 100void dance_SCLN_finished(tap_dance_state_t *state, void *user_data) {
101 if (state->count == 2) { 101 if (state->count == 2) {
102 tap_code16(A(KC_SCLN)); 102 tap_code16(A(KC_SCLN));
103 } else { 103 } else {
104 tap_code(KC_SCLN); 104 tap_code(KC_SCLN);
105 } 105 }
106} 106}
107void dance_SCLN_reset(qk_tap_dance_state_t *state, void *user_data) { 107void dance_SCLN_reset(tap_dance_state_t *state, void *user_data) {
108 if (state->count == 2) { 108 if (state->count == 2) {
109 unregister_code16(A(KC_SCLN)); 109 unregister_code16(A(KC_SCLN));
110 } else { 110 } else {
@@ -113,14 +113,14 @@ void dance_SCLN_reset(qk_tap_dance_state_t *state, void *user_data) {
113} 113}
114 114
115/* Ä */ 115/* Ä */
116void dance_QUOT_finished(qk_tap_dance_state_t *state, void *user_data) { 116void dance_QUOT_finished(tap_dance_state_t *state, void *user_data) {
117 if (state->count == 2) { 117 if (state->count == 2) {
118 tap_code16(A(KC_QUOT)); 118 tap_code16(A(KC_QUOT));
119 } else { 119 } else {
120 tap_code(KC_QUOT); 120 tap_code(KC_QUOT);
121 } 121 }
122} 122}
123void dance_QUOT_reset(qk_tap_dance_state_t *state, void *user_data) { 123void dance_QUOT_reset(tap_dance_state_t *state, void *user_data) {
124 if (state->count == 2) { 124 if (state->count == 2) {
125 unregister_code16(A(KC_QUOT)); 125 unregister_code16(A(KC_QUOT));
126 } else { 126 } else {
@@ -128,7 +128,7 @@ void dance_QUOT_reset(qk_tap_dance_state_t *state, void *user_data) {
128 } 128 }
129} 129}
130 130
131qk_tap_dance_action_t tap_dance_actions[] = { 131tap_dance_action_t tap_dance_actions[] = {
132 [SSHT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_SSHT_finished, dance_SSHT_reset), 132 [SSHT] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_SSHT_finished, dance_SSHT_reset),
133 [LBRC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LBRC_finished, dance_LBRC_reset), 133 [LBRC] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_LBRC_finished, dance_LBRC_reset),
134 [SCLN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_SCLN_finished, dance_SCLN_reset), 134 [SCLN] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_SCLN_finished, dance_SCLN_reset),
diff --git a/users/zyber/zyber.h b/users/zyber/zyber.h
index d5f114e852..018d0f5e85 100644
--- a/users/zyber/zyber.h
+++ b/users/zyber/zyber.h
@@ -23,11 +23,11 @@ enum tap_dances {
23 23
24bool process_record_user(uint16_t keycode, keyrecord_t *record); 24bool process_record_user(uint16_t keycode, keyrecord_t *record);
25 25
26void dance_SSHT_finished(qk_tap_dance_state_t *state, void *user_data); 26void dance_SSHT_finished(tap_dance_state_t *state, void *user_data);
27void dance_SSHT_reset(qk_tap_dance_state_t *state, void *user_data); 27void dance_SSHT_reset(tap_dance_state_t *state, void *user_data);
28void dance_LBRC_finished(qk_tap_dance_state_t *state, void *user_data); 28void dance_LBRC_finished(tap_dance_state_t *state, void *user_data);
29void dance_LBRC_reset(qk_tap_dance_state_t *state, void *user_data); 29void dance_LBRC_reset(tap_dance_state_t *state, void *user_data);
30void dance_SCLN_finished(qk_tap_dance_state_t *state, void *user_data); 30void dance_SCLN_finished(tap_dance_state_t *state, void *user_data);
31void dance_SCLN_reset(qk_tap_dance_state_t *state, void *user_data); 31void dance_SCLN_reset(tap_dance_state_t *state, void *user_data);
32void dance_QUOT_finished(qk_tap_dance_state_t *state, void *user_data); 32void dance_QUOT_finished(tap_dance_state_t *state, void *user_data);
33void dance_QUOT_reset(qk_tap_dance_state_t *state, void *user_data); 33void dance_QUOT_reset(tap_dance_state_t *state, void *user_data);