Input: trigger rumble via XInputSetStateEx ordinal 100 #1104

Closed
github-bot wants to merge 1 commit from gh-pr/1104/head into gh-pr/1104/base
Owner

@⁠ashrafsdrop on GitHub · 2026-11-24 15:47 UTC · original
ashrafsdrop:input/trigger-rumble → main · +98 −18 · 2 files · 1 commits · closed without merging

Summary

Implements impulse trigger rumble for Xbox controllers on Windows hosts in victory-hle::gameinput.

  • Extends Source::rumble to accept left_trigger and right_trigger levels.
  • Queries XInputSetStateEx (ordinal 100 in xinput1_4.dll) dynamically to drive low/high motors alongside left/right impulse triggers.
  • Falls back to standard XInputSetState (low/high only) on systems where ordinal 100 is unavailable.
  • Reports rumble_motors = 0xF (Low | High | LeftTrigger | RightTrigger) in DeviceInfo for connected gamepads.
  • Updates unit tests in crates/victory-hle/src/modules/gameinput.rs and removes the outstanding trigger rumble item from README.md.

Verification

  • cargo test -p victory-hle: all 94 unit tests passing (including four-channel rumble verification).
  • cargo run -p xtask -- policy: asset policy passes (154 files ok).
**@⁠ashrafsdrop** on GitHub · 2026-11-24 15:47 UTC · [original](https://github.com/Marvisak/VIctory/pull/1104) `ashrafsdrop:input/trigger-rumble` → `main` · +98 −18 · 2 files · 1 commits · closed without merging ### Summary Implements impulse trigger rumble for Xbox controllers on Windows hosts in `victory-hle::gameinput`. - Extends `Source::rumble` to accept `left_trigger` and `right_trigger` levels. - Queries `XInputSetStateEx` (ordinal 100 in `xinput1_4.dll`) dynamically to drive low/high motors alongside left/right impulse triggers. - Falls back to standard `XInputSetState` (low/high only) on systems where ordinal 100 is unavailable. - Reports `rumble_motors = 0xF` (`Low | High | LeftTrigger | RightTrigger`) in `DeviceInfo` for connected gamepads. - Updates unit tests in `crates/victory-hle/src/modules/gameinput.rs` and removes the outstanding trigger rumble item from `README.md`. ### Verification - `cargo test -p victory-hle`: all 94 unit tests passing (including four-channel rumble verification). - `cargo run -p xtask -- policy`: asset policy passes (154 files ok).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:20:02 +00:00
github-bot closed this pull request 2026-11-26 04:20:02 +00:00
Author
Owner

@⁠Zipettte on GitHub · 2026-11-24 18:01 UTC · original

Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at da8875b: cargo test -p victory-hle passes, 95 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

**@⁠Zipettte** on GitHub · 2026-11-24 18:01 UTC · [original](https://github.com/Marvisak/VIctory/pull/1104#issuecomment-7140056787) Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at da8875b: `cargo test -p victory-hle` passes, 95 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1104
No description provided.