Input: QueryInterface, a dispatcher, device methods, trigger rumble #1958
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!1958
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@RaghavVijayanand on GitHub · 2026-11-25 01:45 UTC · original
RaghavVijayanand:hle/input-gaps→main· +902 −77 · 3 files · 4 commits · openGameInput 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.@Marvisak on GitHub · 2026-11-25 02:19 UTC · original · edited 2026-11-25 03:21 UTC
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
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.