mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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 |........ .
|
||||
|
||||
Reference in New Issue
Block a user