change double-tap esc to exit behaviour -- now sets the flag for the game to exit itself

This commit is contained in:
somewhatlurker
2019-09-10 05:54:53 +00:00
parent e259e78909
commit 969eaa4a7c
@@ -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;
}