Compare commits

...

4 Commits

Author SHA1 Message Date
astrofra f0b82d4318
Merge pull request #38 from pmp-p/patch-1
hg::DisableCursor() on SDL is not implemented
2022-12-13 11:14:57 +01:00
Paul m. p. Peny 9315f31546
Update window_system.cpp 2022-12-12 17:04:07 +01:00
Paul m. p. Peny b7306f2e91
use SDL_SetRelativeMouseMode 2022-12-12 16:52:22 +01:00
Paul m. p. Peny 9eec824c91
hg::DisableCursor() on SDL is not implemented
but is required for wasm static linking.
2022-12-11 14:38:09 +01:00
1 changed files with 1 additions and 0 deletions

View File

@ -189,6 +189,7 @@ hg::Vec2 GetWindowContentScale(const Window *window) {
void ShowCursor() { SDL_ShowCursor(SDL_ENABLE); }
void HideCursor() { SDL_ShowCursor(SDL_DISABLE); }
void DisableCursor() { SDL_SetRelativeMouseMode(SDL_TRUE); }
void WindowSystemShutdown() { }
} // namespace hg