Input: native mouse aiming and vehicle controls from #1356 #1570
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1570
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1570"
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?
@MaroonCoffee on GitHub · 2026-11-28 21:50 UTC · original
MaroonCoffee:codex/mouse-input-pr-1356→main· +2839 −48 · 12 files · 1 commits · openRelated: #1356 — mouse/input-only extraction.
What it changes
This adapts the mouse and input work originally implemented by
@lyufeng000 (李雨峰) in #1356.
Credit for the original implementation belongs to them; this PR separates
those changes from the larger proposal and integrates them with main's
existing input code.
Their changes included here:
changes, including swallowing the recapture click to prevent firing.
toggle for vehicle camera auto-centering.
[and].Integration resolves conflicts with the existing mouse-and-keyboard mode,
key-binding menu, and window handling. The legacy mouse sampler remains
available with
VICTORY_NATIVE_MOUSE=0, avoiding competing cursor handlingwhile native aiming is enabled.
The DLSS warm-up, portable launcher, hardware notes, and asset-policy
changes from #1356 are excluded. Existing warm-up and launcher behavior
is preserved.
The commit includes a Co-authored-by credit for 李雨峰.
How it was tested
DLSS Quality, 2× DLSS frame generation, ray tracing disabled.
aiming or performance baseline was collected.
point. An initial loading hang was observed; disabling native mouse also
passed that point, and the hang did not reproduce on the later enabled
run. Its cause is unconfirmed. Full manual coverage of all controls is
still needed.
cargo testpassed for the crates it touches: yes —victory,victory-hle,victory-loader, andvictory-gpupassed duringcargo test --workspace --locked --offline.victory-shadertestsfailed DXIL validation, and its test process exited with an access
violation. The repository-wide policy test separately flagged the
existing oversized
crates/victory-shader/src/emit/lower.rs.Checked for overlap
checked overlapping files. Related:
This PR is a partial adaptation of #1356, not a replacement for its
remaining warm-up and launcher proposals.
AI-assisted, changes and PR written with Codex
@amazedturnip on GitHub · 2026-11-29 05:38 UTC · original
Live-tested on 9800X3D + RTX 5070 Ti 16 GB (Windows 11, 21m+ session). Huge upgrade over right-stick mouse emulation: raw-delta aiming feels 1:1 with zero floatiness, Map/Pause/F1 cursor auto-release works reliably, and vehicle driver-seat controls detected and switched cleanly.
@JoeY54 on GitHub · 2026-11-29 06:18 UTC · original
Hands-on report on this PR's input path (head
74235e3), RTX 5090.I used this PR's camera, menu/pause, radial-wheel and seat logic with unchanged behaviour, but read every address, offset and layout from a local data file loaded at start instead of constants in the source. With that file the build has native aiming; without it the same build says native aiming is unavailable and falls back to stick emulation. Your three unit tests (HUD visibility, seats, camera hold) pass against that version when it is given the numbers from this PR.
Results (manual play, no measurements):
1:1 small corrections and fast turns, no stick speed ceiling
aiming down sights lowers the sensitivity
the cursor is released on pause and map; the click that re-locks it does not fire
weapon wheel by mouse, scroll cycles items
Alt+Tab in and out is fine
the driver seat is detected and switches to vehicle keys (W/S throttle and brake, handbrake, horn, lights); RMB aims while driving
one gap: the map did not zoom with the mouse wheel (the cursor is released there and the wheel was only forwarded while captured). A short LT/RT press per wheel notch while a menu is up fixed it.
Not tested: aircraft and boats, long sessions, latency or aim measurements.
Would a split like this be useful upstream, or do you prefer keeping the offsets in-tree as docs/asset-policy.md allows? Happy to share the generic part either way.
Generated by Claude Code
@trustno1-coder on GitHub · 2026-11-29 08:28 UTC · original
Thank you! An earlier version of this pull request was merged into main with its original commits and is part of v2026.11.29.01, where you are credited. GitHub does not show it as merged because new commits were pushed here after that merge. It stays open so those newer commits can be looked at next.
@lyufeng000 on GitHub · 2026-11-29 10:43 UTC · original
@JoeY54 Thanks for the thorough testing and feedback! I opened a clean follow-up PR #2225 on top of current
mainthat closes the map wheel zoom gap (using native cursor-pivotMapCam::ZoomStepWithPivotwithLT/RTfallback), adds 1:1 map dragging, nativefwuimenu hover hit-testing, and F1 overlay mouse/wheel controls.Regarding the offset layout question: keeping the per-build offsets and prologue checks in-tree (per
docs/asset-policy.md) is intentional so native aiming stays out-of-the-box without requiring users to manage an external data file, while still failing closed and falling back cleanly when a prologue doesn't match.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.