feat(victory): the mouse moves the camera on the stand-in pad again #461

Merged
LooperSalty merged 1 commit from upstream-pr/461 into main 2026-11-27 00:27:13 +00:00
LooperSalty commented 2026-11-26 23:47:02 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-26T23:47:02Z.


Summary

Since #454 the mouse no longer moved the camera: Vice-Tay's stand-in pad (keyboard when no real pad is connected) had the right stick on I/J/K/L only. This ports the Neptune base's mouse back:

  • Movement = right stick (camera), right button = left trigger (aim), left button = right trigger (fire); added to the keys and clamped to -1..1, merged with a real pad (the furthest stick wins).
  • The pointer stays the user's until they click the game's picture (that click does not fire) or press F9; then the cursor is hidden and re-centred each read. F9 or losing focus gives it back.
  • Smoothing as on Neptune: stick = stick*0.8 + pixels*0.025*VICTORY_MOUSE (VICTORY_MOUSE scales it, default 1); up is positive.

New victory-hle/src/modules/mouse.rs (pure smooth/reading, Windows reader), wired through gameinput.rs (Source::mouse, fallback(keys, mouse)).

Test plan

  • 4 new tests, all failing without the port (gameinput 19, mouse 2)
  • cargo build --release -p victory, cargo build --release --workspace
  • Camera moved in a game run
  • CI

Source: previous third_party/victory (Neptune base, see THIRD_PARTY.md)

🤖 Generated with Claude Code

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:5518727549 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/461). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-26T23:47:02Z. --- ## Summary Since #454 the mouse no longer moved the camera: Vice-Tay's stand-in pad (keyboard when no real pad is connected) had the right stick on I/J/K/L only. This ports the Neptune base's mouse back: - Movement = right stick (camera), right button = left trigger (aim), left button = right trigger (fire); added to the keys and clamped to -1..1, merged with a real pad (the furthest stick wins). - The pointer stays the user's until they click the game's picture (that click does not fire) or press F9; then the cursor is hidden and re-centred each read. F9 or losing focus gives it back. - Smoothing as on Neptune: `stick = stick*0.8 + pixels*0.025*VICTORY_MOUSE` (`VICTORY_MOUSE` scales it, default 1); up is positive. New `victory-hle/src/modules/mouse.rs` (pure `smooth`/`reading`, Windows reader), wired through `gameinput.rs` (`Source::mouse`, `fallback(keys, mouse)`). ## Test plan - [x] 4 new tests, all failing without the port (gameinput 19, mouse 2) - [x] `cargo build --release -p victory`, `cargo build --release --workspace` - [ ] Camera moved in a game run - [ ] CI Source: previous `third_party/victory` (Neptune base, see THIRD_PARTY.md) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chatgpt-codex-connector[bot] commented 2026-11-26 23:47:07 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T23:47:07Z.


Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-26T23:47:05.572741Z
We couldn’t complete this review. Comment @codex review to try again.
401953e PR opened
ℹ️ 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:LooperSalty/AnyXboxX:comment:7205855851 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/461#issuecomment-7205855851). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T23:47:07Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"401953e192dd5bc57ff8fa11290cb9645b994463","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-26T23:47:05.572741Z">2026-11-26T23:47:05.572741Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `401953e` | PR opened | <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>
chatgpt-codex-connector[bot] commented 2026-11-26 23:47:09 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-26T23:47:09Z.


You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7205856268 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/461#issuecomment-7205856268). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-26T23:47:09Z. --- You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/cloud/settings/usage). To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your [settings](https://chatgpt.com/settings/code-review).
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
LooperSalty/AnyXboxX!461
No description provided.