This commit is contained in:
2025-06-24 16:47:45 +03:00
parent 9951211596
commit 951edd95db
3 changed files with 5 additions and 14 deletions

View File

@@ -236,15 +236,10 @@ Float2 SDLPlatform::GetMousePosition()
// use the last known reported position we got from received window events.
return Input::GetMouseScreenPosition();
}
if (UsesX11())
#elif PLATFORM_LINUX || PLATFORM_MAC
{
Float2 pos;
SDL_GetGlobalMouseState(&pos.X, &pos.Y);
return pos;
}
#endif
return Input::GetMouseScreenPosition();
Float2 pos;
SDL_GetGlobalMouseState(&pos.X, &pos.Y);
return pos;
}
void SDLPlatform::SetMousePosition(const Float2& pos)