Skip to content

Commit

Permalink
disable relative mouse mode change
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Oct 31, 2024
1 parent 9c33ac6 commit cdc47e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/input/app_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ 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);
}
SDL_ShowCursor(grab ? SDL_FALSE : SDL_TRUE);
// if (!app_configuration->hardware_mouse) {
// SDL_SetRelativeMouseMode(grab && !app_configuration->absmouse ? SDL_TRUE : SDL_FALSE);
// }
// SDL_ShowCursor(grab ? SDL_FALSE : SDL_TRUE);
}

bool app_get_mouse_relative() {
Expand Down

0 comments on commit cdc47e5

Please sign in to comment.