mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #2086] Reset the mouse baseline when the cursor source changes (RT-KEYBOARD-PAD-CURSOR-SOURCE) #2092
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2092
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2086
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/gameinput-cursor-source📝 Commits (1)
361c3abReset mouse delta baseline when the cursor source changes📊 Changes
2 files changed (+38 additions, -9 deletions)
View changed files
📝
runtime/shims/gameinput.cpp(+20 -9)📝
runtime/test/gameinput_test.cpp(+18 -0)📄 Description
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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.