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

This commit is contained in:
2024-10-31 15:16:01 +01:00
parent 6669d78323
commit a662427097
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;