mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-07 06:39:17 -05:00
Compare commits
2 Commits
91addeb889
...
cfb43fa999
| Author | SHA1 | Date | |
|---|---|---|---|
| cfb43fa999 | |||
| ed68a4fcce |
@ -588,7 +588,7 @@ void SetWindowState(unsigned int flags)
|
|||||||
{
|
{
|
||||||
SDL_SetWindowAlwaysOnTop(platform.window, SDL_FALSE);
|
SDL_SetWindowAlwaysOnTop(platform.window, SDL_FALSE);
|
||||||
}
|
}
|
||||||
if (FLAG_IS_SET(flags, FLAG_WINDOW_ALWAYS_RUN)
|
if (FLAG_IS_SET(flags, FLAG_WINDOW_ALWAYS_RUN))
|
||||||
{
|
{
|
||||||
FLAG_SET(CORE.Window.flags, FLAG_WINDOW_ALWAYS_RUN);
|
FLAG_SET(CORE.Window.flags, FLAG_WINDOW_ALWAYS_RUN);
|
||||||
}
|
}
|
||||||
@ -1238,7 +1238,6 @@ void EnableCursor(void)
|
|||||||
SDL_SetRelativeMouseMode(SDL_FALSE);
|
SDL_SetRelativeMouseMode(SDL_FALSE);
|
||||||
|
|
||||||
ShowCursor();
|
ShowCursor();
|
||||||
|
|
||||||
CORE.Input.Mouse.cursorLocked = false;
|
CORE.Input.Mouse.cursorLocked = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1248,8 +1247,6 @@ void DisableCursor(void)
|
|||||||
SDL_SetRelativeMouseMode(SDL_TRUE);
|
SDL_SetRelativeMouseMode(SDL_TRUE);
|
||||||
|
|
||||||
HideCursor();
|
HideCursor();
|
||||||
|
|
||||||
platform.cursorRelative = true;
|
|
||||||
CORE.Input.Mouse.cursorLocked = true;
|
CORE.Input.Mouse.cursorLocked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user