Repository navigation
Input: pass the trigger motor levels on to the host - #26
Closed
Sunkiller-qc wants to merge 1 commit into
Closed
Sunkiller-qc wants to merge 1 commit into
Sunkiller-qc wants to merge 1 commit into
Conversation
GameInput's SetRumbleState (slot 0x50) takes four levels: low and high frequency, left and right trigger. Only the first two reached the host. Source::rumble now takes all four as Motors, so a host that can drive the trigger motors gets them; the XInput host still drops them (it has none), and the shortcut note moves next to it. A new test checks the trigger levels reach the host, clamped like the grip motors. Not compiled or tested here; static change only.
|
I tested
AI-assisted testing and reporting (Codex). |
|
Tested
|
Contributor
|
Verified
AI-assisted. |
edsuuu
referenced
this pull request
in edsuuu/VI-BR-PORT
Nov 24, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, thanks for the project!
GameInput's
SetRumbleState(device slot 0x50) receives four levels: low frequency, high frequency, left trigger and right trigger. Until now only the first two reached the hostSource. This changesSource::rumbleto take all four as a smallMotorsstruct, so a host backend that can drive impulse triggers (e.g. a future Windows.Gaming.Input path) gets them without touching the HLE side again. The XInput host still drops the trigger motors, since XInput has none, and the existing shortcut note now sits next to it.rumble_motorsstill advertises only the two grip motors, because the host can't drive the triggers yet.Tests: the existing rumble test now checks the full
Motorsvalue, and a newtrigger_rumble_reaches_the_hostchecks that trigger levels are clamped like the grip motors (out of range and NaN).Note: this is a static change. I have not compiled it, run the tests or tried it on hardware, so please run CI /
cargo test -p victory-hle. Happy to adjust anything.