Ignore held mouse buttons when F1 regains focus #4977
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4977
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4976"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 16:10 UTC · original
andrewpozdnakov7-jpg:codex2/fix/f1-main-menu-mouse→main· +7 −2 · 1 files · 4 commits · openRefs #4940, point 1.
What it changes
The new
mainalready restores hover, clicks and Back in the settings menu and its save picker. This update carries across the held-button guard from this PR. F1 waits for a release before acting on a mouse button that was already down when the menu opened or the game regained focus. A fresh press after release works normally.How it was tested
A focused Windows Rust fixture ran the exact foreground polling and press logic with synthetic button and focus states.
Before (
93aa9a92): both a held left click and a held right click became a menu press on focus return. The menu-open and arrow-key controls passed.After (
9159c9d6): all four scenarios passed. Both buttons stayed suppressed until release, and ordinary pointer and arrow input still worked.Windows
cargo check --locked -p victory-gpuand staged asset policy for the one changed file passed. Actual in-game focus and click behavior still needs a menu tester.CI check stops at Clippy findings in the unchanged
victory-shaderfileslds_batch.rsandoracle64.rs.Checked for overlap
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this change into another commit.AI-assisted with OpenAI Codex.
Restore mouse controls in the main F1 menuto Restore mouse controls in F1 and the save picker@andrewpozdnakov7-jpg on GitHub · 2026-12-01 18:03 UTC · original
499609f5 moves the pointer state and its per-draw reset away from the overlay's allocation failure flag. The current heads of this PR and #5040 now merge cleanly together. The merged code clears the pointer layout before the retry check and rebuilds it from the drawn rows once buffers are available.
The focused Windows geometry fixture and
cargo check --locked -p victory-gpupassed on the updated head. Staged asset policy checked the one changed file. Actual in-game mouse interaction still needs a menu tester.Please keep the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this change into another commit.AI-assisted with OpenAI Codex.
Restore mouse controls in F1 and the save pickerto Ignore held mouse buttons when F1 regains focus@andrewpozdnakov7-jpg on GitHub · 2026-12-01 18:33 UTC · original
Updated this PR to
9159c9d6on the currentmain. Main now supplies the pointer navigation and picker UI. The remaining diff preserves the held-button guard. The exact press-path fixture reproduced accidental left and right presses on focus return on93aa9a92; both stopped with the patch, and normal clicks and an arrow press still worked. Windows crate check and staged asset policy passed.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.