summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl/button-x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/sdl/button-x11.c')
-rw-r--r--uisimulator/sdl/button-x11.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/uisimulator/sdl/button-x11.c b/uisimulator/sdl/button-x11.c
index 7c41f24cc8..b0ab81a86a 100644
--- a/uisimulator/sdl/button-x11.c
+++ b/uisimulator/sdl/button-x11.c
@@ -199,6 +199,12 @@ void button_read (void)
break;
#endif
+#ifdef BUTTON_POWER
+ case SDLK_KP_MINUS:
+ case SDLK_p:
+ k = BUTTON_POWER;
+#endif
+
#ifdef BUTTON_F1
case SDLK_KP_DIVIDE:
case SDLK_F1: