GameInput: adjust captured mouse stick sensitivity live in F1 #2869

Open
github-bot wants to merge 2 commits from github-bot/gh-2869 into main AGit
Owner

@⁠ghptc on GitHub · 2026-11-29 18:22 UTC · original
ghptc:fix/f1-mouse-stick-sensitivity → main · +110 −16 · 5 files · 2 commits · open

What changes

The existing captured-mouse right-stick mapper read its sensitivity only at process startup. Add MOUSE STICK SENSITIVITY next to MOUSE CAPTURE in F1. Left and Right change the value by 0.005 for the next gameplay poll, bounded from 0.010 to 0.200. Enter clears the saved stick override and restores the launch value of VICTORY_MOUSE_SENS, which defaults to 0.060.

The menu saves only VICTORY_MOUSE_STICK_SENS for this setting. The native aiming hook and bindings.ini keep their own settings. The play launcher accepts --set VICTORY_MOUSE_STICK_SENS=0.075 as a per-launch override. Credit to #1149 for the precedent of a live F1 sensitivity row on the separate KBM mapper.

Routing

This patch uses the MouseLook path already available with CONTROLS=keyboard and legacy capture. The fork's AUTO, MNK=0 profile also relies on #2734 to route captured motion to the virtual pad while keeping the mouse device hidden. This PR leaves the base branch's device visibility and capture policy in place.

Verification

A standalone CPU fixture against pinned upstream 55d06914 compiled the production Menu::frame methods and queried the resulting virtual pad through the GameInput ABI. Three Right presses changed the same (8, -8) input from X=0.394000 to X=0.430000 with the default launch value. Starting at 0.062 changed X=0.398800 to X=0.434800. Both runs verified the two axes, keyboard and triggers, the saved setting in a fresh process, and Enter reset. The step test covers limits and custom launch values off the default grid.

The composer's separate integrated CPU control exercised the AUTO route with #2734 and checked launcher precedence for a saved setting, reset and explicit --set. These controls use generated motion with window and rendering stubs.

An independent Win32 client against integrated revision 4b3e6d71cd8b22c081c1fdf56c0eee0eada23a0b used synthetic input in a private Wine/X11 window. F1, Down and an extended Right press displayed and saved 0.067 from a launch value of 0.062. After closing F1, recentering was neutral and the client read stick axes of (0.41080, 0.39070), up from (0.39880, 0.38020) for the same input.

The synthetic Left event did not reach the client's GetAsyncKeyState check, and that run stopped before Enter. Both arrow directions, Enter reset, reopening and persistence were exercised separately in the CPU menu-handler and GameInput ABI fixtures. Physical keyboard input and in-game camera behavior remain unverified.

**@⁠ghptc** on GitHub · 2026-11-29 18:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2869) `ghptc:fix/f1-mouse-stick-sensitivity` → `main` · +110 −16 · 5 files · 2 commits · open ## What changes The existing captured-mouse right-stick mapper read its sensitivity only at process startup. Add **MOUSE STICK SENSITIVITY** next to **MOUSE CAPTURE** in F1. Left and Right change the value by 0.005 for the next gameplay poll, bounded from 0.010 to 0.200. Enter clears the saved stick override and restores the launch value of `VICTORY_MOUSE_SENS`, which defaults to 0.060. The menu saves only `VICTORY_MOUSE_STICK_SENS` for this setting. The native aiming hook and `bindings.ini` keep their own settings. The `play` launcher accepts `--set VICTORY_MOUSE_STICK_SENS=0.075` as a per-launch override. Credit to #1149 for the precedent of a live F1 sensitivity row on the separate KBM mapper. ## Routing This patch uses the `MouseLook` path already available with `CONTROLS=keyboard` and legacy capture. The fork's `AUTO`, `MNK=0` profile also relies on #2734 to route captured motion to the virtual pad while keeping the mouse device hidden. This PR leaves the base branch's device visibility and capture policy in place. ## Verification A standalone CPU fixture against pinned upstream `55d06914` compiled the production `Menu::frame` methods and queried the resulting virtual pad through the GameInput ABI. Three Right presses changed the same `(8, -8)` input from X=0.394000 to X=0.430000 with the default launch value. Starting at 0.062 changed X=0.398800 to X=0.434800. Both runs verified the two axes, keyboard and triggers, the saved setting in a fresh process, and Enter reset. The step test covers limits and custom launch values off the default grid. The composer's separate integrated CPU control exercised the `AUTO` route with #2734 and checked launcher precedence for a saved setting, reset and explicit `--set`. These controls use generated motion with window and rendering stubs. An independent Win32 client against integrated revision `4b3e6d71cd8b22c081c1fdf56c0eee0eada23a0b` used synthetic input in a private Wine/X11 window. F1, Down and an extended Right press displayed and saved 0.067 from a launch value of 0.062. After closing F1, recentering was neutral and the client read stick axes of (0.41080, 0.39070), up from (0.39880, 0.38020) for the same input. The synthetic Left event did not reach the client's `GetAsyncKeyState` check, and that run stopped before Enter. Both arrow directions, Enter reset, reopening and persistence were exercised separately in the CPU menu-handler and GameInput ABI fixtures. Physical keyboard input and in-game camera behavior remain unverified.
(cherry picked from commit 6728d156e16362da4234e26edcb484aa86506d3c)
(cherry picked from commit 2d10814d5dbdb13d9b022a4b34e74c7bacb63354)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 18:23:29 +00:00
This pull request has changes conflicting with the target branch.
  • README.md
  • crates/victory-gpu/src/host/menu.rs
  • crates/victory-gpu/src/lib.rs
  • crates/victory-hle/src/modules/gameinput.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/2869/head:github-bot/gh-2869'
git switch 'github-bot/gh-2869'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2869'
git switch 'github-bot/gh-2869'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2869'
git switch 'github-bot/gh-2869'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2869'
git switch 'main'
git merge --squash 'github-bot/gh-2869'
git switch 'main'
git merge --ff-only 'github-bot/gh-2869'
git switch 'main'
git merge 'github-bot/gh-2869'
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!2869
No description provided.