mirror of
https://github.com/harfang3d/harfang3d.git
synced 2024-06-01 14:02:16 +00:00
use SDL_SetRelativeMouseMode
This commit is contained in:
parent
9eec824c91
commit
b7306f2e91
|
@ -189,7 +189,7 @@ hg::Vec2 GetWindowContentScale(const Window *window) {
|
||||||
|
|
||||||
void ShowCursor() { SDL_ShowCursor(SDL_ENABLE); }
|
void ShowCursor() { SDL_ShowCursor(SDL_ENABLE); }
|
||||||
void HideCursor() { SDL_ShowCursor(SDL_DISABLE); }
|
void HideCursor() { SDL_ShowCursor(SDL_DISABLE); }
|
||||||
void DisableCursor() { SDL_ShowCursor(SDL_DISABLE); }
|
void DisableCursor() { SDL_SetRelativeMouseMode(SDL_ENABLE); }
|
||||||
void WindowSystemShutdown() { }
|
void WindowSystemShutdown() { }
|
||||||
|
|
||||||
} // namespace hg
|
} // namespace hg
|
||||||
|
|
Loading…
Reference in New Issue
Block a user