Keyboard and mouse: PC layout, mouse look, remapping page (F2) #482
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!482
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-482"
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?
@Dyslex1337 on GitHub · 2026-11-27 23:17 UTC · original
Dyslex1337:fix/mouse-look-stand-in-pad→main· +1289 −69 · 8 files · 3 commits · openSummary
The mouse did nothing in game. The title registers GameInput callbacks for pads and keyboards only, never for the mouse, so the emulated mouse was never read. This PR feeds keyboard and mouse to the title through the stand-in pad, with the PC layout of the series and a page to rebind everything.
Changes
Files
victory-gpu/src/keymap.rs(new): bindings, defaults, profiles, settings (VICTORY_BIND_*,VICTORY_MOUSE_LOOK,VICTORY_MOUSE_INVERT).victory-gpu/src/host/menu/keypage.rs(new): the page.menu.rsadds F2, inverted highlight cells, and key capture.victory-hle/src/modules/gameinput.rs: the stand-in pad is built from the key map, plus mouse look.victory-hle/src/modules/lifecycle.rs: the captured pointer is warped back by default (VICTORY_MOUSE_WARP=0turns this off).victory-gpu/src/frame.rs: live frame rate cap.Testing
cargo test -p victory-hle: all pass. Invictory-gpu, the newkeymap,keypage,menuandframetests pass. On this Windows 10 machine, a few existing tests that create a D3D12 device crash the test process, in files this PR doesn't touch.@siraxe on GitHub · 2026-11-28 00:31 UTC · original · edited 2026-11-28 00:58 UTC
I think mode changes to "on foot" at some interaction while still operating vehicle is responsible for 1st issue
@Moccha-Bee on GitHub · 2026-11-28 00:54 UTC · original
please merge this, game is unplayable otherwise
@kavokat on GitHub · 2026-11-28 01:45 UTC · original
Oh yeah please merge this.
Maybe it could also recognize if the player is in vehicle or on foot and change up controls if needed.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.