diff options
| author | Nick Winans <nick.win999@gmail.com> | 2020-10-23 00:55:50 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-23 00:55:50 -0500 |
| commit | 70ffcca3b42f5dacf5be155a56b11387a7e68b63 (patch) | |
| tree | 80954a5afb17978ad897e3dde0385cfee0a902c9 /app/tests/hold-tap/balanced/many-nested/native_posix.keymap | |
| parent | 162c6b77db27c158b05ed65effa8d8ded68ba9b7 (diff) | |
| parent | 04b7a759f4c676c96da261a724cef1517614dea1 (diff) | |
Merge branch 'main' into bluetooth/battery-reporting
Diffstat (limited to 'app/tests/hold-tap/balanced/many-nested/native_posix.keymap')
| -rw-r--r-- | app/tests/hold-tap/balanced/many-nested/native_posix.keymap | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app/tests/hold-tap/balanced/many-nested/native_posix.keymap b/app/tests/hold-tap/balanced/many-nested/native_posix.keymap new file mode 100644 index 0000000..3cb04c3 --- /dev/null +++ b/app/tests/hold-tap/balanced/many-nested/native_posix.keymap @@ -0,0 +1,41 @@ +#include <dt-bindings/zmk/keys.h> +#include <behaviors.dtsi> +#include <dt-bindings/zmk/kscan-mock.h> + +/ { + behaviors { + ht_bal: behavior_hold_tap_balanced { + compatible = "zmk,behavior-hold-tap"; + label = "HOLD_TAP_BALANCED"; + #binding-cells = <2>; + flavor = "balanced"; + tapping_term_ms = <300>; + bindings = <&kp>, <&kp>; + }; + }; + + keymap { + compatible = "zmk,keymap"; + label ="Default keymap"; + + default_layer { + bindings = < + &ht_bal LSFT F &ht_bal LCTL J + &ht_bal LGUI H &ht_bal LALT L + >; + }; + }; +}; + +&kscan { + events = < + ZMK_MOCK_PRESS(0,0,100) + ZMK_MOCK_PRESS(0,1,100) + ZMK_MOCK_PRESS(1,0,100) + ZMK_MOCK_PRESS(1,1,100) + ZMK_MOCK_RELEASE(0,0,100) + ZMK_MOCK_RELEASE(0,1,100) + ZMK_MOCK_RELEASE(1,0,100) + ZMK_MOCK_RELEASE(1,1,100) + >; +}; |
