mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 02:56:09 -04:00
Merge pull request #1243 from forkiesassds/master
Fix SDL3 backend with latest SDL3 commits
This commit is contained in:
commit
acd8cb0d50
@ -482,14 +482,14 @@ void OnscreenKeyboard_Close(void) { SDL_StopTextInput(win_handle); }
|
||||
|
||||
void Window_EnableRawMouse(void) {
|
||||
RegrabMouse();
|
||||
SDL_SetRelativeMouseMode(true);
|
||||
SDL_SetWindowRelativeMouseMode(win_handle, true);
|
||||
Input.RawMode = true;
|
||||
}
|
||||
void Window_UpdateRawMouse(void) { CentreMousePosition(); }
|
||||
|
||||
void Window_DisableRawMouse(void) {
|
||||
RegrabMouse();
|
||||
SDL_SetRelativeMouseMode(false);
|
||||
SDL_SetWindowRelativeMouseMode(win_handle, false);
|
||||
Input.RawMode = false;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user