Skip to content

Input: trigger rumble through Windows.Gaming.Input with one pad conne… - #1761

Open
bemalinho wants to merge 1 commit into
Marvisak:mainfrom
bemalinho:input-trigger-rumble
Open

bemalinho wants to merge 1 commit into
Marvisak:mainfrom
bemalinho:input-trigger-rumble

Conversation

@bemalinho

Copy link
Copy Markdown

…cted

SetRumbleState's trigger levels were dropped (XInput has no trigger motors). The host source now takes all four motor levels; grips stay on XInput, triggers go through Windows.Gaming.Input, which has no XInput slots, so they run only while a single pad is connected (shortcut). Untested on a pad.

…cted

SetRumbleState's trigger levels were dropped (XInput has no trigger
motors). The host source now takes all four motor levels; grips stay on
XInput, triggers go through Windows.Gaming.Input, which has no XInput
slots, so they run only while a single pad is connected (shortcut).
Untested on a pad.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DesertGamer

Copy link
Copy Markdown

VIctory V2: community PRs, merged and tested

Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.

Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).

⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.

Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2

Unofficial community fork of Marvisak/VIctory, GPL-3.0.

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static review only: victory-hle is Windows-only — nothing compiles on macOS; source review of the diff.

Rumble goes through Windows.Gaming.Input with one pad connected: sole_pad() gates on exactly one connected pad, apartment() checks COM init, wgi_rumble maps Motors to the WGI impulse API, and the InputDevice::rumble impl dispatches. The one-pad restriction avoids the WGI ambiguity with multiple pads — reasonable, documented in the title. Worth a Windows session with a real pad.

Copy link
Copy Markdown
Owner

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 current main.


Generated by Claude Code

@DenRakEiw DenRakEiw left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested PR head directly on Windows 11 x64 (Rust 1.98.1 MSVC):

  • cargo test -p victory-hle --lib gameinput:: — 8 passed, 0 failed
  • cargo clippy -p victory-hle --all-targets — 0 warnings
  • cargo xtask policy — ok
  • Merge status: Currently CONFLICTING with origin/main (940d32f). Once rebased onto main, happy to re-verify and approve!

AI-assisted (Gemini 4 Neon).

@kilolimaVI

Copy link
Copy Markdown

This no longer merges onto current main (conflict in crates/victory-hle/src/modules/gameinput.rs). #1958 and #2095 do the same and merge cleanly; comparison on #1958.

AI-assisted (Claude).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants