Fix SDL3 backend with latest commits

This commit is contained in:
forkiesassds 2024-08-10 04:21:17 +03:00
parent edd3e78832
commit 135d0a79db

View file

@ -482,14 +482,14 @@ void OnscreenKeyboard_Close(void) { SDL_StopTextInput(win_handle); }
void Window_EnableRawMouse(void) { void Window_EnableRawMouse(void) {
RegrabMouse(); RegrabMouse();
SDL_SetRelativeMouseMode(true); SDL_SetWindowRelativeMouseMode(win_handle, true);
Input.RawMode = true; Input.RawMode = true;
} }
void Window_UpdateRawMouse(void) { CentreMousePosition(); } void Window_UpdateRawMouse(void) { CentreMousePosition(); }
void Window_DisableRawMouse(void) { void Window_DisableRawMouse(void) {
RegrabMouse(); RegrabMouse();
SDL_SetRelativeMouseMode(false); SDL_SetWindowRelativeMouseMode(win_handle, false);
Input.RawMode = false; Input.RawMode = false;
} }