mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-09-07 10:53:17 +02:00
[Core] Options to constrain Speculative Hold: SPECULATIVE_HOLD_ONE_KEY and SPECULATIVE_HOLD_FLOW_TERM. (#26099)
This commit is contained in:
@@ -197,9 +197,6 @@ bool is_flow_tap_key(uint16_t keycode);
|
||||
*/
|
||||
uint16_t get_flow_tap_term(uint16_t keycode, keyrecord_t *record, uint16_t prev_keycode);
|
||||
|
||||
/** 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.
|
||||
@@ -211,6 +208,11 @@ void flow_tap_update_last_event(keyrecord_t *record);
|
||||
bool within_flow_tap_term(uint16_t keycode, keyrecord_t *record);
|
||||
#endif // FLOW_TAP_TERM
|
||||
|
||||
#if defined(FLOW_TAP_TERM) || defined(SPECULATIVE_HOLD_FLOW_TERM)
|
||||
/** Updates the Flow Tap last key and timer. */
|
||||
void flow_tap_update_last_event(keyrecord_t *record);
|
||||
#endif // defined(FLOW_TAP_TERM) || defined(SPECULATIVE_HOLD_FLOW_TERM)
|
||||
|
||||
#ifdef DYNAMIC_TAPPING_TERM_ENABLE
|
||||
extern uint16_t g_tapping_term;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user