mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
Fix SDL3 backend with latest commits
This commit is contained in:
parent
edd3e78832
commit
135d0a79db
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue