diff options
Diffstat (limited to 'quantum/process_keycode/process_tap_dance.h')
-rw-r--r-- | quantum/process_keycode/process_tap_dance.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/quantum/process_keycode/process_tap_dance.h b/quantum/process_keycode/process_tap_dance.h index e2c74efe9..d7b857bdc 100644 --- a/quantum/process_keycode/process_tap_dance.h +++ b/quantum/process_keycode/process_tap_dance.h | |||
@@ -11,8 +11,9 @@ typedef struct | |||
11 | uint8_t count; | 11 | uint8_t count; |
12 | uint16_t keycode; | 12 | uint16_t keycode; |
13 | uint16_t timer; | 13 | uint16_t timer; |
14 | bool active:1; | 14 | bool interrupted; |
15 | bool pressed:1; | 15 | bool pressed; |
16 | bool finished; | ||
16 | } qk_tap_dance_state_t; | 17 | } qk_tap_dance_state_t; |
17 | 18 | ||
18 | #define TD(n) (QK_TAP_DANCE + n) | 19 | #define TD(n) (QK_TAP_DANCE + n) |
@@ -26,6 +27,7 @@ typedef struct | |||
26 | qk_tap_dance_user_fn_t on_dance_finished; | 27 | qk_tap_dance_user_fn_t on_dance_finished; |
27 | qk_tap_dance_user_fn_t on_reset; | 28 | qk_tap_dance_user_fn_t on_reset; |
28 | } fn; | 29 | } fn; |
30 | qk_tap_dance_state_t state; | ||
29 | void *user_data; | 31 | void *user_data; |
30 | } qk_tap_dance_action_t; | 32 | } qk_tap_dance_action_t; |
31 | 33 | ||
@@ -48,7 +50,7 @@ typedef struct | |||
48 | .fn = { user_fn_on_each_tap, user_fn_on_dance_finished, user_fn_on_reset } \ | 50 | .fn = { user_fn_on_each_tap, user_fn_on_dance_finished, user_fn_on_reset } \ |
49 | } | 51 | } |
50 | 52 | ||
51 | extern const qk_tap_dance_action_t tap_dance_actions[]; | 53 | extern qk_tap_dance_action_t tap_dance_actions[]; |
52 | 54 | ||
53 | /* To be used internally */ | 55 | /* To be used internally */ |
54 | 56 | ||