Repository navigation
HLE input: pass trigger motor levels to the host source - #620
mar10reyes wants to merge 1 commit into
Conversation
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 <noreply@anthropic.com>
LAKSHYA-cmd-tech
left a comment
There was a problem hiding this comment.
Tested on Windows 11 with Rust 1.98.1 (x86_64-pc-windows-msvc).
- cargo test -p victory-hle: all 87 tests passed cleanly, including motor_levels_are_clamped_and_kept_in_order.
- cargo xtask policy: 151 files ok.
- Verified trigger motor levels clamping and preservation in Motors::from_levels and pass-through in set_rumble.
|
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).
It was written against main before this PR, so it uses |
mercuryVM
left a comment
There was a problem hiding this comment.
Tested 59aa44b on Windows 11, RTX 5070, MSVC: cargo test -p victory-hle 88 passed, including motor_levels_are_clamped_and_kept_in_order. Clippy's 1 warning is the existing field_reassign_with_default at xmem.rs:747.
- XInput behaviour is unchanged:
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. - NaN maps to 0 through
clampand thenas u16, as the test documents, so a bad level leaves the motor off.
AI-assisted (Claude Code).
…to the host source Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
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. |
…elds GPU: Reuse placed texture views across resource description padding
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.