Key-driven stick strength on the map and in menus (VICTORY_KEY_STICK_MENU, 0.5 by default) #4583
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!4583
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4582"
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?
@Jesper-Andersson on GitHub · 2026-11-30 23:12 UTC · original
Jesper-Andersson:up-mapkeys→main· +125 −10 · 4 files · 2 commits · openNo issue: a small input feature.
What it changes
With mouse and keyboard, a key gives the stick a full push (1.0). On the map and in menus that moves the selection far too fast to stop where you want.
New switch
VICTORY_KEY_STICK_MENU(0.1 to 1.0; unset or invalid = 0.5;1= the full push, as before), read from the environment on first use and changed live by an F1 item MAP KEY SPEED (0.25, 0.4, 0.5 (default), 0.75, 1). Whilemousehook::is_menu_or_paused()is true, the stick values that keys produce are multiplied by the factor:fallback_for_seat(both sticks);mnk::sample()), left stick only, since its right stick is the mouse.Gamepad sticks,
VICTORY_MOUSE_STICK, triggers and buttons are not changed, and nothing changes on foot. The scaling is a pure function,scale_key_sticks(), with a unit test, and the default and bounds of the switch have unit tests too. On by default at 0.5: a player with mouse and keyboard gets a slower map selection without setting anything;VICTORY_KEY_STICK_MENU=1restores today's speed.How it was tested
bc63e9518= main5fabb46ea+ this change, started withVICTORY_KEY_STICK_MENU=0.4, without DLSS and without frame generation, shaders still compiling for much of the session): the map works with it, WASD moves the selection slower on the map and in menus, and comparing the F1 values live, 0.5 felt right (one player's impression, not measured). No panic in the log. So 0.5 is now the default (831d53f6c); that last commit only changes the default, the F1 label and docs, and was not run in the game itself.cargo testpassed for the crates it touches: yes, on831d53f6c(main5fabb46ea+ this PR):cargo test --locked -p victory-hle --lib key_stick1 passed;cargo test --locked -p victory-gpu --lib key_stick_menu2 passed;cargo test --locked -p victory-gpu --lib menu2 passed.cargo clippy -p victory-gpu --all-targets --locked -- -D warningsreports 5 errors, none on this PR's lines (font.rs213 and 260,panel.rs602 and 668,menu.rs673).victory-hlecould not be linted on its own, since it builds onvictory-gpu. So CI's clippy step may still fail on main's own lints.Spec dependence
Checked for overlap
gameinput.rs,mnk.rsand the F1 menu; #652, listed before, is closed). None slows the key-driven sticks on the map. This scales only the stick values keys produce while the map or a menu is up. Ingit merge-treeagainst #4260's head,gameinput.rsandmnk.rsmerge cleanly;menu.rsconflicts, but #4260 conflicts there with current main alone too. #1739 would replace themnk.rssampler this also scales; whichever lands second needs a small rebase there.Drafted with AI assistance (Claude Code).
137c6fb8e9tobc63e95187Key-driven stick strength on the map and in menus (VICTORY_KEY_STICK_MENU, off by default)to Key-driven stick strength on the map and in menus (VICTORY_KEY_STICK_MENU, 0.5 by default)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.