Exit on alt+f4 rather than ESC

This commit is contained in:
andreja6
2018-05-03 12:13:14 -07:00
parent 1de2fb6811
commit 2607fc8551

View File

@@ -940,7 +940,7 @@ void Demo::onSimulation(RealTime rdt, SimTime sdt, SimTime idt) {
//User Input //User Input
void Demo::onUserInput(UserInput* ui) { 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. // Even when we aren't in debug mode, quit on escape.
endApplet = true; endApplet = true;
app->endProgram = true; app->endProgram = true;