GameInput: deliver registered reading callbacks #2555
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2557"
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?
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T15:43:13Z.
Problem
RegisterReadingCallbackreturnsS_OKand a token, but changes in host input never reach the registered callback.Fix
Dispatch new readings through the existing GameInput poll loop with the v0 callback signature. Respect the input-kind and device filters, accumulate stick or trigger movement against the last report for each subscriber, and deliver button changes immediately. Keep the reading alive during the call and use the existing stop/unregister lifecycle.
Verification
da82e44, the synthetic test registers successfully but records zero callbacks after the stick crosses the threshold and a button is pressed.Microsoft GameInput callback behavior · v0 callback signature history · Coordination claim
If you cherry-pick or rebase this commit, please retain its Git author. If you fold the change into another commit, please add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.AI-assisted. Verification used synthetic host input.
CI follow-up
The GameInput regression passed in the original workflow. The shader harness failed on the same WARP assertion on
da82e44itself. Upstream67e8ae1zeroes the test UAVs and passes CI. All 10 GameInput tests and strict HLE Clippy also pass with the same patch on67e8ae1.Original main run · Fixed main run · Retested commit
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T18:38:33Z.
Automated triage for the maintainers.
Needs work (unchanged). The head (
a6419be) has not changed since the last review.register_readingincrates/victory-hle/src/modules/gameinput.rsstill replaces the documented shortcut onmain(the title registers no reading callback; it polls) with about 300 lines of delivery code.On your reply: thanks for confirming that no title run shows the registration yet, and that the accumulated-delta threshold rule has not been compared with the console runtime. That leaves the same two things that would change the verdict: a title-run log showing the existing
input reading callbacks are never calledwarning, and, if the callback turns out to be needed, a reference for how the threshold is applied. CI:checkpassing.Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-25T18:41:52Z.
Re: the triage note. The before/after at
a6419beuses a synthetic guest calling the v0 entry point. I found no title-run trace showing registration, so the evidence establishes the API behavior in the fixture only. The existing warning on main would confirm the call if it appears in a title run.Microsoft documents delivery on subsequent state changes and a minimum movement filter for analog input. The exact accumulated-delta rule in this patch still needs comparison with native v0 behavior. I’ll leave the PR pending the title trace. Registration remarks · Analog filter
AI-assisted.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.