Exit on alt+f4 rather than ESC
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user