Mouse: Alt turns the capture on and off, and the captured mouse moves the camera #731
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!731
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-731"
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?
@Alexr03 on GitHub · 2026-11-28 04:37 UTC · original
Alexr03:mouse-alt-toggle→main· +68 −4 · 3 files · 1 commits · openWhy
With MOUSE CAPTURE on, the pointer was hidden and held but the camera did not move: the title registers GameInput callbacks for pads (
kind=0x40000) and the keyboard (kind=0x10) only, never for a mouse. And once captured, the only way to get the pointer back was to leave the window.What
SC_KEYMENUthe window hook already swallows) flips it; the F1 setting is now only what a start begins with. F10 sends the same system command, so it toggles too.VICTORY_MOUSE_SENSITIVITYscales it (default 1).VICTORY_MOUSE_WARP=0keeps the old behaviour.+68 lines in
gameinput.rsandlifecycle.rs, one label inmenu.rs. No new file, page or settings format.Next to the other open mouse PRs
#142, #581, #482 and #652 all make the same right-stick mapping, so this overlaps with them; take whichever fits. What differs here:
VICTORY_MOUSE_STICK=0offWhat the others have and this does not: smoothing across polls (#142, #652), inverted Y (#142, #482), a mouse mode for menus and the map (#652), and key remapping with a page for it (#482, #652). The Alt toggle is independent of all of that and could sit on top of any of them.
Testing
mouse_motion_deflects_the_stick;cargo test -p victory-hle --lib: 189 passed.VICTORY_ONE_PAD=0.https://claude.ai/code/session_01QmkPjpdyRtUQoYdtCcv7fU
@Dukestar69 on GitHub · 2026-11-28 04:44 UTC · original · approved these changes
LGTM — verified on Windows:
cargo test -p victory-hle --lib gameinputpassed (27/27, includingmouse_motion_deflects_the_stick)cargo test -p victory-gpu --lib host::menu::passed (7/7)cargo xtask policypassed (294 files ok)Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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.