Honor keyboard button remaps in native mouse mode #3055

Open
Kitrae wants to merge 1 commit from upstream-pr/3055 into main
Kitrae commented 2026-11-29 19:49:18 +00:00 (Migrated from github.com)

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 = 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.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5554452559 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3055). Originally posted by [Kitrae](https://github.com/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 = 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.
andrewpozdnakov7-jpg commented 2026-11-30 08:06:00 +00:00 (Migrated from github.com)

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 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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7272480495 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3055#issuecomment-7272480495). Originally posted by [andrewpozdnakov7-jpg](https://github.com/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 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 cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3055:upstream-pr/3055'
git switch 'upstream-pr/3055'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/3055'
git switch 'upstream-pr/3055'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3055'
git switch 'upstream-pr/3055'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3055'
git switch 'main'
git merge --squash 'upstream-pr/3055'
git switch 'main'
git merge --ff-only 'upstream-pr/3055'
git switch 'main'
git merge 'upstream-pr/3055'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

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