Input: the captured mouse can turn the camera #581

Open
github-bot wants to merge 3 commits from github-bot/gh-581 into main AGit
Owner

@⁠vilaherba-design on GitHub · 2026-11-28 01:18 UTC · original
vilaherba-design:mouse-right-stick → main · +246 −9 · 4 files · 3 commits · open

Requested by Axel · project thread

With MOUSE CAPTURE on, the title got mouse readings and never turned the camera, while I/J/K/L did. This adds VICTORY_MOUSE_STICK (F1: MOUSE TURNS THE CAMERA, off by default): the captured mouse moves the stand-in pad's right stick, and its buttons are the triggers.

Built and tried in the game on Windows 11, RTX 4090: the mouse turns the camera; victory-hle gameinput tests 30 passed. What was seen, what it does, what is not covered and the clippy note are in https://github.com/vilaherba-design/VIctory-NVIDIA/pull/1

🤖 Generated with Claude Code

https://claude.ai/code/session_01T5AVkSvzfeALd4LH25af3B

**@⁠vilaherba-design** on GitHub · 2026-11-28 01:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/581) `vilaherba-design:mouse-right-stick` → `main` · +246 −9 · 4 files · 3 commits · open <!-- claude-projects-attribution: {"github_login":"vilaherba-design"} --> _Requested by **Axel** · [project thread](https://claude.ai/code/project/chan_018fCqbbzWvqzWFm42nH215E?thread=cmsg_018fCqbbzWvqzWFm42nH215EBawPLwQddKXCDu3mnR2k55)_ With MOUSE CAPTURE on, the title got mouse readings and never turned the camera, while I/J/K/L did. This adds `VICTORY_MOUSE_STICK` (F1: MOUSE TURNS THE CAMERA, off by default): the captured mouse moves the stand-in pad's right stick, and its buttons are the triggers. Built and tried in the game on Windows 11, RTX 4090: the mouse turns the camera; `victory-hle` gameinput tests 30 passed. What was seen, what it does, what is not covered and the clippy note are in https://github.com/vilaherba-design/VIctory-NVIDIA/pull/1 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T5AVkSvzfeALd4LH25af3B
The title takes the mouse device's readings and turns no camera with them,
while the stand-in pad's right stick (I/J/K/L) does. With the mouse
captured (VICTORY_MOUSE_CAPTURE=1) its motion now also moves that stick,
the left button is the right trigger and the right button the left trigger.
VICTORY_MOUSE_STICK=0 leaves the pad alone, another number is the
sensitivity; F1 menu, MOUSE TURNS THE CAMERA.

With the mouse as the stick the pointer goes back to the window's centre
after every sample unless VICTORY_MOUSE_WARP=0: stopped by the screen's
edge it would stop the camera, and on a PC with two screens the clip alone
did not keep it in the window.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01T5AVkSvzfeALd4LH25af3B
VICTORY_MOUSE_STICK is asked for (1 or a sensitivity; F1 menu, MOUSE TURNS
THE CAMERA), as the capture is: left unset the pad is as before.

The stick no longer follows each poll's motion by half: the counts are kept
until turned, the stick stands where they put it and takes away what that
turn is worth in the time gone by, so a slow mouse (one count a poll, at
any sensitivity) still turns and the stick is at rest a poll after the
mouse is.

After a warp the next motion is measured from where the pointer is, read
back, not from where it was sent: under display scaling the two can differ
by a pixel, a motion at every sample.

Not built here (Linux): the stick's arithmetic and its three unit tests
were compiled and run on their own.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01T5AVkSvzfeALd4LH25af3B
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_01T5AVkSvzfeALd4LH25af3B
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 01:18:41 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/581/head:github-bot/gh-581'
git switch 'github-bot/gh-581'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-581'
git switch 'github-bot/gh-581'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-581'
git switch 'github-bot/gh-581'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-581'
git switch 'main'
git merge --squash 'github-bot/gh-581'
git switch 'main'
git merge --ff-only 'github-bot/gh-581'
git switch 'main'
git merge 'github-bot/gh-581'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.