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

@@ -122,7 +122,7 @@ void release_peripheral_input_subs(struct bt_conn *conn) {
for (size_t i = 0; i < ARRAY_SIZE(peripheral_input_slots); i++) {
if (peripheral_input_slots[i].conn == conn) {
peripheral_input_slots[i].conn = NULL;
// memset(&peripheral_input_slots[i], 0, sizeof(struct peripheral_input_slot));
zmk_input_split_peripheral_disconnected(peripheral_input_slots[i].reg);
}
}
}