From b7306f2e91287d84acb2b936a75838c5595e489c Mon Sep 17 00:00:00 2001 From: "Paul m. p. Peny" Date: Mon, 12 Dec 2022 16:52:22 +0100 Subject: [PATCH] use SDL_SetRelativeMouseMode --- harfang/platform/sdl/window_system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/harfang/platform/sdl/window_system.cpp b/harfang/platform/sdl/window_system.cpp index de35660..24bd296 100644 --- a/harfang/platform/sdl/window_system.cpp +++ b/harfang/platform/sdl/window_system.cpp @@ -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