HLE input: pass trigger motor levels to the host source #620

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

@⁠mar10reyes on GitHub · 2026-11-24 05:44 UTC · original
mar10reyes:feat/trigger-rumble-source → main · +71 −18 · 1 files · 1 commits · closed without merging

set_rumble dropped the title's left/right trigger levels before they reached Source. Carry all four motors in a Motors struct; the XInput source still drives only the two grip motors (it has no trigger motors), so behaviour is unchanged, and a Windows.Gaming.Input source can now drive the triggers without touching the HLE side.

**@⁠mar10reyes** on GitHub · 2026-11-24 05:44 UTC · [original](https://github.com/Marvisak/VIctory/pull/620) `mar10reyes:feat/trigger-rumble-source` → `main` · +71 −18 · 1 files · 1 commits · closed without merging set_rumble dropped the title's left/right trigger levels before they reached Source. Carry all four motors in a Motors struct; the XInput source still drives only the two grip motors (it has no trigger motors), so behaviour is unchanged, and a Windows.Gaming.Input source can now drive the triggers without touching the HLE side.
set_rumble dropped the title's left/right trigger levels before they
reached Source. Carry all four motors in a Motors struct; the XInput
source still drives only the two grip motors (it has no trigger motors),
so behaviour is unchanged, and a Windows.Gaming.Input source can now
drive the triggers without touching the HLE side.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:10:22 +00:00
github-bot closed this pull request 2026-11-26 04:10:22 +00:00
Author
Owner

@⁠balazs63 on GitHub · 2026-11-24 08:44 UTC · original

This pairs well with a host-side piece I wrote: a Windows.Gaming.Input path that actually drives the trigger motors.

Branch: https://github.com/balazs63/VIctory/tree/trigger-rumble (PR creation is limited to collaborators, so I can't open one).

  • Host::rumble uses Gamepad::SetVibration for all four motors (WGI ships with Windows, no redistributable).
  • WGI doesn't say which XInput slot a gamepad is in, so it's only used when exactly one XInput pad and one WGI gamepad are connected; otherwise it falls back to XInput (grip motors only), as today.
  • rumble_motors reports 0xF; windows becomes a regular Windows dependency of victory-hle (Gaming_Input), audio-capture features stay behind diagnostics.

It was written against main before this PR, so it uses [f32; 4] rather than your Motors struct; happy to rebase onto #620 if that lands. cargo test -p victory-hle gameinput passes and clippy is clean for the change. Not tested with the title or real trigger hardware (no dump here).

**@⁠balazs63** on GitHub · 2026-11-24 08:44 UTC · [original](https://github.com/Marvisak/VIctory/pull/620#issuecomment-7126507281) This pairs well with a host-side piece I wrote: a Windows.Gaming.Input path that actually drives the trigger motors. Branch: https://github.com/balazs63/VIctory/tree/trigger-rumble (PR creation is limited to collaborators, so I can't open one). - `Host::rumble` uses `Gamepad::SetVibration` for all four motors (WGI ships with Windows, no redistributable). - WGI doesn't say which XInput slot a gamepad is in, so it's only used when exactly one XInput pad and one WGI gamepad are connected; otherwise it falls back to XInput (grip motors only), as today. - `rumble_motors` reports 0xF; `windows` becomes a regular Windows dependency of victory-hle (`Gaming_Input`), audio-capture features stay behind `diagnostics`. It was written against main before this PR, so it uses `[f32; 4]` rather than your `Motors` struct; happy to rebase onto #620 if that lands. `cargo test -p victory-hle gameinput` passes and clippy is clean for the change. Not tested with the title or real trigger hardware (no dump here).
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:26 UTC · original

Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current).

Plumbing only: four motor levels reach the host source in a new struct while XInput still drops the triggers, so behaviour is unchanged. A PR that really drives trigger motors (#312, #1357) carries its own plumbing.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

**@⁠Marvisak** on GitHub · 2026-11-25 00:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/620#issuecomment-7148506417) Automated triage for the maintainers. Closing because it does not change behaviour the project needs (formatting, guards for cases that cannot occur, or notes and translations that cannot be kept current). Plumbing only: four motor levels reach the host source in a new struct while XInput still drops the triggers, so behaviour is unchanged. A PR that really drives trigger motors (#312, #1357) carries its own plumbing. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

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!620
No description provided.