Repository navigation
GameInput: merge overlapping holds from VICTORY_KEYS - #2499
andrewpozdnakov7-jpg wants to merge 1 commit into
Conversation
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified against origin/main (940d32f):
- Merging overlapping scripted holds from
VICTORY_KEYSinto connected host pads is clean and well-tested. cargo test -p victory-hle gameinput: 9/9 passed (includingscripted_keys_merge_into_connected_host_pad).cargo clippy -p victory-hle --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 183 files ok.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
|
Automated triage for the maintainers. Recommended for a look (not an approval). In Generated by Claude Code |
Merge continuous holds during schedule initialization, including touching intervals. Preserve chronological order with stable ties and avoid Duration overflow. Addresses DrDarkDK's review on Marvisak#2718; overlaps with the approach in Marvisak#2499.
|
Automated triage for the maintainers, second look (a review against current Closing because the duplicates it merges change nothing: they arise only when a script schedules the same key twice within 0.2 s, and the title ORs key states into its table. It rewrites the same If this is mistaken, reply here with what was missed and it will be looked at again. Thank you for the contribution. |
VICTORY_KEYSholds each scheduled key for 200 ms. When two events for the same key overlap, the keyboard reading currently contains two copies of that key. The end of the earlier event can also change the ordering of still-held keys.Build continuous hold intervals once at startup. Overlapping and touching intervals for the same key share one hold, in scheduled press order. A real gap still allows the key to be released and pressed again.
The same synthetic schedule returns
A, B, Ahalfway through the overlap on940d32fandA, Bwith this change. It also checks thatA, Bstays in order past the earlier event's end, that the keys are released at the end of their holds, and that a laterAbecomes a separate press. The 10 GameInput tests, strict HLE Clippy with diagnostics, and staged asset policy passed on Windows.Coordination claim
Please retain the Git author when cherry-picking or rebasing. If you fold the change into another commit, please add
Co-authored-by: andrewpozdnakov7-jpg <andrewpozdnakov7-jpg@users.noreply.github.com>.AI-assisted with Codex.