Merge pull request #1243 from forkiesassds/master

Fix SDL3 backend with latest SDL3 commits
This commit is contained in:
UnknownShadow200 2024-08-10 21:06:53 +10:00 committed by GitHub
commit acd8cb0d50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;
} }