HLE: native 4-motor Xbox impulse trigger haptics via Windows.Gaming.Input with XInput fallback #1357
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!1357
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1357"
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?
@wbkepler on GitHub · 2026-11-24 17:35 UTC · original
wbkepler:hle/gameinput-impulse-triggers→main· +618 −31 · 1 files · 1 commits · openSummary
GameInputRumbleParamsmotors (low_frequency,high_frequency,left_trigger,right_trigger) through a clamped finiteRumblestruct and reports0xFinDeviceInfo::rumble_motors.combase.dllWinRTWindows.Gaming.Input.Gamepad(IGamepadStatics::get_Gamepads+IGamepad::put_Vibration) with zero extra crate dependencies, falling back cleanly to 2-motorXInputSetStatewhen WinRT or a matching gamepad is unavailable.RumbleWorkerbackground thread (Hub::rumble_sink) soSetRumbleStatenever contends withXInputGetStatepolling or stalls the title's render/simulation thread.RumbleWorker, and live WinRT probing/teardown safety.Verification
cargo clippy --workspace --all-targets&-p victory --features diagnostics --all-targets— passed (0 new warnings)cargo test --workspace— passed (victory-hlegameinput: 10/10)cargo xtask policy— passed (151 files ok)@DaviTostes on GitHub · 2026-11-24 18:01 UTC · original
Coordination: this overlaps #312 (open) and the older #26 / #1104, all of which change the same rumble plumbing.
Source::rumbleto[f32; 4]and adds an SDL3 source (SDL_RumbleGamepad + SDL_RumbleGamepadTriggers), for Linux/Wine pads.Rumblestruct and adds the WinRT four-motor path + worker + zeroing.git merge-treebetween #312 and this head conflicts ingameinput.rs. TheRumblestruct here looks like the better common signature; #312 could rebase onto it and keep only the SDL3 backend (its XInput path would then come from this PR). Worth picking one signature before more of these land.I can test this on AMD/Wine (RX 9060 XT, Wine 11.22 + vkd3d 3.2) if a build is useful — though WinRT may be unavailable under Wine, so the XInput fallback is what would be exercised.
@Marvisak on GitHub · 2026-11-25 01:24 UTC · original
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-hle/src/modules/gameinput.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.