Add optional mouse look and cursor confinement #256

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

@⁠TaynanGT on GitHub · 2026-11-27 12:37 UTC · original
TaynanGT:feat/fallback-mouse-look-220 → main · +323 −16 · 4 files · 3 commits · open

In #220, the title window receives relative mouse input, while the in-game test records no successful GameInput mouse state read. With VICTORY_MOUSE_LOOK=1, use the existing foreground Raw Input path to map successive mouse deltas to the fallback pad's right stick. Reset the delta baseline on focus loss and use the normal physical-pad path when a pad is connected.

Adapted from Viktornachay’s VIctory #3494. The isolated delta test covers neutral motion, clamping and refocus. The suite also checks the fallback and physical-pad paths in both pad modes. Windows CI and a recorded in-game camera check are pending.

Set VICTORY_MOUSE_CAPTURE=1 to hide and confine the pointer to the focused title window. Focus loss and window close release its clip. A simulated Windows API test covers screen bounds, focus handoff and preserving a replacement rectangle. The in-game check includes switching to another window and back.

The follow-up suspends confinement for the native move and resize loop. Left and right click drive the right and left triggers on the fallback pad with mouse look enabled. The simulated window test covers clip suspension and resumption, and the input test covers trigger values and focus loss. The recorded camera check remains open.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:37 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/256) `TaynanGT:feat/fallback-mouse-look-220` → `main` · +323 −16 · 4 files · 3 commits · open In #220, the title window receives relative mouse input, while the in-game test records no successful GameInput mouse state read. With `VICTORY_MOUSE_LOOK=1`, use the existing foreground Raw Input path to map successive mouse deltas to the fallback pad's right stick. Reset the delta baseline on focus loss and use the normal physical-pad path when a pad is connected. Adapted from [Viktornachay’s VIctory #3494](https://github.com/Marvisak/VIctory/pull/3494). The isolated delta test covers neutral motion, clamping and refocus. The suite also checks the fallback and physical-pad paths in both pad modes. Windows CI and a recorded in-game camera check are pending. Set `VICTORY_MOUSE_CAPTURE=1` to hide and confine the pointer to the focused title window. Focus loss and window close release its clip. A simulated Windows API test covers screen bounds, focus handoff and preserving a replacement rectangle. The in-game check includes switching to another window and back. The follow-up suspends confinement for the native move and resize loop. Left and right click drive the right and left triggers on the fallback pad with mouse look enabled. The simulated window test covers clip suspension and resumption, and the input test covers trigger values and focus loss. The recorded camera check remains open.
Map relative foreground mouse deltas to the fallback pad when the option is enabled. Keep focus resets and physical pad precedence.

Co-authored-by: Viktornachay <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 12:41:23 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-27 12:37 UTC · original · edited 2026-11-27 13:28 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T13:27:59.554453Z c85dab2 New commits
🔒 Security Review ✅ Completed 2026-11-27T13:28:49.422737Z c85dab2 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-27 12:37 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/256#issuecomment-7218480921) · edited 2026-11-27 13:28 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"c85dab2c238db854ce586d76d4dc7c3d099b8da6","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":"c85dab2c238db854ce586d76d4dc7c3d099b8da6","has_any_findings":null,"has_unresolved_findings":null,"status":"completed"}} --> <!-- codex-security-review:v1 {"blockingSeverityThreshold":"P0","headSha":"c85dab2c238db854ce586d76d4dc7c3d099b8da6","mergeGateEnabled":false,"pullRequestNumber":256,"repository":"TaynanGT/Vice-Tay","status":"completed"} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-27T13:27:59.554453Z">2026-11-27T13:27:59.554453Z</relative-time> | `c85dab2` | New commits | | 🔒 **Security Review** | ✅ **Completed** <relative-time datetime="2026-11-27T13:28:49.422737Z">2026-11-27T13:28:49.422737Z</relative-time> | `c85dab2` | New commits | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
github-bot changed title from Map mouse motion to the fallback gamepad right stick to Add optional mouse look and cursor confinement 2026-11-27 13:14:44 +00:00
Provide an opt-in client-area clip with focus and close handling. Track the rectangle applied by Windows and leave a replacement clip alone.
Suspend the clip during the Windows move and resize loop. Route mouse buttons to the fallback triggers and record the first right-stick motion in diagnostics.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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/256/head:github-bot/gh-256'
git switch 'github-bot/gh-256'

Merge

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