chore: Add basic tests for Studio's layer manipulation (#3164)

chore: Add test behaviors for Studio testing

chore: Add basic tests for studio layer adjustment

chore: Fixes from code review
This commit is contained in:
Nicolas Munnich
2026-01-08 01:01:05 +01:00
committed by GitHub
parent 70ab6b243a
commit 19582174f3
38 changed files with 573 additions and 3 deletions

View File

@@ -0,0 +1,32 @@
#include <dt-bindings/zmk/keys.h>
#include <behaviors.dtsi>
#include <dt-bindings/zmk/kscan_mock.h>
/ {
behaviors {
add_layer: add_layer {
compatible = "zmk,behavior-add-layer";
#binding-cells = <0>;
};
set_binding: set_binding {
compatible = "zmk,behavior-set-layer-binding-at-idx";
#binding-cells = <2>;
bindings = <&kp A>, <&kp B>;
};
};
keymap {
compatible = "zmk,keymap";
default_layer {
bindings = <
&add_layer &set_binding 1 0
&mo 1 &kp B>;
};
layer_1 {
status = "reserved";
};
};
};