From 6707e1f6b19282f4b5d9977090f38b76388de729 Mon Sep 17 00:00:00 2001 From: Ningyuan Li Date: Fri, 1 Nov 2024 10:48:05 +0900 Subject: [PATCH] test build 2: only enable SDL_SetRelativeMouseMode --- src/app/input/app_input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/input/app_input.c b/src/app/input/app_input.c index 357960b2..5830eda4 100644 --- a/src/app/input/app_input.c +++ b/src/app/input/app_input.c @@ -32,9 +32,9 @@ void app_input_deinit(app_input_t *input) { } void app_set_mouse_grab(app_input_t *input, bool grab) { -// if (!app_configuration->hardware_mouse) { -// SDL_SetRelativeMouseMode(grab && !app_configuration->absmouse ? SDL_TRUE : SDL_FALSE); -// } + if (!app_configuration->hardware_mouse) { + SDL_SetRelativeMouseMode(grab && !app_configuration->absmouse ? SDL_TRUE : SDL_FALSE); + } // SDL_ShowCursor(grab ? SDL_FALSE : SDL_TRUE); }