[GameState] The game will now be paused it the window lose the focus.
This commit is contained in:
parent
7e38907854
commit
4fc45e3d93
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user