Input: the camera follows the mouse (GTA V PC keys and mouse on the stand-in pad, VICTORY_KBM_GTA=1) #989
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by urielbeaupre on 2026-11-28T10:43:57Z.
Makes 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
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Kucharskov on 2026-11-28T11:35:27Z.
I can confirm that playing with this GTA V mapping is a lot better than default mapping
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by isaac-btw on 2026-11-28T12:19:14Z.
Confirmed!
Also my PR https://github.com/trustno1-coder/VIctory-NVIDIA/pull/967
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 0z0sk0 on 2026-11-28T21:41:32Z.
@trustno1-code very useful
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.