qmk/tests/tap_dance
Stephen Ostermiller 1a954e8da5
Reduce tap dance memory usage, move state out of data (#25415)
* Use less tap dance memory.

Use dynamically allocated sparse array for tap dance state, dynamically allocate tap dance state when needed and free it when the tap dance is done.

* new approach

* Use null, check for null

* Reformat with docker

* Use uint8 with idx rather than uint16 with keycode in state

* fix accidental change

* reformat

* Add null check

* add documentation tip suggested by tzarc

* Only allow tap dance state allocation on key down, not on key up

Co-authored-by: Sergey Vlasov <sigprof@gmail.com>

* Only allow tap dance allocation on key down, not on key up

Co-authored-by: Sergey Vlasov <sigprof@gmail.com>

* add user action required section

---------

Co-authored-by: Sergey Vlasov <sigprof@gmail.com>
2025-11-23 22:32:36 +11:00
..
tap_dance_layers Tap dance introspection (#24049) 2024-07-06 00:57:54 +01:00
config.h tap-dance: Rename tests so that tap_dance is used consistently (#17396) 2022-06-16 08:05:27 +02:00
examples.c Reduce tap dance memory usage, move state out of data (#25415) 2025-11-23 22:32:36 +11:00
examples.h On-each-release tap dance function (#20255) 2023-07-26 21:04:35 -07:00
test.mk Tap dance introspection (#24049) 2024-07-06 00:57:54 +01:00
test_examples.cpp On-each-release tap dance function (#20255) 2023-07-26 21:04:35 -07:00