From 6efe439ef5ed5e9e879a76abb43a6043be584e3b Mon Sep 17 00:00:00 2001 From: Marc Poulhiès Date: Wed, 12 Oct 2022 22:32:37 +0200 Subject: rust: Add tap_hold interval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HoldTap don't play well with games where you may need to hold down some keys without triggering the layer change. Signed-off-by: Marc Poulhiès --- firmware/rust/src/layout.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/firmware/rust/src/layout.rs b/firmware/rust/src/layout.rs index 5e1a086..835e2f1 100644 --- a/firmware/rust/src/layout.rs +++ b/firmware/rust/src/layout.rs @@ -28,15 +28,15 @@ pub static FD : CustomActions = CustomActions::FreqDown; // HoldTap for real keys const D_ALT: Action = HoldTap { timeout: 200, - tap_hold_interval: 0, + tap_hold_interval: 199, config: HoldTapConfig::Default, hold: &k(LAlt), tap: &k(D), }; const K_ALT: Action = HoldTap { - timeout: 1000, - tap_hold_interval: 0, + timeout: 200, + tap_hold_interval: 199, config: HoldTapConfig::Default, hold: &k(RAlt), tap: &k(K), @@ -44,7 +44,7 @@ const K_ALT: Action = HoldTap { const F_L1: Action = HoldTap { timeout: 200, - tap_hold_interval: 0, + tap_hold_interval: 199, config: HoldTapConfig::Default, hold: &l(1), tap: &k(F), -- cgit v1.2.3