Description: sdl-quit Add SDL_QUIT event Author: William (Bill) Kendrick Bug-Debian: http://bugs.debian.org/299431 Reviewed-By: Christian T. Steigies Last-Update: 2005-03-19 --- gemdropx-0.9.orig/gemdropx.c +++ gemdropx-0.9/gemdropx.c @@ -1016,6 +1016,10 @@ void getkey(int handle_expose) key = event.key.keysym.sym; } + else if (event.type == SDL_QUIT) + { + key = SDLK_ESCAPE; + } else if (event.type == SDL_MOUSEBUTTONDOWN) { /* Mouse counts as keyboard: */