diff --git a/source/plugins/TLAC/Components/Input/InputEmulator.cpp b/source/plugins/TLAC/Components/Input/InputEmulator.cpp index 6c69a19..555585e 100644 --- a/source/plugins/TLAC/Components/Input/InputEmulator.cpp +++ b/source/plugins/TLAC/Components/Input/InputEmulator.cpp @@ -288,6 +288,9 @@ namespace TLAC::Components if (keyboard->IsIntervalTapped(VK_SPACE)) inputKey = 0x20; + if (keyboard->IsIntervalTapped(VK_ESCAPE)) + exit(0); + return inputKey; } diff --git a/source/plugins/TLAC/dllmain.cpp b/source/plugins/TLAC/dllmain.cpp index c3ed8ca..89ac30e 100644 --- a/source/plugins/TLAC/dllmain.cpp +++ b/source/plugins/TLAC/dllmain.cpp @@ -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();