]> git.donarmstrong.com Git - qmk_firmware.git/commit
tap-dance: Support for holding keys
authorGergely Nagy <algernon@madhouse-project.org>
Wed, 20 Jul 2016 08:22:52 +0000 (10:22 +0200)
committerGergely Nagy <algernon@madhouse-project.org>
Fri, 22 Jul 2016 07:10:17 +0000 (09:10 +0200)
commit70e42489dec375e558d8e81ed5ebfb69b4f3dbd9
treee420a956ac4a09848eb5df5a766861cfbaca8de5
parent8e1d96983aad19b3e4e72ece5db822e92d91342b
tap-dance: Support for holding keys

With this change, tap dance will now store the pressed state of the
tap-dance key, and allow one to make an action sooner, while the key is
still held, and only unregister when the key is released.

The registration must happen in the `on_dance_finished` callback, while
unregistering goes to `on_reset`. The surrounding code makes sure not to
call either multiple times.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
quantum/process_keycode/process_tap_dance.c
quantum/process_keycode/process_tap_dance.h