Input: QueryInterface, a dispatcher, device methods, trigger rumble #1956
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1958"
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 RaghavVijayanand on 2026-11-25T01:45:21Z.
GameInput gaps and trigger rumble (README: "Input … Needs: Trigger rumble"). Four commits, each building and passing tests.
GameInput.h.Dispatchpolls on the title's thread.OpenWaitHandlehands out an auto-reset event that the poll thread signals while dispatch is manual.Not done, on purpose:
CreateAggregateDevicestays E_NOTIMPL. The GDK documents it as "introduced but unimplemented" in v0, the API version implemented here.Shortcuts, documented in the code:
Tests: 8 new tests plus one extended, using a fake host backend for the rumble mapping and one call into the real Windows.Gaming.Input.
Cargo.lockis unchanged: upstream had already madewindowsnon-optional, so the rebase only addsGaming_Inputto its features. Upstream's device walking andVICTORY_KEYSmerge are kept, and manualDispatchuses upstream's poll.Rebased onto current main (
940d32f). On this machine, 5 tests fail on main itself, with or without this change:descriptor::host::tests::dynamic_slots_are_held_until_released,memory::tests::lists_share_a_table_and_copies_keep_their_views, the twostride_tests::a_heap_buffer_read_*tests, andsynthetic_tests::gathers_at_a_level_match_the_hardware. Everything else passes, and clippy passes with-D warnings, with and without--all-features.Imported from Marvisak/VIctory. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-25T01:45:35Z.
Review: COMMENTED
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T02:10:44Z.
Review: COMMENTED
Static review only: victory-hle Windows-only; source review of the diff.
Input: QueryInterface, a dispatcher, device…: GameInput COM plumbing — pairs with #1942; same area, check overlap.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T02:19:29Z.
Automated triage for the maintainers.
Needs work: needs the maintainer's decision. The behaviour looks reasonable:
E_NOTIMPLthat reads astrue;Gaming_Inputfeature of the existingwindowscrate.CI passes. It breaks repo rule 2, though. The comments in
gameinput.rsname the console SDK and its header ("from the GDK'sGameInput.h", "the GDK documents CreateAggregateDevice"). They also use the header's identifiers, such asGameInputBatteryStateand method names likeIsForceFeedbackMotorPoweredOnin theDEVICEtable.mainuses only slot offsets and our own descriptions. Please reword those comments. Whether the interface ids copied from that header are acceptable underdocs/asset-policy.mdis for the maintainer to decide.Generated by Claude Code
upstream-sync referenced this pull request2026-11-25 04:06:48 +00:00
Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-26T21:57:39Z.
Comparison of the four open trigger-rumble PRs (README: "Trigger rumble"), each merged onto current main
63bcca4. Windows 11, toolchain 1.98.1; no pad here, so unit tests and CI's clippy checks only.cargo test -p victory-hle --lib -- gameinput-D warnings(default /--all-features)gameinput.rsgameinput.rs#1958 and #2095 are separate implementations of the same Windows.Gaming.Input trigger path. #1958 also carries three input changes besides rumble (device methods answering as devices, a manual-dispatch dispatcher, QueryInterface by interface id) and tests for them; #2095 is rumble only, smaller, without tests. Taking one should close the other three. Both add
"Gaming_Input"to victory-hle'swindowsfeatures, so whichever goes second will need a one-line rebase there.AI-assisted (Claude).
Imported from Marvisak/VIctory. Originally posted by kilolimaVI on 2026-11-27T10:41:34Z.
Addendum to the comparison above, on the point fuzeofficial raised on #1357 (XInput slot used as the
Gamepad.Gamepadsindex):connected[..slot]) and uses that as the Windows.Gaming.Input index, so a gap like slot 0 leaving while slot 1 stays is handled. With several pads it still relies on both APIs listing them in the same order, which neither promises (its own// shortcut:comment says the triggers of another pad may answer).With one pad both behave the same.
AI-assisted (Claude).
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.