forked from kofal.net/zmk
Feature: input processor behavior invocation (#2714)
refactor(pointing): Allow stopping event propagation
Allow input processors to return a special value if a given input event
should not be further processed/propagated.
feat(pointing): Add behavior input processor
Add the ability to intercept certain input events and trigger behaviors
when they occur.
Co-authored-by: Jorge Villalobos <minusfive@users.noreply.github.com>
Co-authored-by: Cem Aksoylar <caksoylar@users.noreply.github.com>
This commit is contained in:
@@ -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>
|
||||
#include <input/processors/temp_layer.dtsi>
|
||||
#include <input/processors/behaviors.dtsi>
|
||||
16
app/dts/input/processors/behaviors.dtsi
Normal file
16
app/dts/input/processors/behaviors.dtsi
Normal file
@@ -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>;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user