Removed the game's automatic pausing when window focus is lost.
This feature is just annoying if for some reason you want to leave the game to do something else while you wait for something. That would normally be a defect, but I can't count the number of times I've been rushing through to get to a particular area, using cheats, and had to wait for some mission condition, and this is only made worse by not being able to do some other work while I wait for it.
This commit is contained in:
parent
1c42d07906
commit
d4ff9213b5
|
@ -250,11 +250,6 @@ void getPlayerInput()
|
||||||
engine.keyState[KEY_RIGHT] = prevjoyright = joyright;
|
engine.keyState[KEY_RIGHT] = prevjoyright = joyright;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SDL_WINDOWEVENT:
|
|
||||||
if(engine.event.window.event == SDL_WINDOWEVENT_FOCUS_LOST)
|
|
||||||
engine.paused = 1;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (engine.keyState[KEY_FULLSCREEN])
|
if (engine.keyState[KEY_FULLSCREEN])
|
||||||
|
|
Loading…
Reference in New Issue