From d8cf9bd734b35f925b74035eef4e5ea829e4293f Mon Sep 17 00:00:00 2001 From: redstrate Date: Thu, 14 Oct 2021 17:15:11 -0400 Subject: [PATCH] Use SDL's relative mouse mode when capturing the mouse --- platforms/sdl/main.cpp.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platforms/sdl/main.cpp.in b/platforms/sdl/main.cpp.in index 28b8262..6c13071 100644 --- a/platforms/sdl/main.cpp.in +++ b/platforms/sdl/main.cpp.in @@ -278,7 +278,7 @@ std::tuple platform::get_left_stick_position() { } void platform::capture_mouse(const bool capture) { - SDL_CaptureMouse((SDL_bool)capture); + SDL_SetRelativeMouseMode((SDL_bool)capture); } void platform::begin_text_input() {