aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/tests/toggle-layer/toggle-mode-off/native_posix_64.keymap
diff options
context:
space:
mode:
authorNicolas Munnich <[email protected]>2024-12-13 00:13:56 +0000
committerGitHub <[email protected]>2024-12-12 19:13:56 -0500
commit4ef231f4bba87151acfbd1cf3babd83b69813e45 (patch)
tree4f8ed2da58aa8284d6fdc010983279140819f73a /app/tests/toggle-layer/toggle-mode-off/native_posix_64.keymap
parent7013158a6715d94b34e8c471ce25bb5005f3bb49 (diff)
downloadzmk-4ef231f4bba87151acfbd1cf3babd83b69813e45.tar.gz
zmk-4ef231f4bba87151acfbd1cf3babd83b69813e45.zip
feat: Added `toggle-mode`, allowing toggle-on and toggle-off (#2555)
feat: added toggle mode to key and layer toggles docs: documented toggle mode changes
Diffstat (limited to 'app/tests/toggle-layer/toggle-mode-off/native_posix_64.keymap')
-rw-r--r--app/tests/toggle-layer/toggle-mode-off/native_posix_64.keymap25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/tests/toggle-layer/toggle-mode-off/native_posix_64.keymap b/app/tests/toggle-layer/toggle-mode-off/native_posix_64.keymap
new file mode 100644
index 0000000000..a89182fcc2
--- /dev/null
+++ b/app/tests/toggle-layer/toggle-mode-off/native_posix_64.keymap
@@ -0,0 +1,25 @@
+#include <dt-bindings/zmk/keys.h>
+#include <behaviors.dtsi>
+#include <dt-bindings/zmk/kscan_mock.h>
+#include "../behavior_keymap.dtsi"
+
+&tog {
+ toggle-mode = "off";
+};
+
+&kscan {
+ events = <
+ ZMK_MOCK_PRESS(0,1,10)
+ ZMK_MOCK_RELEASE(0,1,10)
+ ZMK_MOCK_PRESS(0,0,10)
+ ZMK_MOCK_RELEASE(0,0,10)
+ ZMK_MOCK_PRESS(1,1,10)
+ ZMK_MOCK_RELEASE(1,1,10)
+ ZMK_MOCK_PRESS(0,0,10)
+ ZMK_MOCK_RELEASE(0,0,10)
+ ZMK_MOCK_PRESS(0,1,10)
+ ZMK_MOCK_RELEASE(0,1,10)
+ ZMK_MOCK_PRESS(0,0,10)
+ ZMK_MOCK_RELEASE(0,0,10)
+ >;
+}; \ No newline at end of file