summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Poulhiès <dkm@kataplop.net>2022-10-12 22:32:37 +0200
committerMarc Poulhiès <dkm@kataplop.net>2023-01-20 22:50:28 +0100
commit6efe439ef5ed5e9e879a76abb43a6043be584e3b (patch)
tree034add137ea14fa638286f851d8c86ff2d491882
parent46c10f53ddc19291769a6abafca43586d3ea64a1 (diff)
rust: Add tap_hold interval
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 <dkm@kataplop.net>
-rw-r--r--firmware/rust/src/layout.rs8
1 files 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),