HLE input: pass trigger motor levels to the host source #620
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/620"
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?
Imported from Marvisak/VIctory. Originally posted by mar10reyes on 2026-11-24T05:44:09Z.
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.
Imported from Marvisak/VIctory. Originally posted by LAKSHYA-cmd-tech on 2026-11-24T06:00:36Z.
Review: APPROVED
Tested on Windows 11 with Rust 1.98.1 (x86_64-pc-windows-msvc).
Imported from Marvisak/VIctory. Originally posted by balazs63 on 2026-11-24T08:44:38Z.
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::rumbleusesGamepad::SetVibrationfor all four motors (WGI ships with Windows, no redistributable).rumble_motorsreports 0xF;windowsbecomes a regular Windows dependency of victory-hle (Gaming_Input), audio-capture features stay behinddiagnostics.It was written against main before this PR, so it uses
[f32; 4]rather than yourMotorsstruct; happy to rebase onto #620 if that lands.cargo test -p victory-hle gameinputpasses and clippy is clean for the change. Not tested with the title or real trigger hardware (no dump here).Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T11:20:36Z.
Review: APPROVED
Tested
59aa44bon Windows 11, RTX 5070, MSVC:cargo test -p victory-hle88 passed, includingmotor_levels_are_clamped_and_kept_in_order. Clippy's 1 warning is the existingfield_reassign_with_defaultat xmem.rs:747.wLeftMotorSpeed/wRightMotorSpeedstill come fromlow/high, and the trigger levels now reachSourceinstead of being dropped atset_rumble. Moving theshortcut:note to the XInput source is the right place for it.clampand thenas u16, as the test documents, so a bad level leaves the motor off.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:26:07Z.
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