From b2d5311d799f1ae42b1edc9268e0c7abe1d75fc7 Mon Sep 17 00:00:00 2001 From: somewhatlurker <52014015+somewhatlurker@users.noreply.github.com> Date: Tue, 10 Sep 2019 05:54:53 +0000 Subject: [PATCH] change double-tap esc to exit behaviour -- now sets the flag for the game to exit itself --- .../source/plugins/TLAC/Components/Input/InputEmulator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source-code/source/plugins/TLAC/Components/Input/InputEmulator.cpp b/source-code/source/plugins/TLAC/Components/Input/InputEmulator.cpp index 9bad48c..e598cc0 100644 --- a/source-code/source/plugins/TLAC/Components/Input/InputEmulator.cpp +++ b/source-code/source/plugins/TLAC/Components/Input/InputEmulator.cpp @@ -296,7 +296,7 @@ namespace TLAC::Components inputKey = 0x20; if (keyboard->IsDoubleTapped(VK_ESCAPE)) - ((void(*)(unsigned int, int, int))DOEXIT_ADDRESS)(0, 0, 0); + *(bool*)SHOULD_EXIT_BOOL_ADDRESS = true; return inputKey; }