diff options
| author | Pavlos Vinieratos <pvinis@gmail.com> | 2016-07-19 18:00:59 +0200 |
|---|---|---|
| committer | Pavlos Vinieratos <pvinis@gmail.com> | 2016-07-19 18:18:57 +0200 |
| commit | d5daec2a58019ebdb9804787e0f786e4fc3c05b9 (patch) | |
| tree | 5a2970e63ee224b4ecc001279ef8fa83864d983d /quantum/process_keycode | |
| parent | d8a979b6d50fb5a6735ceab02f5d93163609aa68 (diff) | |
| download | qmk_firmware-d5daec2a58019ebdb9804787e0f786e4fc3c05b9.tar.gz qmk_firmware-d5daec2a58019ebdb9804787e0f786e4fc3c05b9.zip | |
on_each_tap_fn is called on tap down and tap up
Diffstat (limited to 'quantum/process_keycode')
| -rw-r--r-- | quantum/process_keycode/process_tap_dance.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c index bab6bb81b..58192413f 100644 --- a/quantum/process_keycode/process_tap_dance.c +++ b/quantum/process_keycode/process_tap_dance.c | |||
| @@ -70,6 +70,7 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) { | |||
| 70 | 70 | ||
| 71 | switch(keycode) { | 71 | switch(keycode) { |
| 72 | case QK_TAP_DANCE ... QK_TAP_DANCE_MAX: | 72 | case QK_TAP_DANCE ... QK_TAP_DANCE_MAX: |
| 73 | process_tap_dance_action_on_each_tap (qk_tap_dance_state.keycode); | ||
| 73 | if (qk_tap_dance_state.keycode && qk_tap_dance_state.keycode != keycode) { | 74 | if (qk_tap_dance_state.keycode && qk_tap_dance_state.keycode != keycode) { |
| 74 | process_tap_dance_action_on_dance_finished (qk_tap_dance_state.keycode); | 75 | process_tap_dance_action_on_dance_finished (qk_tap_dance_state.keycode); |
| 75 | } else { | 76 | } else { |
| @@ -80,7 +81,6 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) { | |||
| 80 | qk_tap_dance_state.keycode = keycode; | 81 | qk_tap_dance_state.keycode = keycode; |
| 81 | qk_tap_dance_state.timer = timer_read (); | 82 | qk_tap_dance_state.timer = timer_read (); |
| 82 | qk_tap_dance_state.count++; | 83 | qk_tap_dance_state.count++; |
| 83 | process_tap_dance_action_on_each_tap (qk_tap_dance_state.keycode); | ||
| 84 | } | 84 | } |
| 85 | break; | 85 | break; |
| 86 | 86 | ||
