aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/dts/input
diff options
context:
space:
mode:
Diffstat (limited to 'app/dts/input')
-rw-r--r--app/dts/input/processors.dtsi3
-rw-r--r--app/dts/input/processors/behaviors.dtsi16
2 files changed, 18 insertions, 1 deletions
diff --git a/app/dts/input/processors.dtsi b/app/dts/input/processors.dtsi
index d072c0fcfc..17398bada7 100644
--- a/app/dts/input/processors.dtsi
+++ b/app/dts/input/processors.dtsi
@@ -7,4 +7,5 @@
#include <input/processors/scaler.dtsi>
#include <input/processors/code_mapper.dtsi>
#include <input/processors/transform.dtsi>
-#include <input/processors/temp_layer.dtsi> \ No newline at end of file
+#include <input/processors/temp_layer.dtsi>
+#include <input/processors/behaviors.dtsi> \ No newline at end of file
diff --git a/app/dts/input/processors/behaviors.dtsi b/app/dts/input/processors/behaviors.dtsi
new file mode 100644
index 0000000000..a50f9384b0
--- /dev/null
+++ b/app/dts/input/processors/behaviors.dtsi
@@ -0,0 +1,16 @@
+/*
+ * Copyright (c) 2024 The ZMK Contributors
+ *
+ * SPDX-License-Identifier: MIT
+ */
+
+#include <zephyr/dt-bindings/input/input-event-codes.h>
+
+/ {
+ zip_button_behaviors: zip_button_behaviors {
+ compatible = "zmk,input-processor-behaviors";
+ #input-processor-cells = <0>;
+ codes = <INPUT_BTN_0 INPUT_BTN_1 INPUT_BTN_2>;
+ bindings = <&none &none &none>;
+ };
+}; \ No newline at end of file