zmk/app/dts/behaviors/mouse_move.dtsi
Peter Johanson 326505c4c0 refactor: Proper per-device input listeners.
* Buffer data from input devices and only surface to HID once synd'd.
2024-09-12 00:00:28 +02:00

19 lines
499 B
Text

#include <zephyr/dt-bindings/input/input-event-codes.h>
/ {
behaviors {
/omit-if-no-ref/ mmv: mouse_move {
compatible = "zmk,behavior-input-two-axis";
#binding-cells = <1>;
x-input-code = <INPUT_REL_X>;
y-input-code = <INPUT_REL_Y>;
time-to-max-speed-ms = <300>;
acceleration-exponent = <1>;
};
};
mmv_input_listener {
compatible = "zmk,input-listener";
device = <&mmv>;
};
};