Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ogc: always let application decide on mouse visibility #59

Merged
merged 1 commit into from
Mar 9, 2024

Conversation

mardy
Copy link
Collaborator

@mardy mardy commented Mar 9, 2024

Our heuristics break the "Abbaye des Morts" game, which does not need a mouse cursor and just calls SDL_ShowCursor(SDL_DISABLE) at startup. Yet, with the current version of SDL, if the wiimote is pointed at the screen we are still showing a cursor, overriding the application's explicit decision. And the mouse cursor is useless, since the application is not reacting to a mouse.

The code we are removing was mainly added with the intent of hiding the mouse cursor when the wiimote was not pointed at the screen, and we could indeed update it and keep it working just as an additional check on whether the cursor should be shown or not, but we don't really have a concrete use-case here.

Let's just remove it completely for now, and bring it back (still respecting an explicit SDL_DISABLE setting, though!) if/when we see a reason to.

Our heuristics break the "Abbaye des Morts" game, which does not need a
mouse cursor and just calls `SDL_ShowCursor(SDL_DISABLE)` at startup.
Yet, with the current version of SDL, if the wiimote is pointed at the
screen we are still showing a cursor, overriding the application's
explicit decision. And the mouse cursor is useless, since the
application is not reacting to a mouse.

The code we are removing was mainly added with the intent of _hiding_
the mouse cursor when the wiimote was not pointed at the screen, and we
could indeed update it and keep it working just as an additional check
on whether the cursor should be shown or not, but we don't really have a
concrete use-case here.

Let's just remove it completely for now, and bring it back (still
respecting an explicit SDL_DISABLE setting, though!) if/when we see a
reason to.
@WinterMute WinterMute merged commit cf19790 into devkitPro:ogc-sdl-2.28 Mar 9, 2024
3 checks passed
WinterMute pushed a commit that referenced this pull request Oct 27, 2024
Our heuristics break the "Abbaye des Morts" game, which does not need a
mouse cursor and just calls `SDL_ShowCursor(SDL_DISABLE)` at startup.
Yet, with the current version of SDL, if the wiimote is pointed at the
screen we are still showing a cursor, overriding the application's
explicit decision. And the mouse cursor is useless, since the
application is not reacting to a mouse.

The code we are removing was mainly added with the intent of _hiding_
the mouse cursor when the wiimote was not pointed at the screen, and we
could indeed update it and keep it working just as an additional check
on whether the cursor should be shown or not, but we don't really have a
concrete use-case here.

Let's just remove it completely for now, and bring it back (still
respecting an explicit SDL_DISABLE setting, though!) if/when we see a
reason to.
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