Input: pass the trigger motor levels on to the host #26
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/26"
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 Sunkiller-qc on 2026-11-23T23:19:41Z.
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.Imported from Marvisak/VIctory. Originally posted by ZKD-YXQG on 2026-11-23T23:31:52Z.
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).
Imported from Marvisak/VIctory. Originally posted by lordon1a on 2026-11-24T00:21:01Z.
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.
Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T00:18:15Z.
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.upstream-sync referenced this pull request2026-11-25 01:07:56 +00:00
Pull request closed