added show and hide cursor support, fixing technological debt from original mlx, fixed missaligned comments in mlx.h

This commit is contained in:
Kbz-8
2024-10-31 15:16:01 +01:00
parent fc404a4d22
commit 77f1a2d8f8
7 changed files with 205 additions and 205 deletions

View File

@@ -125,6 +125,16 @@ namespace mlx
SDL_SetWindowPosition(static_cast<Internal::WindowInfos*>(window)->window, x, y);
}
void SDLManager::HideCursor() noexcept
{
SDL_ShowCursor(SDL_DISABLE);
}
void SDLManager::ShowCursor() noexcept
{
SDL_ShowCursor(SDL_ENABLE);
}
std::int32_t SDLManager::GetX() const noexcept
{
int dummy;