emscripten: Disable fullscreen by F4

This commit is contained in:
kichikuou
2019-03-23 10:52:25 +09:00
parent 46599e8896
commit 29a436f17e
+2
View File
@@ -103,10 +103,12 @@ static void sdl_getEvent(void) {
case SDL_KEYUP:
keyEventProsess(&e.key, FALSE);
if (e.key.keysym.sym == SDLK_F1) msg_skip = TRUE;
#ifndef __EMSCRIPTEN__
if (e.key.keysym.sym == SDLK_F4) {
sdl_fs_on = !sdl_fs_on;
SDL_SetWindowFullscreen(sdl_window, sdl_fs_on ? SDL_WINDOW_FULLSCREEN_DESKTOP : 0);
}
#endif
break;
case SDL_MOUSEMOTION:
mousex = e.motion.x;