Skip to content

Commit

Permalink
test build 2: only enable SDL_SetRelativeMouseMode
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Nov 1, 2024
1 parent cdc47e5 commit 6707e1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/input/app_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 6707e1f

Please sign in to comment.