Add optional mouse look and cursor confinement #256

Closed
TaynanGT wants to merge 557 commits from upstream-pr/256 into main
TaynanGT commented 2026-11-27 12:37:28 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T12:37:28Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5526750173 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/256). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T12:37:28Z. --- 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.
chatgpt-codex-connector[bot] commented 2026-11-27 12:37:38 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T12:37:38Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7218480921 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/256#issuecomment-7218480921). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-27T12:37:38Z. --- <!-- 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>
TaynanGT commented 2026-11-30 17:14:38 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:14:38Z.


Superseded: main has moved to a new line of the code (see #468). Whatever is still worth having from this will come back as a new PR on the current main.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7285949789 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/256#issuecomment-7285949789). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-30T17:14:38Z. --- Superseded: `main` has moved to a new line of the code (see #468). Whatever is still worth having from this will come back as a new PR on the current `main`.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
TaynanGT/Vice-Tay!256
No description provided.