Move ESC/quit game

This commit is contained in:
nastys
2019-07-07 16:58:22 +02:00
parent b2494f72f9
commit 1b07823190
2 changed files with 3 additions and 5 deletions
-5
View File
@@ -82,11 +82,6 @@ namespace TLAC
HadWindowFocus = HasWindowFocus;
HasWindowFocus = framework::DivaWindowHandle == NULL || GetForegroundWindow() == framework::DivaWindowHandle;
if (HasWindowFocus && GetAsyncKeyState(VK_ESCAPE))
{
exit(1);
}
if ((HasWindowFocus) && (!framework::inputDisable))
{
Input::Keyboard::GetInstance()->PollInput();