From 07e328f0fd89b1a030c81fd7a38ab9fa9fad0dc9 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Sun, 5 May 2019 22:50:55 +0100 Subject: [PATCH] SDL: Exit the application when the escape key is pressed --- src/platform/sdl/sdl-events.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/platform/sdl/sdl-events.c b/src/platform/sdl/sdl-events.c index 93243a1db6d..32fe7b0d44d 100644 --- a/src/platform/sdl/sdl-events.c +++ b/src/platform/sdl/sdl-events.c @@ -465,11 +465,9 @@ static void _mSDLHandleKeypress(struct mCoreThread* context, struct mSDLPlayer* context->frameCallback = _pauseAfterFrame; mCoreThreadUnpause(context); return; -#ifdef BUILD_PANDORA case SDLK_ESCAPE: mCoreThreadEnd(context); return; -#endif default: if ((event->keysym.mod & GUI_MOD) && (event->keysym.mod & GUI_MOD) == event->keysym.mod) { switch (event->keysym.sym) {