diff --git a/code/player.cpp b/code/player.cpp index f61ad95..353ee0d 100644 --- a/code/player.cpp +++ b/code/player.cpp @@ -342,6 +342,13 @@ void getPlayerInput() default: break; } + + if ((engine.keyState[SDLK_F11]) || ((engine.keyState[SDLK_RETURN]) && (engine.keyState[SDLK_LALT]))) + { + SDL_WM_ToggleFullScreen(screen); + engine.fullScreen = !engine.fullScreen; + engine.keyState[SDLK_F11] = engine.keyState[SDLK_LALT] = engine.keyState[SDLK_RETURN] = 0; + } } }