Mouse look, a mouse menu mode and configurable keyboard and mouse controls #652
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/652"
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 HardR1176 on 2026-11-28T02:45:58Z.
With
VICTORY_MOUSE_CAPTURE=1the cursor is captured, but the title only asks GameInput for a pad (kind=0x40000) and a keyboard (kind=0x10), never a mouse, so mouse movement reached nothing. This makes the captured mouse drive the pad the title already reads.What it does
VICTORY_MOUSE_WARP=0turns that off), otherwise motion stops at the window edge.MOUSE: MENUshows in the corner (the other corner when the F3 panel is up).victory-controls.txt: written with the defaults at first start, besidevictory-settings.txt(orVICTORY_CONTROLS_FILE). It binds keys and mouse buttons to each pad input, per mouse mode, plus the mode switch and the mouse speed. It's re-read within a second of being saved, so changes apply while playing. Lines it can't read are skipped and logged.VICTORY_MOUSE_LOOKsets the speed when the file doesn't.The default keyboard bindings are the existing stand-in pad table, unchanged (a test checks this). A letter in the file is the key where a US keyboard has it, the same as the stand-in pad's letters since
e68f48a, so bindings sit under the same fingers on AZERTY and other layouts;LETTER_POSITIONSnow covers all 26 letters for that.Files
crates/victory-hle/src/modules/gameinput/bindings.rs(new): the file format, parser, defaults, F2 page text.crates/victory-hle/src/modules/gameinput.rs: the mouse-to-pad translator, binding the stand-in pad through the file, reloading.crates/victory-hle/src/modules/lifecycle.rs: wheel messages from the window hook; re-centring default.crates/victory-gpu/src/lib.rs,crates/victory-gpu/src/host/menu.rs: shared mode / page state, F2 page, corner indicator.Testing
8fc2254.cargo test --workspace --lockedpasses.the_stand_in_pad_reads_letters_by_their_placetest passes through the bindings.cargo clippy -p victory-hle -p victory-gpu --no-deps --all-targets -- -D warningsis clean, with and without--all-features.cargo xtask policy --stagedpasses.cargo clippy --all-targets -- -D warningscurrently stops on lints in files this PR doesn't touch:crates/victory-shader/src/emit/mod.rs:2768(let_and_return),crates/victory-gpu/src/shadow.rs:1708and, with--all-features,crates/victory-gpu/src/descriptor.rs:1234(manual_is_multiple_of).Open points
🤖 Generated with Claude Code
Pull request closed