Mouse and keyboard: a shooter's layout after the title's own control screens #4586
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/4586"
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 Thiagojm on 2026-11-30T23:17:07Z.
Why
With mouse and keyboard, the stand-in pad's keys were a gamepad spelled out on the keyboard: Enter to jump, Backspace to rest/crouch, C to shoot, Z to aim, F to run, H to look behind. The keyboard prompts showed those keys, and playing with them was awkward. This PR maps every control to where a PC shooter player expects it, following the title's own control screens (on foot, aiming, land and water vehicles). After playing with it, the controls feel much more natural than before.
The new layout
Every key of the earlier table still works as an extra, so nobody loses a key.
What changed
victory-core/src/pad.rsfallback_key: the main keys, and with them the keyboard prompts (Space, Ctrl, Shift, LMB/RMB/MMB, M4, 1-4).victory-hlegameinput.rs: the extras inFALLBACK_BUTTONS, G added toLETTER_POSITIONS, Z kept as a keyboard left trigger, and Mouse4 presses X in gameplay. At the wheel,bindings.ini's Shift/Ctrl keys now pitch like the table's instead of also pressing their button.bindings.ini(shipped defaults) follows the same layout, using0xA0/0xA2for Shift/Ctrl. The native mouse path reads the left and right modifier keys apart, so a plainShift/Ctrlin the file never matched there (the old default'sA = ShiftandLS = Ctrldid nothing). Players' existing%LOCALAPPDATA%\victory\bindings.inifiles are not touched.Testing
cargo test -p victory-core -p victory-game -p victory-hle: all pass exceptxmem::a_read_by_range_waits_only_for_a_remapping_that_meets_it, which fails the same way onmainwhen run with the rest of the suite (it passes on its own).cargo xtask policy --staged: ok.🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tyr0nsur on 2026-11-30T23:24:24Z.
Related change in #4588. Current main's input path reads profile buttons, but its icon hook still reads the hard-coded table. That matters for this PR because existing profiles keep their current assignments. With #4588 they can continue to show their own working keys while a fresh profile gets the new layout.
I combined
13f3627bwith16d47518locally. The only merge conflicts were three test hunks inprompts.rs(right-stick click label, Enter/Backspace defaults, and the count of distinct glyphs). After keeping your layout expectations and moving the Enter/Backspace check to explicit bindings, all 38 prompt tests passed. The two sets of changes can land independently.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.