Keyboard and mouse: PC layout, mouse look, remapping page (F2) #482
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dyslex1337 on 2026-11-27T23:17:39Z.
Summary
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
Review feedback
Files
victory-gpu/src/keymap.rs(new): bindings, defaults, profiles, letters by place, settings (VICTORY_BIND_*,VICTORY_MOUSE_LOOK,VICTORY_MOUSE_INVERT).victory-gpu/src/host/menu/keypage.rs(new): the page.menu.rsgains F2, inverted highlight cells and key capture, next to main's save export and import.victory-hle/src/modules/gameinput.rs: the stand-in pad 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: the live frame rate cap.mainhad (shadow.rs,descriptor.rs,emit/mod.rs,gameinput.rs), so CI's clippy passes.Testing
cargo clippy --workspace --all-targets [--all-features] --locked -- -D warnings: clean (toolchain 1.98.1).cargo test -p victory-hle: 189 passed. Thevictory-gputests forkeymap,keypage,menuandframe: 22 passed, including the driving guard, letters by place and the page layout.victory-shader, and some D3D12 ones invictory-gpu) cannot run. They fail the same way without this PR.🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by siraxe on 2026-11-28T00:31:58Z.
I think mode changes to "on foot" at some interaction while still operating vehicle is responsible for 1st issue
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Moccha-Bee on 2026-11-28T00:54:15Z.
please merge this, game is unplayable otherwise
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kavokat on 2026-11-28T01:45:56Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tukorneger on 2026-11-28T09:27:38Z.
Yeah merge this please, its a PC game now, we cant play without this.
And... THANK YOU guys
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by xiaotu030202 on 2026-11-28T10:16:31Z.
Can I use the mouse pointer to select settings in the settings interface?And also custom mouse sensitivity, with reminders for some key indicators, like showing 'Shift' to run in the game scene. After all, since it's mapped keys, there might be situations where you don't know which key to press. Of course, I believe you have the skills, really appreciate it!
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.