Input & F1 menu: native map drag/pivot zoom, fwui hover focus, and F1 mouse controls #2225
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by lyufeng000 on 2026-11-29T10:43:20Z.
Follow-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