From 29daa02b02408ff1712b26f9d0da30ae3b794875 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Thu, 28 Dec 2023 19:41:29 +0100 Subject: update to current state https://getreuer.info/posts/keyboards/achordion/ https://sunaku.github.io/home-row-mods.html#typing-streaks --- common/achordion.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'common/achordion.h') diff --git a/common/achordion.h b/common/achordion.h index e6bb534..dfa8dc2 100644 --- a/common/achordion.h +++ b/common/achordion.h @@ -53,6 +53,27 @@ #include "quantum.h" +/** + * Suppress tap-hold mods within a *typing streak* by defining + * ACHORDION_STREAK. This can help preventing accidental mod + * activation when performing a fast tapping sequence. + * This is inspired by https://sunaku.github.io/home-row-mods.html#typing-streaks + * + * Enable with: + * + * #define ACHORDION_STREAK + * + * Adjust the maximum time between key events before modifiers can be enabled + * by defining the following callback in your keymap.c: + * + * uint16_t achordion_streak_timeout(uint16_t tap_hold_keycode) { + * return 100; // Default of 100 ms. + * } + */ +#ifdef ACHORDION_STREAK +uint16_t achordion_streak_timeout(uint16_t tap_hold_keycode); +#endif + #ifdef __cplusplus extern "C" { #endif -- cgit v1.2.3