Input: the camera follows the mouse (GTA V PC keys and mouse on the stand-in pad, VICTORY_KBM_GTA=1) #989
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!989
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-989"
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?
@urielbeaupre on GitHub · 2026-11-28 10:43 UTC · original
urielbeaupre:feat/mouse-camera→main· +526 −18 · 4 files · 2 commits · openMakes the camera follow the mouse on PCs where it doesn't (#489, and earlier #198, #375, #396). The new switch is
VICTORY_KBM_GTA=1, off by default, and it can also be turned on in the F1 menu ("GTA V KEYS AND MOUSE"). It uses a GTA V PC-style keyboard and mouse layout.Why the existing mouse device isn't enough
The GameInput mouse from #9 reaches the game only if the game registers for mouse devices. On this PC (RTX 4070 Ti, Windows 11, Series S,
63b902f) it never does. The log shows device callbacks only for kinds0x10(keyboard) and0x40000(gamepad), never0x20. So the device is never announced and the camera doesn't turn. That is the same report as #489.This PR feeds the mouse into the right stick of the keyboard stand-in pad instead. The game always reads that stick.
What it does
VICTORY_MOUSE_SENS. The stick returns to centre with a 45 ms half-life once the mouse stops.VICTORY_MOUSE_INVERT_Y=1flips the vertical axis.VICTORY_MOUSE_CAPTURE) and warp (VICTORY_MOUSE_WARP=0turns the warp off) are used for the lock.`) releases and re-takes the mouse. Released, the cursor is free and visible, and the camera ignores it.VICTORY_MOUSE_CAPTURE=1, so a game that does read it won't turn the camera twice.It is ported from the GTA V PC-style mapping in Belobug's VIctory (PR 295 there) and adapted to this fork:
LETTER_POSITIONS);=1.Tested
In play on an RTX 4070 Ti, Series S, with WoW running alongside on the other screen:
cargo test -p victory-hle: 195 passed, 0 failed, including the ported and new tests:The menu tests pass. The release and diagnostics builds build, and clippy reports no new warnings.
Not covered / limits
VICTORY_MOUSE_SENS.🤖 Generated with Claude Code
@Kucharskov on GitHub · 2026-11-28 11:35 UTC · original
I can confirm that playing with this GTA V mapping is a lot better than default mapping
@isaac-btw on GitHub · 2026-11-28 12:19 UTC · original
Confirmed!
Also my PR #967
@0z0sk0 on GitHub · 2026-11-28 21:41 UTC · original
@trustno1-code very useful
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.