summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl/uisdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/sdl/uisdl.c')
-rw-r--r--uisimulator/sdl/uisdl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/uisimulator/sdl/uisdl.c b/uisimulator/sdl/uisdl.c
index 09210926b5..28aaf59f82 100644
--- a/uisimulator/sdl/uisdl.c
+++ b/uisimulator/sdl/uisdl.c
@@ -83,6 +83,12 @@ void gui_message_loop(void)
printf("Mouse at: (%d, %d)\n", event.button.x, event.button.y);
}
break;
+#else
+ case SDL_MOUSEBUTTONUP:
+ sim_enter_irq_handler();
+ button_event(BUTTON_TOUCHPAD, false);
+ sim_exit_irq_handler();
+ break;
#endif
case SDL_QUIT:
done = true;