Honor keyboard button remaps in native mouse mode #3055
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3055"
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 Kitrae on 2026-11-29T19:49:18Z.
Fixes #3009.
What it changes
F1 Key Bindings now edits the keyboard button layout used with native mouse aiming. For example, assigning F to Y writes
Native.Y = Finbindings.iniand takes effect when the player returns to the game. F sends Xbox Y for vehicle entry and exit. It also takes precedence over F's default horn assignment.Native mouse aiming, the existing steering and throttle mappings, and the legacy binding entries keep their behavior. Older assignments can be entered once in F1 with native aiming enabled.
How it was tested
crates/victory-loader/src/heap_sites/frame_users.rson upstreammain.Checked for overlap
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-11-30T08:06:00Z.
I reproduced #3801 on Windows with the current release/main
41adb551(v2026.11.29.05). Kitrae's original commitd37f764applied cleanly as195eefb. The fixture saves the reported rows through the F1 bindings writer, then passes the same five synthetic key presses through the native on-foot GameInput fallback with Controls set to Auto.The writer passed on both. The input test matched 1/5 expected outputs on the release and 5/5 with #3055. The patched file had
Native.A = Shift, Enter,Native.X = Space,Native.LB = Tab, andNative.View = V. The existing Windows menu tests also passed, 14/14 on main and 15/15 with #3055. GameInput passed 84/84 and 85/85 respectively, with two ignored in both runs.@shigechangge If you can run a build with #3055, could you repeat those assignments in F1 with native aiming enabled and Controls set to Auto, then check the five keys in gameplay? This PR reads a separate
Native.*profile, so the older assignments need to be entered again for that check.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.