Restore keyboard/mouse after controller use and preserve sampled short taps #146
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!146
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-146"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@yyc160 on GitHub · 2026-12-05 19:43 UTC · original
yyc160:fix/recover-mapped-input→main· +202 −49 · 4 files · 2 commits · merged 2026-12-05 21:02 UTCTwo ways mapped actions can disappear without a bad
controls.ini:autoused the process-lifetime "a pad has ever been used" diagnostic as an ownership decision. One input on a physical controller could permanently stop mapped KB/M and prevent mouse recapture. Use a short, per-slot activity timeout and forget disconnected devices. Explicitmnkkeeps mapping; legacypadbehaviour is unchanged.No new default bindings, title hooks, vehicle mappings or camera algorithm. The existing
controls.iniparser, right-stick smoothing, direct camera, world map and key-cap choices remain in place. A handoff clears pending direct camera motion as well as the stick filter.Checks:
cargo test --release --locked -p larp-hle --lib gameinputandcargo check --release --locked -p larp --features diagnostics. Input replays cover the 16 ms tap, capture changes, per-button expiry, held controller input, unplugging and two controllers. No physical controller hot-plug or in-title playthrough is claimed.AI-assisted by GPT-6.2 Astra.