F1 KEY BINDINGS: say when native mouse aiming does not use them (#3801) #3903

Closed
github-bot wants to merge 1 commit from github-bot/gh-3903 into main AGit
Owner

@⁠Trillazill on GitHub · 2026-11-30 11:00 UTC · original
Trillazill:fix/f1-bindings-native-mouse → main · +53 −1 · 1 files · 1 commits · closed without merging

What this changes

With MOUSE AND KEYBOARD on, native mouse aiming is on by default (VICTORY_NATIVE_MOUSE). The stand-in pad then reads its own fixed keys: FALLBACK_BUTTONS in gameinput.rs, as the README's "Native 1:1 mouse aiming" section lists them. It reads nothing from bindings.ini, because mnk::sample() is skipped in that mode. The README says so: "With native aiming disabled, the existing F1 > MOUSE AND KEYBOARD mode uses the custom keys and sensitivity in bindings.ini."

F1's KEY BINDINGS page didn't say so. It lists bindings.ini and ends with "SAVED TO BINDINGS.INI AND USED AT ONCE." That is what #3801 reports: bindings saved there, and Space still acted as A and Tab as View.

While native aiming is on (the same test as native_mouse_enabled: VICTORY_MNK=1 and VICTORY_NATIVE_MOUSE not 0), the page's three lines under the list now read:

NATIVE MOUSE IS ON: ITS FIXED KEYS APPLY, NOT THESE.
THESE APPLY WITH VICTORY_NATIVE_MOUSE=0 AT THE START.
SAVED TO BINDINGS.INI FOR THEN. ESC CANCELS A KEY.

Everything else about the page is unchanged, and the bindings can still be edited for when native aiming is off.

Why not apply the bindings in native mode

The reporter suggests that as the other option. The two layouts don't agree: the shipped bindings.ini has X = Space, LB = Tab, Y = F, while the native layout has Space and Enter as A, Tab as View and F as L3. Native mode also has its own vehicle mapping, and the in-game key prompts use the native layout (victory_core::pad::fallback_key). Reading bindings.ini there would remap the keys of everyone who plays with native aiming. That is a decision for the maintainers, not a fix. The bindings #3801 "saved" are the file's defaults.

Tests

  • New: host::menu::tests::key_bindings_say_when_native_mouse_aiming_does_not_use_them. It covers the switch logic (on by default with MNK, off with =0, off without MNK). It checks that the page shows the native lines with native aiming on and the old ones without, that the listed bindings are the same either way, and that the new lines fit the box and use only letters the menu font has.
  • cargo test -p victory-gpu --lib -- host::menu::tests: 14 pass, 1 fails. That one is a_change_is_saved_at_once_however_the_game_was_started, and it fails the same way on 41adb551 when the menu tests run together. It passes alone, three times out of three.
  • Clippy (-p victory-gpu --lib --tests): nothing in menu.rs.
  • cargo xtask policy --staged: ok (1 file).
  • In game (release build of this branch, --set VICTORY_MNK=1, native aiming on by default): F1, then KEY BINDINGS, shows the three lines above.

No game data, logs or other files from the title are in this change.

🤖 Generated with Claude Code

**@⁠Trillazill** on GitHub · 2026-11-30 11:00 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3903) `Trillazill:fix/f1-bindings-native-mouse` → `main` · +53 −1 · 1 files · 1 commits · closed without merging ## What this changes With MOUSE AND KEYBOARD on, native mouse aiming is on by default (`VICTORY_NATIVE_MOUSE`). The stand-in pad then reads its own fixed keys: `FALLBACK_BUTTONS` in `gameinput.rs`, as the README's "Native 1:1 mouse aiming" section lists them. It reads nothing from `bindings.ini`, because `mnk::sample()` is skipped in that mode. The README says so: "With native aiming disabled, the existing F1 > MOUSE AND KEYBOARD mode uses the custom keys and sensitivity in `bindings.ini`." F1's KEY BINDINGS page didn't say so. It lists `bindings.ini` and ends with "SAVED TO BINDINGS.INI AND USED AT ONCE." That is what #3801 reports: bindings saved there, and Space still acted as A and Tab as View. While native aiming is on (the same test as `native_mouse_enabled`: `VICTORY_MNK=1` and `VICTORY_NATIVE_MOUSE` not `0`), the page's three lines under the list now read: ``` NATIVE MOUSE IS ON: ITS FIXED KEYS APPLY, NOT THESE. THESE APPLY WITH VICTORY_NATIVE_MOUSE=0 AT THE START. SAVED TO BINDINGS.INI FOR THEN. ESC CANCELS A KEY. ``` Everything else about the page is unchanged, and the bindings can still be edited for when native aiming is off. ## Why not apply the bindings in native mode The reporter suggests that as the other option. The two layouts don't agree: the shipped `bindings.ini` has `X = Space`, `LB = Tab`, `Y = F`, while the native layout has Space and Enter as A, Tab as View and F as L3. Native mode also has its own vehicle mapping, and the in-game key prompts use the native layout (`victory_core::pad::fallback_key`). Reading `bindings.ini` there would remap the keys of everyone who plays with native aiming. That is a decision for the maintainers, not a fix. The bindings #3801 "saved" are the file's defaults. ## Tests - New: `host::menu::tests::key_bindings_say_when_native_mouse_aiming_does_not_use_them`. It covers the switch logic (on by default with MNK, off with `=0`, off without MNK). It checks that the page shows the native lines with native aiming on and the old ones without, that the listed bindings are the same either way, and that the new lines fit the box and use only letters the menu font has. - `cargo test -p victory-gpu --lib -- host::menu::tests`: 14 pass, 1 fails. That one is `a_change_is_saved_at_once_however_the_game_was_started`, and it fails the same way on 41adb551 when the menu tests run together. It passes alone, three times out of three. - Clippy (`-p victory-gpu --lib --tests`): nothing in `menu.rs`. - `cargo xtask policy --staged`: ok (1 file). - In game (release build of this branch, `--set VICTORY_MNK=1`, native aiming on by default): F1, then KEY BINDINGS, shows the three lines above. No game data, logs or other files from the title are in this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With native mouse aiming on (the default with MOUSE AND KEYBOARD), the
stand-in pad reads its own fixed keys and nothing of bindings.ini, as the
README says. The page still ended with "SAVED TO BINDINGS.INI AND USED AT
ONCE", so bindings saved there seemed to be ignored.

While native aiming is on, the page's three lines under the list say that
its fixed keys apply and that these apply with VICTORY_NATIVE_MOUSE=0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 11:02:40 +00:00
Author
Owner

@⁠Trillazill on GitHub · 2026-12-01 06:20 UTC · original

Closing: ba69a9b6 on main makes the native mouse path use bindings.ini's buttons, which is what #3801 asked for, so this note would now say the opposite of what happens.

**@⁠Trillazill** on GitHub · 2026-12-01 06:20 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3903#issuecomment-7302764026) Closing: ba69a9b6 on main makes the native mouse path use bindings.ini's buttons, which is what #3801 asked for, so this note would now say the opposite of what happens.
github-bot closed this pull request 2026-12-01 06:26:09 +00:00

Pull request closed

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!3903
No description provided.