diff options
| author | Felix Uhl <[email protected]> | 2016-08-18 12:02:31 +0200 | 
|---|---|---|
| committer | GitHub <[email protected]> | 2016-08-18 12:02:31 +0200 | 
| commit | ed6ecff292eae378eb89bf6a7b5b8dd4229b84b7 (patch) | |
| tree | b2290e1a983134e0d7fc2f328eb949c37d99961c /quantum/process_keycode/process_tap_dance.h | |
| parent | 73f13c8f26f7f3777cec9d3036628a7dd6021ee9 (diff) | |
| parent | 8144ce8852f690d5772d80ed2b96ae4af201e266 (diff) | |
| download | qmk_firmware-ed6ecff292eae378eb89bf6a7b5b8dd4229b84b7.tar.gz qmk_firmware-ed6ecff292eae378eb89bf6a7b5b8dd4229b84b7.zip | |
Merge pull request #1 from jackhumbert/master
Merging from base Repo
Diffstat (limited to 'quantum/process_keycode/process_tap_dance.h')
| -rw-r--r-- | quantum/process_keycode/process_tap_dance.h | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/quantum/process_keycode/process_tap_dance.h b/quantum/process_keycode/process_tap_dance.h index 6a1258067e..d7b857bdc6 100644 --- a/quantum/process_keycode/process_tap_dance.h +++ b/quantum/process_keycode/process_tap_dance.h @@ -11,8 +11,9 @@ typedef struct    uint8_t count;    uint16_t keycode;    uint16_t timer; -  bool active:1; -  bool pressed:1; +  bool interrupted; +  bool pressed; +  bool finished;  } qk_tap_dance_state_t;  #define TD(n) (QK_TAP_DANCE + n) @@ -26,6 +27,7 @@ typedef struct      qk_tap_dance_user_fn_t on_dance_finished;      qk_tap_dance_user_fn_t on_reset;    } fn; +  qk_tap_dance_state_t state;    void *user_data;  } qk_tap_dance_action_t; @@ -48,8 +50,7 @@ typedef struct      .fn = { user_fn_on_each_tap, user_fn_on_dance_finished, user_fn_on_reset } \    } -extern const qk_tap_dance_action_t tap_dance_actions[]; -extern bool td_debug_enable; +extern qk_tap_dance_action_t tap_dance_actions[];  /* To be used internally */ | 
