Files
zmk/app/tests/ble/split/peripheral-input/peripheral.overlay
Pete Johanson 24487bd974 feat(pointing): Release pressed keys on disconnect (#3204)
Match the behavior for key press release on split peripheral disconnect,
and track pressed input keys to release them as needed on disconnect.
2026-01-14 13:17:43 -05:00

33 lines
690 B
Plaintext

#include <dt-bindings/zmk/kscan_mock.h>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include "shared.dtsi"
&kscan {
events = <>;
/delete-property/ exit-after;
};
/ {
mock_input: mock_input {
compatible = "zmk,input-mock";
status = "okay";
event-startup-delay = <4000>;
event-period = <2000>;
events
= <INPUT_EV_REL INPUT_REL_X 100 0>
, <INPUT_EV_REL INPUT_REL_Y 100 1>
, <INPUT_EV_REL INPUT_REL_X 40 0>
, <INPUT_EV_REL INPUT_REL_Y 50 1>
, <INPUT_EV_KEY INPUT_BTN_1 1 1>
;
exit-after;
};
};
&split_input {
device = <&mock_input>;
};