Input: pass the trigger motor levels on to the host #26
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!26
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/26/head"
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?
@Sunkiller-qc on GitHub · 2026-11-23 23:19 UTC · original
Sunkiller-qc:gameinput-trigger-rumble→main· +71 −16 · 1 files · 1 commits · closed without mergingHi, 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.@ZKD-YXQG on GitHub · 2026-11-23 23:31 UTC · original
I tested
886d15ba17bb745360253d1672de7cbeedad4d88on Windows 11 25H2 (build 26200.9457) with Rust 1.98.1 (x86_64-pc-windows-msvc).cargo test --locked -p victory-hlepassed all 83 tests (82 unit tests and one integration test), includingtrigger_rumble_reaches_the_hostanddevices_are_found_by_id_and_rumble_reaches_the_host. The rumble tests used the fake host. Physical trigger vibration was outside the test scope.AI-assisted testing and reporting (Codex).
@lordon1a on GitHub · 2026-11-24 00:21 UTC · original
Verified
886d15ba1on Windows 11 (x86_64-pc-windows-gnullvm,rustc 1.100.0, applied cleanly tomain@35b054ec0): pass.cargo xtask policy: 150 files okcargo test -p victory-hle gameinput: 8 passed, 0 failed (including the trigger motor level tests).AI-assisted.
@DaviTostes on GitHub · 2026-11-24 00:18 UTC · original · edited 2026-11-24 03:48 UTC
Tested
886d15bstacked on #39 on Arch Linux x86_64, rustc 1.98.1: pass.cargo test --workspace: 156 passed, 0 failed, 3 ignored; merge with #39 clean.mainalso carries the 133-linevictory-loader/src/threads.rschange — make sure it is intended here.Pull request closed