aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/tests/mod-morph/3-unmasked-morph/native_posix_64.keymap
diff options
context:
space:
mode:
Diffstat (limited to 'app/tests/mod-morph/3-unmasked-morph/native_posix_64.keymap')
-rw-r--r--app/tests/mod-morph/3-unmasked-morph/native_posix_64.keymap37
1 files changed, 37 insertions, 0 deletions
diff --git a/app/tests/mod-morph/3-unmasked-morph/native_posix_64.keymap b/app/tests/mod-morph/3-unmasked-morph/native_posix_64.keymap
new file mode 100644
index 0000000000..a82d3ea724
--- /dev/null
+++ b/app/tests/mod-morph/3-unmasked-morph/native_posix_64.keymap
@@ -0,0 +1,37 @@
+#include <dt-bindings/zmk/keys.h>
+#include <behaviors.dtsi>
+#include <dt-bindings/zmk/kscan_mock.h>
+
+/ {
+ behaviors {
+ mod_morph: mod_morph {
+ compatible = "zmk,behavior-mod-morph";
+ label = "MOD_MORPH_TEST";
+ #binding-cells = <0>;
+ bindings = <&kp A>, <&kp B>;
+ mods = <(MOD_LSFT|MOD_RSFT)>;
+ keep-mods = <(MOD_LSFT|MOD_RSFT)>; // no masking
+ };
+ };
+
+ keymap {
+ compatible = "zmk,keymap";
+ label ="Default keymap";
+
+ default_layer {
+ bindings = <
+ &kp LEFT_ALT &mod_morph
+ &kp LEFT_SHIFT &kp RIGHT_SHIFT
+ >;
+ };
+ };
+};
+
+&kscan {
+ events = <
+ ZMK_MOCK_PRESS(1,0,10)
+ ZMK_MOCK_PRESS(0,1,10)
+ ZMK_MOCK_RELEASE(0,1,10)
+ ZMK_MOCK_RELEASE(1,0,10)
+ >;
+};