[GameState] The game will now be paused it the window lose the focus.

This commit is contained in:
Quentin Bazin 2020-02-24 23:23:27 +09:00
parent 7e38907854
commit 4fc45e3d93

View File

@ -93,8 +93,7 @@ void GameState::onEvent(const SDL_Event &event) {
}
else if (event.type == SDL_WINDOWEVENT) {
if (event.window.event == SDL_WINDOWEVENT_FOCUS_LOST) {
// FIXME
// m_stateStack->push<PauseMenuState>(m_client, this);
m_stateStack->push<PauseMenuState>(m_client, this);
gk::Mouse::setCursorGrabbed(false);
gk::Mouse::setCursorVisible(true);