mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 03:32:01 +00:00
Hides the mouse cursor when in SDL fullscreen mode.
This commit is contained in:
parent
3b8cdd620c
commit
dc4f58e40c
@ -422,6 +422,7 @@ int main(int argc, char *argv[]) {
|
|||||||
if(event.key.keysym.sym == SDLK_RETURN && (SDL_GetModState()&KMOD_ALT)) {
|
if(event.key.keysym.sym == SDLK_RETURN && (SDL_GetModState()&KMOD_ALT)) {
|
||||||
fullscreen_mode ^= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
fullscreen_mode ^= SDL_WINDOW_FULLSCREEN_DESKTOP;
|
||||||
SDL_SetWindowFullscreen(window, fullscreen_mode);
|
SDL_SetWindowFullscreen(window, fullscreen_mode);
|
||||||
|
SDL_ShowCursor((fullscreen_mode&SDL_WINDOW_FULLSCREEN_DESKTOP) ? SDL_DISABLE : SDL_ENABLE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user