Skip to content

Conversation

@mardy
Copy link
Collaborator

@mardy mardy commented Jan 17, 2024

The system default cursor is not supposed to change, so we can create it just once (when the mouse gets initialized). In the polling callback we then just need to hide or show it.

The logic of showing is not changed: if the application has set a specific cursor, then it's in full control of its visibility; but if it's using the default cursor, then we show the cursor only if at least one wiimote is pointed at the screen.

The system default cursor is not supposed to change, so we can create it
just once (when the mouse gets initialized). In the polling callback we
then just need to hide or show it.

The logic of showing is not changed: if the application has set a
specific cursor, then it's in full control of its visibility; but if
it's using the default cursor, then we show the cursor only if at least
one wiimote is pointed at the screen.
@WinterMute WinterMute merged commit 4423087 into devkitPro:ogc-sdl-2.28 Jan 17, 2024
WinterMute pushed a commit that referenced this pull request Jan 20, 2024
WinterMute pushed a commit that referenced this pull request Oct 27, 2024
The system default cursor is not supposed to change, so we can create it
just once (when the mouse gets initialized). In the polling callback we
then just need to hide or show it.

The logic of showing is not changed: if the application has set a
specific cursor, then it's in full control of its visibility; but if
it's using the default cursor, then we show the cursor only if at least
one wiimote is pointed at the screen.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants