use SDL_SetRelativeMouseMode

This commit is contained in:
Paul m. p. Peny 2022-12-12 16:52:22 +01:00 committed by GitHub
parent 9eec824c91
commit b7306f2e91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ hg::Vec2 GetWindowContentScale(const Window *window) {
void ShowCursor() { SDL_ShowCursor(SDL_ENABLE); }
void HideCursor() { SDL_ShowCursor(SDL_DISABLE); }
void DisableCursor() { SDL_ShowCursor(SDL_DISABLE); }
void DisableCursor() { SDL_SetRelativeMouseMode(SDL_ENABLE); }
void WindowSystemShutdown() { }
} // namespace hg