overlay: hide the cursor inside the window (upstream 51ea083) #66

Manually merged
dutchmega merged 1 commit from github-bot/gh-66 into gh-pr/66/base 2026-12-06 00:43:37 +00:00 AGit
Owner

@⁠Kal0s-design on GitHub · 2026-12-05 19:54 UTC · original
Kal0s-design:port/hide-cursor → main · +34 −5 · 4 files · 1 commits · merged 2026-12-05 22:29 UTC

From upstream ReVIctory (51ea083, author kept, with their follow-up 8bff52b folded in). A "Hide cursor" switch in the menu's Overlay tab, off by default and remembered in overlay.txt as hide_cursor (or VICTORY_HIDE_CURSOR=1). While it's on, the window procedure hides the cursor inside the client area the same way it already does during the mouse-look lock. When the F1 drawer or the account picker has the mouse, the overlay answers WM_SETCURSOR before that point, so its own cursor still shows there. Turning the switch off brings the cursor back on the next WM_SETCURSOR through the existing restore path.

Porting notes. Upstream's list of menu switches needed a length fix after merges (8bff52b), so the list is a slice here too and adding an entry doesn't need the count changed. The entry sits after this fork's Startup card, in place of upstream's menu layout rows the fork doesn't have. The fork's window procedure has no phone-screen check, so the condition is just the mouse-look lock or the switch.

Clippy -D warnings is clean in both of the Lint workflow's runs, victory-hle passes (263), and the live and overlay tests of victory-gpu pass. I haven't tried it in game here.

AI-assisted: yes

🤖 Generated with Claude Code

**@⁠Kal0s-design** on GitHub · 2026-12-05 19:54 UTC · [original](https://github.com/VGLALALA/ReVictory-RDNA3/pull/66) `Kal0s-design:port/hide-cursor` → `main` · +34 −5 · 4 files · 1 commits · merged 2026-12-05 22:29 UTC From upstream ReVIctory (51ea083, author kept, with their follow-up 8bff52b folded in). A "Hide cursor" switch in the menu's Overlay tab, off by default and remembered in overlay.txt as hide_cursor (or VICTORY_HIDE_CURSOR=1). While it's on, the window procedure hides the cursor inside the client area the same way it already does during the mouse-look lock. When the F1 drawer or the account picker has the mouse, the overlay answers WM_SETCURSOR before that point, so its own cursor still shows there. Turning the switch off brings the cursor back on the next WM_SETCURSOR through the existing restore path. Porting notes. Upstream's list of menu switches needed a length fix after merges (8bff52b), so the list is a slice here too and adding an entry doesn't need the count changed. The entry sits after this fork's Startup card, in place of upstream's menu layout rows the fork doesn't have. The fork's window procedure has no phone-screen check, so the condition is just the mouse-look lock or the switch. Clippy -D warnings is clean in both of the Lint workflow's runs, victory-hle passes (263), and the live and overlay tests of victory-gpu pass. I haven't tried it in game here. AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
A "Hide cursor" switch in the menu's Overlay tab, off by default and
remembered in overlay.txt (hide_cursor). While on, the window procedure
hides the cursor in the client area, as it already does during mouse-look
lock; while the F1 drawer or the account picker has the mouse, the
overlay still shows its own cursor first.

Ported to ReVictory-RDNA3 (upstream 51ea083, with upstream's 8bff52b
folded in): the menu's switch list is a slice, so an added entry does
not need the count changed; the entry sits after this fork's Startup
card; the window procedure has no phone-screen check here, so the
condition is the mouse-look lock or the switch.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 19:57:01 +00:00
github-bot changed target branch from main to gh-pr/66/base 2026-12-05 22:32:53 +00:00
dutchmega manually merged commit 7037489fd6 into gh-pr/66/base 2026-12-06 00:43:37 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.