summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl/button.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/sdl/button.c')
-rw-r--r--uisimulator/sdl/button.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index 35c800367c..c5bc51816b 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -115,6 +115,12 @@ void button_event(int key, bool pressed)
#endif
break;
+ case SDLK_ESCAPE:
+#if defined BUTTON_POWER
+ new_btn = BUTTON_POWER;
+#endif
+ break;
+
case SDLK_KP_ENTER:
case SDLK_RETURN:
case SDLK_a: