You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While it sometimes works well, sometimes after using al_show_mouse_cursor to show a previously hidden mouse cursor, it fails to do it properly.
The cursor stays hidden, even when moving it outside of the game window (usually when it's hidden it reappears after leaving the window). I can make it appear when I click somewhere outside of the window (but not inside) and afterwards I can return the cursor to the game window and it stays visible.
Tested on macOS 10.13.2
The text was updated successfully, but these errors were encountered:
On osx, cursor hide/show is like a stack - you gotta match n hides with n shows to get back to a visible cursor. see the docs. AFAICT, this is the only platform like this (I only checked windows and SDL). It forces you to be very careful about your logic for hiding/showing the cursor, which is a pretty big pain that I'm finding difficult to get just right.
osxgl.m also hides/shows the cursor for you on mouse enter/exit (given the value of show_cursor). I feel like this contributes to the problem somehow, but I can't quite articulate it now. Also, I checked the SDL backend and I don't think it does the same–should all platforms do this?
Perhaps allegro can paper over this unique-to-osx cursor behavior by preventing calls to [NSCursor hide] and [NSCursor show] when the cursor is already hidden/shown. A bit tricky, since these methods are for the current cursor, not sure if such state should be cleared whenever another cursor is made the default or if it'd have to be kept for each cursor created.
While it sometimes works well, sometimes after using al_show_mouse_cursor to show a previously hidden mouse cursor, it fails to do it properly.
The cursor stays hidden, even when moving it outside of the game window (usually when it's hidden it reappears after leaving the window). I can make it appear when I click somewhere outside of the window (but not inside) and afterwards I can return the cursor to the game window and it stays visible.
Tested on macOS 10.13.2
The text was updated successfully, but these errors were encountered: