diff options
author | KemoNine <mcrosson@users.noreply.github.com> | 2020-12-29 11:57:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 11:57:49 -0500 |
commit | d207c3c30f7f2d0648b32d59f481498fe048230c (patch) | |
tree | 885efa8c436c58fca8a5c39a952898f36d3da4e4 /app/tests/to-layer/normal/native_posix.keymap | |
parent | 43f6d798be70ef247b0717730ec34202cb81e96d (diff) |
(feature) Add &to keycode/behavior (#489)
feat(behaviors): Add `&to` behavior to switch to a layer.
Diffstat (limited to 'app/tests/to-layer/normal/native_posix.keymap')
-rw-r--r-- | app/tests/to-layer/normal/native_posix.keymap | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/tests/to-layer/normal/native_posix.keymap b/app/tests/to-layer/normal/native_posix.keymap new file mode 100644 index 0000000..056341f --- /dev/null +++ b/app/tests/to-layer/normal/native_posix.keymap @@ -0,0 +1,29 @@ +#include <dt-bindings/zmk/keys.h> +#include <behaviors.dtsi> +#include <dt-bindings/zmk/kscan-mock.h> +#include "../behavior_keymap.dtsi" + +// Press key A +// To layer 1 +// Press key J +// To layer 0 +// Press key S +// To layer 0 -- does nothing + +&kscan { + events = <ZMK_MOCK_PRESS(1,1,10) + ZMK_MOCK_RELEASE(1,1,10) + ZMK_MOCK_PRESS(0,1,10) + ZMK_MOCK_RELEASE(0,1,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(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) + >; +};
\ No newline at end of file |