Honor keyboard button remaps in native mouse mode #3055

Open
github-bot wants to merge 1 commit from github-bot/gh-3055 into main AGit
Owner

@⁠Kitrae on GitHub · 2026-11-29 19:49 UTC · original
Kitrae:fix/native-key-bindings → main · +177 −27 · 7 files · 1 commits · open

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 = F in bindings.ini and 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

  • 85 GameInput tests passed and two were ignored. The regression test covers the F assignment, release of the former Y key, and driving and on-foot states.
  • 15 F1 menu tests passed serially. The new test verifies the displayed native default and writes the remap without changing the legacy entry.
  • The changed files passed the staged asset-policy check. The repository-wide check flags crates/victory-loader/src/heap_sites/frame_users.rs on upstream main.
  • In-game verification is pending.

Checked for overlap

  • Searched open PRs for #3009 and native key remapping.
**@⁠Kitrae** on GitHub · 2026-11-29 19:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3055) `Kitrae:fix/native-key-bindings` → `main` · +177 −27 · 7 files · 1 commits · open 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 = F` in `bindings.ini` and 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 - 85 GameInput tests passed and two were ignored. The regression test covers the F assignment, release of the former Y key, and driving and on-foot states. - 15 F1 menu tests passed serially. The new test verifies the displayed native default and writes the remap without changing the legacy entry. - The changed files passed the staged asset-policy check. The repository-wide check flags `crates/victory-loader/src/heap_sites/frame_users.rs` on upstream `main`. - In-game verification is pending. ## Checked for overlap - [x] Searched open PRs for #3009 and native key remapping.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 19:53:06 +00:00
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-30 08:06 UTC · original

I reproduced #3801 on Windows with the current release/main 41adb551 (v2026.11.29.05). Kitrae's original commit d37f764 applied cleanly as 195eefb. 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.

Key Current release With #3055
Left Shift Left stick click A
Enter A A
Space A X
Tab View LB
V No button View

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, and Native.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.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-30 08:06 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3055#issuecomment-7272480495) I reproduced #3801 on Windows with the current release/main `41adb551` (`v2026.11.29.05`). Kitrae's original commit `d37f764` applied cleanly as `195eefb`. 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. | Key | Current release | With #3055 | | --- | --- | --- | | Left Shift | Left stick click | A | | Enter | A | A | | Space | A | X | | Tab | View | LB | | V | No button | View | 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`, and `Native.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.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host/menu.rs
  • crates/victory-hle/src/modules/gameinput.rs
  • crates/victory-hle/src/modules/mnk.rs
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.
git fetch -u origin '+refs/pull/3055/head:github-bot/gh-3055'
git switch 'github-bot/gh-3055'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-3055'
git switch 'github-bot/gh-3055'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-3055'
git switch 'github-bot/gh-3055'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-3055'
git switch 'main'
git merge --squash 'github-bot/gh-3055'
git switch 'main'
git merge --ff-only 'github-bot/gh-3055'
git switch 'main'
git merge 'github-bot/gh-3055'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3055
No description provided.