qmk_sweep_skeletyl/quantum
Gergely Nagy 29f64d7a93 tap-dance: Major rework, to make it more reliable
This reworks how the tap-dance feature works: instead of one global
state, we have a state for each tap-dance key, so we can cancel them
when another tap-dance key is in flight. This fixes #527.

Since we have a state for each key, we can avoid situation where a keyup
would mess with our global state. This fixes #563.

And while here, we also make sure to fire events only once, and this
fixes #574.

There is one breaking change, though: tap-dance debugging support was
removed, because dumping the whole state would increase the firmware
size too much. Any keymap that made use of this, will have to be
updated (but there's no such keymap in the repo).

Also, there's a nice trick used in this rework: we need to iterate
through tap_dance_actions in a few places, to check for timeouts, and so
on. For this, we'd need to know the size of the array. We can't discover
that at compile-time, because tap-dance gets compiled separately. We'd
like to avoid having to terminate the list with a sentinel value,
because that would require updates to all keymaps that use the feature.
So, we keep track of the highest tap-dance code seen so far, and iterate
until that index.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
2016-08-17 15:05:58 +02:00
..
audio Add IN_LIKE_FLINT song 2016-07-30 01:52:33 -07:00
keymap_extras Removed unnecessary comment 2016-08-07 11:07:38 -05:00
process_keycode tap-dance: Major rework, to make it more reliable 2016-08-17 15:05:58 +02:00
serial_link Remove extra serial_link subdirectory 2016-07-06 13:26:20 +03:00
template fixes quantum template (actually) 2016-07-07 12:22:10 -04:00
tools Backlight abstraction and other changes (#439) 2016-06-23 22:18:20 -04:00
visualizer Move the visualizer_user file to keymap folder 2016-07-07 14:42:16 +03:00
analog.c quantum separated 2015-10-26 14:49:46 -04:00
analog.h quantum separated 2015-10-26 14:49:46 -04:00
config_common.h Backlight abstraction and other changes (#439) 2016-06-23 22:18:20 -04:00
keycode_config.c Cleans up quantum/keymap situation, removes extra lufa folders (#416) 2016-06-18 14:30:24 -04:00
keycode_config.h Add ChibiOS support for QMK (#465) 2016-07-01 10:04:53 -04:00
keymap.h fix typo 2016-08-12 20:38:26 +09:00
keymap_common.c Fixes midi functionality 2016-07-24 22:07:43 -04:00
light_ws2812.c updates rgblight implementation, makes non-timer stuff compatible with audio 2016-07-07 11:33:34 -04:00
light_ws2812.h Integrate WS2812 code into quantum core 2016-01-24 17:05:47 -08:00
matrix.c fix/annotate wait_us lines 2016-07-06 00:24:31 -04:00
quantum.c process_unicode: Call process_ucis() automatically 2016-08-15 10:08:53 +02:00
quantum.h Most ergodox keymaps compiles on Infinity 2016-07-29 20:48:20 +03:00
rgblight.c Simplify HSV->RGB calculation 2016-07-26 15:31:22 -05:00
rgblight.h updates rgblight implementation, makes non-timer stuff compatible with audio 2016-07-07 11:33:34 -04:00