Reset the mouse baseline when the cursor source changes (RT-KEYBOARD-PAD-CURSOR-SOURCE) #2086
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2086
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/gameinput-cursor-source"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as: RT-KEYBOARD-PAD-CURSOR-SOURCE
What and why
The first poll after raw input starts can subtract a screen cursor coordinate from a raw-motion counter. That difference can appear as a full stick movement while the mouse is stationary. Select one cursor source for each poll and establish a new baseline when the source changes. Accumulated stick motion continues its normal decay.
Tested
0afcf9bfailed all three source-switch checks. The patchedgameinputandgameinput_scriptCTests passed with 377 checks, zero failures.git diff --checkand the source-only check.GPUs tested: n/a. The tests use virtual pads.
AI-assisted: yes.
main.Red/green: On main gameinput_test fails 3 of 370 checks (the mouse baseline is not reset when the cursor source changes), and with the PR ctest -R "^(gameinput|gameinput_script)$" passes 2/2.
Independent tester (OreoFR, RTX 4070, Windows 11): PR head merged with the other PRs of its batch on main c1ecf04ed, full ctest run (485 tests, tests that launch the game excluded): no new failure compared with main.
Verified by OreoFR
Run 1 (nat02)
c1ecf04ed+ PR head361c3abe6ctest -R "^(gameinput|gameinput_script)$"Run 2 (lot 4)
09c153948+ PR head361c3abe6; integration package 3 of 6 (4 PRs, merged without conflict)Run 3 (lot 4 bis)
33db04a70+ PR head361c3abe6; integration package of 15 PRsAll runs
AI-assisted (Claude Code, Claude Opus 5.5).