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.
This commit is contained in:
Pete Johanson
2026-01-14 11:17:43 -07:00
committed by GitHub
parent 88db5f34fe
commit 24487bd974
7 changed files with 82 additions and 3 deletions

View File

@@ -1 +1,2 @@
s/^d_02: @[0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9][0-9][0-9][0-9] .{19}/profile 0 /p
s/^d_00: @[0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9][0-9][0-9][0-9] .{19}.*zmk_hid_mouse_button_/mouse button /p

View File

@@ -21,6 +21,7 @@
, <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;
};

View File

@@ -24,3 +24,12 @@ profile 0 <dbg> ble_central: notify_func: payload
profile 0 00 64 00 64 00 00 00 00 00 |.d.d.... .
profile 0 <dbg> ble_central: notify_func: payload
profile 0 00 28 00 32 00 00 00 00 00 |.(.2.... .
mouse button press: Button 1 count 1
mouse button press: Mouse buttons set to 0x02
profile 0 <dbg> ble_central: notify_func: payload
profile 0 02 00 00 00 00 00 00 00 00 |........ .
mouse button release: Button 1 count: 0
mouse button release: Button 1 released
mouse button release: Mouse buttons set to 0x00
profile 0 <dbg> ble_central: notify_func: payload
profile 0 00 00 00 00 00 00 00 00 00 |........ .