Change SDL_SetWindowMouseGrab to SDL_SetRelativeMouseMode
This commit is contained in:
@@ -269,7 +269,7 @@ sdl_set_fs(int fs)
|
|||||||
sdl_enabled = 0;
|
sdl_enabled = 0;
|
||||||
sdl_destroy_texture();
|
sdl_destroy_texture();
|
||||||
SDL_SetWindowFullscreen(sdl_win, fs ? SDL_WINDOW_FULLSCREEN : 0);
|
SDL_SetWindowFullscreen(sdl_win, fs ? SDL_WINDOW_FULLSCREEN : 0);
|
||||||
SDL_SetWindowMouseGrab(sdl_win, mouse_capture);
|
SDL_SetRelativeMouseMode((SDL_bool)mouse_capture);
|
||||||
|
|
||||||
sdl_fs = fs;
|
sdl_fs = fs;
|
||||||
|
|
||||||
@@ -441,4 +441,4 @@ wchar_t* ui_window_title(wchar_t* str)
|
|||||||
SDL_free((void*)res);
|
SDL_free((void*)res);
|
||||||
}
|
}
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user