Move ESC/quit game
This commit is contained in:
@@ -288,6 +288,9 @@ namespace TLAC::Components
|
||||
if (keyboard->IsIntervalTapped(VK_SPACE))
|
||||
inputKey = 0x20;
|
||||
|
||||
if (keyboard->IsIntervalTapped(VK_ESCAPE))
|
||||
exit(0);
|
||||
|
||||
return inputKey;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user