mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-14 18:15:28 -04:00
Fix SDL3 backend with latest commits
This commit is contained in:
parent
edd3e78832
commit
135d0a79db
@ -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