From 2607fc8551e173c92d1ae4c01f295fcb0fe05693 Mon Sep 17 00:00:00 2001 From: andreja6 Date: Thu, 3 May 2018 12:13:14 -0700 Subject: [PATCH] Exit on alt+f4 rather than ESC --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 3687c53..a5b86e3 100644 --- a/main.cpp +++ b/main.cpp @@ -940,7 +940,7 @@ void Demo::onSimulation(RealTime rdt, SimTime sdt, SimTime idt) { //User Input void Demo::onUserInput(UserInput* ui) { - if (ui->keyPressed(SDLK_ESCAPE)) { + if (ui->keyPressed(SDLK_F4) && ui->keyDown(SDLK_LALT)) { // Even when we aren't in debug mode, quit on escape. endApplet = true; app->endProgram = true;