Keep window moves and F1 menu motion out of captured mouse input #591

Open
github-bot wants to merge 1 commit from github-bot/gh-591 into main AGit
Owner

@⁠ghptc on GitHub · 2026-11-28 01:27 UTC · original
ghptc:fix/mouse-input-capture → main · +317 −40 · 6 files · 1 commits · open

Capture can reclaim the pointer during a Win32 window move or after the title loses keyboard focus. Motion made inside F1 can also leak into the first guest reading after the menu closes. On a4d05e7, moving 20 pixels inside F1 changed that reading from 13 to 33.

Release confinement for the native move/resize loop, and reacquire it when the foreground title regains focus. Only accumulate motion sampled within one uninterrupted gameplay interval. The F1 label describes cursor confinement. The README documents the existing keyboard mapping.

Verification

  • A synthetic window fixture reproduced the modal-loop and focus failures on upstream. With the patch, capture stays released through the loop and after focus loss. The F1 reading stays at 13, then resumes on the next clean interval.
  • On an isolated Proton Experimental desktop, all eight combinations of fullscreen, capture and warp passed, as did host-driven Alt-Tab in windowed and fullscreen modes. Pointer reports at 125, 500 and 1000 Hz were synthetic.
  • The targeted GameInput, lifecycle and menu suites had 41 passes. Default and diagnostics MSVC cross-target checks passed. The Linux-native HLE build encountered the same 37 graphics compilation errors on upstream and the patch.
  • Native Windows, physical-device timing and retail gameplay were not run for this patch. The committed foreground fixture is opt-in and moves the desktop pointer.

Refs #489. The gameplay camera mapping requested there is tracked in #142, #482 and #581. This change addresses capture transitions. It extends the merged F1 suppression in #32. The author of the closed #551 separately reported native Windows drag interference.

**@⁠ghptc** on GitHub · 2026-11-28 01:27 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/591) `ghptc:fix/mouse-input-capture` → `main` · +317 −40 · 6 files · 1 commits · open Capture can reclaim the pointer during a Win32 window move or after the title loses keyboard focus. Motion made inside F1 can also leak into the first guest reading after the menu closes. On `a4d05e7`, moving 20 pixels inside F1 changed that reading from 13 to 33. Release confinement for the native move/resize loop, and reacquire it when the foreground title regains focus. Only accumulate motion sampled within one uninterrupted gameplay interval. The F1 label describes cursor confinement. The README documents the existing keyboard mapping. ### Verification - A synthetic window fixture reproduced the modal-loop and focus failures on upstream. With the patch, capture stays released through the loop and after focus loss. The F1 reading stays at 13, then resumes on the next clean interval. - On an isolated Proton Experimental desktop, all eight combinations of fullscreen, capture and warp passed, as did host-driven Alt-Tab in windowed and fullscreen modes. Pointer reports at 125, 500 and 1000 Hz were synthetic. - The targeted GameInput, lifecycle and menu suites had 41 passes. Default and diagnostics MSVC cross-target checks passed. The Linux-native HLE build encountered the same 37 graphics compilation errors on upstream and the patch. - Native Windows, physical-device timing and retail gameplay were not run for this patch. The committed foreground fixture is opt-in and moves the desktop pointer. Refs #489. The gameplay camera mapping requested there is tracked in #142, #482 and #581. This change addresses capture transitions. It extends the merged F1 suppression in #32. The author of the closed #551 separately reported native Windows drag interference.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 01:29:55 +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/591/head:github-bot/gh-591'
git switch 'github-bot/gh-591'

Merge

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