summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sdl_fb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sdl_fb.c b/src/sdl_fb.c
index d1e3cd5..2a2ef19 100644
--- a/src/sdl_fb.c
+++ b/src/sdl_fb.c
@@ -272,6 +272,10 @@ static int sdl_ready()
while (SDL_PollEvent(&ev)) {
if (ev.type == SDL_QUIT)
return -EPIPE;
+
+ if (ev.type == SDL_KEYDOWN &&
+ ev.key.keysym.sym == SDL_GetKeyFromScancode(SDL_SCANCODE_ESCAPE))
+ return -EPIPE;
}
return 0;
© All Rights Reserved