diff options
| author | Nimish Gåtam | 2025-11-02 00:17:50 +0100 |
|---|---|---|
| committer | GitHub | 2025-11-02 00:17:50 +0100 |
| commit | 8c93a33cd3c77ad3296c84a642d5f889fd13fac7 (patch) | |
| tree | 135080c17b8e864a4f0cf422caececa1d844daf8 /quantum/action_tapping.h | |
| parent | 6aade0ecdc7283b470a6dd1cccaa61268e3d5c53 (diff) | |
making flowtap timer public so it can be used easily with combos (#25731)
Diffstat (limited to 'quantum/action_tapping.h')
| -rw-r--r-- | quantum/action_tapping.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/quantum/action_tapping.h b/quantum/action_tapping.h index 0cf4aa1200..8220952706 100644 --- a/quantum/action_tapping.h +++ b/quantum/action_tapping.h @@ -169,6 +169,16 @@ uint16_t get_flow_tap_term(uint16_t keycode, keyrecord_t *record, uint16_t prev_ /** Updates the Flow Tap last key and timer. */ void flow_tap_update_last_event(keyrecord_t *record); + +/** + * Checks if the pressed key is within the flow tap term. + * Can be used to avoid triggering combos or other actions within the flow tap term. + * + * @param keycode The keycode of the pressed key. + * @param record The keyrecord of the pressed key. + * @return True if the pressed key is within the flow tap term; false otherwise. + */ +bool within_flow_tap_term(uint16_t keycode, keyrecord_t *record); #endif // FLOW_TAP_TERM #ifdef DYNAMIC_TAPPING_TERM_ENABLE |