hide cursor on OSX

This commit is contained in:
2019-03-10 00:43:33 +01:00
parent 65872cf253
commit 5cd80f41fa
3 changed files with 23 additions and 0 deletions

View File

@@ -42,6 +42,9 @@ void App::show_cursor()
{
#ifdef _WIN32
win32_show_cursor(true);
#elif __OSX__
if (!CGCursorIsVisible())
[NSCursor unhide];
#endif
}
@@ -49,6 +52,9 @@ void App::hide_cursor()
{
#ifdef _WIN32
win32_show_cursor(false);
#elif __OSX__
if (CGCursorIsVisible())
[NSCursor hide];
#endif
}