Input: add an opt-in radial curve for captured RMB motion #2954

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

@⁠ghptc on GitHub · 2026-11-29 18:59 UTC · original
ghptc:feat/rmb-radial-mouse-stick → main · +133 −19 · 4 files · 1 commits · open

What it changes

Add F1 > MOUSE STICK ON RMB > RADIAL for captured mouse motion mapped to the virtual right stick. While the captured right mouse button is held, radial shaping preserves the angle of each motion vector and reaches the new target on the first motion poll. It holds a decaying sample for up to two empty polls. A button transition clears the previous curve's motion. The right mouse button still supplies the left trigger. A physical controller's left trigger keeps the Standard curve for captured mouse motion.

Standard is the default. The option saves through the existing F1 settings file. A launch can override it with --set VICTORY_MOUSE_RMB_RADIAL=1 or =0. On this base, use CONTROLS > KEYBOARD, MOUSE CAPTURE on and MOUSE AND KEYBOARD off. The standalone port uses the existing VICTORY_MOUSE_SENS configuration. The fork's AUTO routing and live sensitivity are handled separately in #2734 and #2869. Native aiming and bindings use their existing routes. See #1570 for the native aim path and #1195 for a pulse hold in the separate keyboard mapper.

Validation

A standalone CPU control compiled the production State::poll, GameInput reading, and F1 handlers on the pinned base, with a fake mouse source and queued menu keys. The F1 toggle took effect on the next reading, saved the dedicated key and returned to Standard. The production direction, saturation, button-release and tail tests passed. The Standard arm produced 11,600 identical metric rows against the baseline across direct GameInput polls and simulated client reads at 10, 13, 20, 25, 30 and 60 Hz. Navigation with RMB released and the physical-trigger control also matched with Radial enabled.

For a generated 4:1 direction, the median angle error fell from 20.42° to 0.00°. At 60 Hz the median time from motion start to 90% of that arm's plateau fell from 31.94 to 19.79 ms, with the first visible motion unchanged. The shorter tail can lose short pulses between client reads. For a generated 4 ms motion pulse, at 20 Hz the missed phases rose from 5 to 88 out of 192, and at 30 Hz from 0 to 36. At 60 Hz both arms missed zero in this control. These are synthetic client readings. Physical keyboard/mouse input, camera motion and player comfort were outside this validation.

Adapted from the composer commit 33ad168a203eaf5caf5d1fb8211b2b16bb80d3c2 with its original authorship, onto f889bb076fa884fff8d2b6f0b50ac86f72abfd98.

**@⁠ghptc** on GitHub · 2026-11-29 18:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2954) `ghptc:feat/rmb-radial-mouse-stick` → `main` · +133 −19 · 4 files · 1 commits · open ## What it changes Add **F1 > MOUSE STICK ON RMB > RADIAL** for captured mouse motion mapped to the virtual right stick. While the captured right mouse button is held, radial shaping preserves the angle of each motion vector and reaches the new target on the first motion poll. It holds a decaying sample for up to two empty polls. A button transition clears the previous curve's motion. The right mouse button still supplies the left trigger. A physical controller's left trigger keeps the Standard curve for captured mouse motion. Standard is the default. The option saves through the existing F1 settings file. A launch can override it with `--set VICTORY_MOUSE_RMB_RADIAL=1` or `=0`. On this base, use **CONTROLS > KEYBOARD**, **MOUSE CAPTURE** on and **MOUSE AND KEYBOARD** off. The standalone port uses the existing `VICTORY_MOUSE_SENS` configuration. The fork's AUTO routing and live sensitivity are handled separately in #2734 and #2869. Native aiming and bindings use their existing routes. See #1570 for the native aim path and #1195 for a pulse hold in the separate keyboard mapper. ## Validation A standalone CPU control compiled the production `State::poll`, GameInput reading, and F1 handlers on the pinned base, with a fake mouse source and queued menu keys. The F1 toggle took effect on the next reading, saved the dedicated key and returned to Standard. The production direction, saturation, button-release and tail tests passed. The Standard arm produced 11,600 identical metric rows against the baseline across direct GameInput polls and simulated client reads at 10, 13, 20, 25, 30 and 60 Hz. Navigation with RMB released and the physical-trigger control also matched with Radial enabled. For a generated 4:1 direction, the median angle error fell from 20.42° to 0.00°. At 60 Hz the median time from motion start to 90% of that arm's plateau fell from 31.94 to 19.79 ms, with the first visible motion unchanged. The shorter tail can lose short pulses between client reads. For a generated 4 ms motion pulse, at 20 Hz the missed phases rose from 5 to 88 out of 192, and at 30 Hz from 0 to 36. At 60 Hz both arms missed zero in this control. These are synthetic client readings. Physical keyboard/mouse input, camera motion and player comfort were outside this validation. Adapted from the composer commit `33ad168a203eaf5caf5d1fb8211b2b16bb80d3c2` with its original authorship, onto `f889bb076fa884fff8d2b6f0b50ac86f72abfd98`.
Adapted from 33ad168a203eaf5caf5d1fb8211b2b16bb80d3c2 for upstream. Keep the existing GameInput routing and VICTORY_MOUSE_SENS and add the independent radial F1 choice.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 19:02:38 +00:00
This pull request has changes conflicting with the target branch.
  • 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/2954/head:github-bot/gh-2954'
git switch 'github-bot/gh-2954'

Merge

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