Input & F1 menu: native map drag/pivot zoom, fwui hover focus, and F1 mouse controls #2225
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!2225
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2225"
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?
@lyufeng000 on GitHub · 2026-11-29 10:43 UTC · original
lyufeng000:input-map-menu-mouse→main· +3709 −154 · 8 files · 1 commits · merged 2026-11-30 14:12 UTCFollow-up to #1356 and #1570 (cc @JoeY54).
What it changes
Builds on the native mouse input path merged via #1570 (
2f0b541b) to add full mouse support across the World Map, in-game menus, and the F1 settings overlay, while staying behind the existingVICTORY_MNK=1(F1 > MOUSE AND KEYBOARD) andVICTORY_NATIVE_MOUSEgates:mousehook,gameinput,lifecycle):LMB(past a 4 px deadzone) orMMBviaMapCam::AddTargetDelta(with stick-pan fallback if the hook is unavailable) andIDC_SIZEALLdrag cursor / window capture handling.MapCam::ZoomStepWithPivot(plusLT/RTpulse fallback inUiMode::Mapwhen menu mouse is active).LMBclick =A(select / waypoint),MMBclick =X,RMB=B(back),Mouse4/Mouse5=LB/RBtabs.mousehook,gameinput,lifecycle):fwuiscreen-loop hover hit-testing (VICTORY_MENU_MOUSE=1by default,=0disables) so moving the cursor highlights menu items directly without fighting keyboard/pad navigation.LMB=A,RMB=B, wheel = fast D-padUp/Down,Mouse4/Mouse5=LB/RB.victory-gpu:lib.rs,host/menu.rs):LMBclick on</>/actions,RMBback/close, and mouse wheel scrolling (SETTINGS_MENU_WHEEL).MenuKey/PAD_TOGGLES,CLEAR SHADER CACHE, andKEY BINDINGSsubmenu (pausing menu mouse clicks while waiting to bind a key or mouse button).apps/victory/src/play.rs,README.md,docs/architecture.md):VICTORY_MAP_DRAG_SENS,VICTORY_MAP_DRAG_INVERT, andVICTORY_MENU_MOUSEinplay.rsKEPTand documents the controls and tuning variables.Design notes (in response to @JoeY54 on #1570)
UiMode::Map, wheel input now drives native cursor-pivot zoom (MapCam::ZoomStepWithPivot) withLT/RTpulse fallback when the cursor is released.docs/asset-policy.md) is an intentional design choice for out-of-the-box usability: users can turn onF1 > MOUSE AND KEYBOARDwithout having to obtain or maintain an external offset file. Every hook verifies its expected instruction prologue before patching and safely falls back when checks do not match (andVICTORY_NATIVE_MOUSE=0still falls back cleanly tomnk.rs).How it was tested
KEY BINDINGS, without breaking controller-only (pads_only) mode.cargo testpassed for the crates it touches: yes (victory-hle: 435 passed;victory: 81 passed;victory-gpuhost::menu::tests: 22 passed;clippyclean on all touched files)Checked for overlap
github-bot referenced this pull request2026-12-01 16:12:28 +00:00