Skip to content

ChangeMousePos signature changed to return bool + out parameter - #183

Merged
SoloByte merged 1 commit into
mainfrom
181-changemousepos-function-overhaul
Aug 19, 2026
Merged

ChangeMousePos signature changed to return bool + out parameter#183
SoloByte merged 1 commit into
mainfrom
181-changemousepos-function-overhaul

Conversation

@SoloByte

Copy link
Copy Markdown
Collaborator

The GameVirtual ChangeMousePos signature was changed to return a bool and have an out parameter for the new mouse position. The old ChangeMousePos signature was deprecated but still exists. (Marked as Obsolete)

The GameloopExamples ChangeMousePos override was changed to the new signature.

GameGameloop now uses the new ChangeMousePos signature to only move the mouse cursor when actually requested.
Before the mouse cursor was always moved to the current mouse position even if the entire system was not used. This resulted in many subtle problems (fixed by #180) because of rounding errors and other issues. The new system makes sure to only set the mouse position through raylib when ChangeMousePos actually changed the mouse position.

…ool and have an out parameter for new mouse position. The old ChangeMousePos signature was deprecated but still exists. (Marked as Obsolete)

Refactor: GameloopExamples.cs ChangeMousePos override changed to new signature.
Refactor: GameGameloop.cs now uses new ChangeMousePos signature to only move the mouse cursor when actually requested.
@SoloByte SoloByte added this to the 5.2 milestone Aug 19, 2026
@SoloByte SoloByte self-assigned this Aug 19, 2026
@SoloByte SoloByte added improvement Improvement of existing code. refactor labels Aug 19, 2026
@SoloByte SoloByte linked an issue Aug 19, 2026 that may be closed by this pull request
@SoloByte SoloByte moved this from Inbox to Active in Shape Engine Roadmap Aug 19, 2026
@SoloByte SoloByte moved this from Active to Review in Shape Engine Roadmap Aug 19, 2026
@SoloByte
SoloByte merged commit 511be86 into main Aug 19, 2026
7 checks passed
@SoloByte
SoloByte deleted the 181-changemousepos-function-overhaul branch August 19, 2026 12:38
@github-project-automation github-project-automation Bot moved this from Review to Done in Shape Engine Roadmap Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Improvement of existing code. refactor

Projects

Development

Successfully merging this pull request may close these issues.

ChangeMousePos() function changes for cleaner mouse control

1 participant