GameInput: deliver registered reading callbacks #2557
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2557
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 15:43 UTC · original
andrewpozdnakov7-jpg:codex2/gameinput-reading-callback→main· +323 −37 · 1 files · 2 commits · openProblem
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
@Marvisak on GitHub · 2026-11-25 18:38 UTC · original · edited 2026-11-26 00:24 UTC
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
@andrewpozdnakov7-jpg on GitHub · 2026-11-25 18:41 UTC · original
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.