Input: GTA PC controls and a smoothed mouse camera on the stand-in pad (VICTORY_KBM_GTA=1, opt-in; depends on #4105) #4260
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!4260
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4259"
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?
@kongmuqiu on GitHub · 2026-11-30 17:53 UTC · original
kongmuqiu:kbm-gta-pr→main· +1713 −25 · 11 files · 5 commits · closed without mergingFixes # (no open issue; an opt-in feature). Depends on #4105 (the input method fix), which this branch is built on, because these controls use its dialog guard (
xgameui::text_entry_open). Until #4105 is merged, the diff here also shows its 4 commits; the change of this PR is the last commit only.What it changes
This is an opt-in alternative to MOUSE AND KEYBOARD. It is for players who want GTA PC-style keys and a mouse camera that turns the view through the pad's right stick, smoothed, rather than through the native 1:1 hook. Off by default: without
VICTORY_KBM_GTA=1nothing changes.With
VICTORY_KBM_GTA=1:`/~'s place toggles the lock, and Esc or P release it.VICTORY_MOUSE_CAPTUREand PadOverlay. WithVICTORY_MNK=1also set, a warning says MOUSE AND KEYBOARD is ignored.VICTORY_KBM_RAW_DEVICES=1gives it the keyboard and mouse devices again.Variables:
VICTORY_KBM_GTA: turns this on.VICTORY_KBM_MOUSE_SENS: a sensitivity multiplier, default 1.0. It is separate fromVICTORY_MOUSE_SENS, whose scales differ.VICTORY_MOUSE_INVERT_Y: shared with the existing input.VICTORY_KBM_PHYSICAL_KEYS(on),VICTORY_KBM_RAW_DEVICES(off) andVICTORY_KBM_TRACE_MOVE(off).The PC key bindings and the smoothed mouse-look are adapted from Belobug/VIctory-Belobug-AMD (GPL-3.0).
How it was tested
GPU and profile: RTX 4070 Laptop 8 GB, Windows 11. Series S, 1920x1080 output, with and without DLSS, no frame generation, ray tracing on (software and DXR). It was used for several dozen scripted runs on v2026.11.29.05 and v2026.11.30.01, in which the character walks and the camera turns with the mouse.
Before: the keyboard drove the stand-in pad through FALLBACK_BUTTONS or the MnK bindings, and the mouse through MouseLook or the native hook.
After: the log shows
our GTA PC controls are in chargeandnative mouse aiming not placed; the character walks and the camera turns.Not exercised by those runs: driving, aiming and the radial wheel.
Known differences from MOUSE AND KEYBOARD:
For shader changes, the wave sizes tested: no shader changes.
cargo testpassed for the crates it touches: yes forvictory-hle(gameinput,lifecycle,mnk,xgameui,mousehook: 144 passed, 0 failed, 2 ignored that need real pads). The tests cover:VICTORY_ONE_PAD=0;Rebased onto
5fabb46e(with #4105):cargo clippy -p victory -p victory-hle --all-targetsadds no warning, and the release build passes. The bindings.ini change to the MnK path inba69a9b6does not reach this mode, which takes the keyboard instead of MnK.Checked for overlap
🤖 Generated with Claude Code
github-bot referenced this pull request2026-11-30 22:52:07 +00:00
caa4c2c138to1106ffbf76@trustno1-coder on GitHub · 2026-12-01 18:44 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed