Use QUICK_TAP_MS macros
This commit is contained in:
parent
98a55c43f0
commit
b683c88bf8
3 changed files with 16 additions and 10 deletions
|
@ -44,6 +44,8 @@ ISSUES, WORKAROUNDS and a "ZMK-WISHLIST"
|
|||
#define FN 4
|
||||
#define UC 5
|
||||
|
||||
#define QUICK_TAP_MS 220
|
||||
|
||||
#include "combos.dtsi" // source after layer shortcuts
|
||||
#include "mouse.dtsi"
|
||||
|
||||
|
@ -63,7 +65,7 @@ ISSUES, WORKAROUNDS and a "ZMK-WISHLIST"
|
|||
< {
|
||||
flavor = "balanced";
|
||||
tapping-term-ms = <200>;
|
||||
quick-tap-ms = <220>; // double-tap + hold repeats tap-key
|
||||
quick-tap-ms = <QUICK_TAP_MS>; // double-tap + hold repeats tap-key
|
||||
// global-quick-tap;
|
||||
};
|
||||
|
||||
|
@ -77,8 +79,8 @@ ISSUES, WORKAROUNDS and a "ZMK-WISHLIST"
|
|||
|
||||
ZMK_BEHAVIOR(hml, hold_tap, // left-hand HRMs
|
||||
flavor = "balanced";
|
||||
tapping-term-ms = <280>;
|
||||
quick-tap-ms = <220>;
|
||||
tapping-term-ms = <200>;
|
||||
quick-tap-ms = <QUICK_TAP_MS>;
|
||||
global-quick-tap-ms = <150>;
|
||||
bindings = <&kp>, <&kp>;
|
||||
hold-trigger-key-positions = <KEYS_RT THUMBS HRM_LT>; // include left-hand HRMs for chording
|
||||
|
@ -86,8 +88,8 @@ ZMK_BEHAVIOR(hml, hold_tap, // left-hand HRMs
|
|||
|
||||
ZMK_BEHAVIOR(hmr, hold_tap, // right-hand HRMs
|
||||
flavor = "balanced";
|
||||
tapping-term-ms = <280>;
|
||||
quick-tap-ms = <220>;
|
||||
tapping-term-ms = <200>;
|
||||
quick-tap-ms = <QUICK_TAP_MS>;
|
||||
global-quick-tap-ms = <150>;
|
||||
bindings = <&kp>, <&kp>;
|
||||
hold-trigger-key-positions = <KEYS_LT THUMBS HRM_RT>; // include right-hand HRMs for chording
|
||||
|
|
|
@ -7,8 +7,9 @@
|
|||
╰───────╮ LH2 LH1 LH0 │ │ RH0 RH1 RH2 ╭───────╯
|
||||
╰─────────────╯ ╰─────────────╯ */
|
||||
|
||||
// must be same for all combos to avoid #986, possibly related to #905
|
||||
// COMBO_TERM must be same for all combos to avoid #986, possibly related to #905
|
||||
#define COMBO_TERM 30
|
||||
#define COMBO_QUICK_TAP_MS 150
|
||||
|
||||
/* Punctuation (horizontal left hand) */
|
||||
ZMK_COMBO(num, &tog NUM, LT3 LT1, DEF NUM)
|
||||
|
|
|
@ -48,13 +48,16 @@
|
|||
#if !defined COMBO_TERM
|
||||
#define COMBO_TERM 30
|
||||
#endif
|
||||
#if !defined COMBO_QUICK_TAP_MS
|
||||
#define COMBO_QUICK_TAP_MS -1
|
||||
#endif
|
||||
|
||||
#define ZMK_COMBO(name, combo_bindings, keypos, combo_layers) \
|
||||
/ { \
|
||||
combos { \
|
||||
compatible = "zmk,combos"; \
|
||||
combo_ ## name { \
|
||||
global-quick-tap-ms = <125>; \
|
||||
global-quick-tap-ms = <COMBO_QUICK_TAP_MS>; \
|
||||
timeout-ms = <COMBO_TERM>; \
|
||||
bindings = <combo_bindings>; \
|
||||
key-positions = <keypos>; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue