comparison src/events/SDL_keyboard.c @ 1123:28ac87a38c17

Date: Fri, 08 Jul 2005 22:43:48 +0200 (CEST) From: Jiri Svoboda Subject: [SDL] signal handling bug I encountered the following bug: SDL doesn't reset signal handlers for SIGTERM and SIGINT, after calling SDL_Quit these remain hooked to the handler in SDL_quit.c, being translated into SDL_QUIT events. Consequently an application that issues a SDL_Quit and remains running will ignore any SIGTERM or SIGINT., and specifically CTRL-C presses.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 21 Aug 2005 06:18:54 +0000
parents ddd058103e28
children 217f5d5a49e5
comparison
equal deleted inserted replaced
1122:e253d5448fce 1123:28ac87a38c17
319 keynames[SDLK_UNDO] = "undo"; 319 keynames[SDLK_UNDO] = "undo";
320 320
321 /* Done. Whew. */ 321 /* Done. Whew. */
322 return(0); 322 return(0);
323 } 323 }
324 void SDL_KeyboardQuit(void)
325 {
326 }
324 327
325 /* We lost the keyboard, so post key up messages for all pressed keys */ 328 /* We lost the keyboard, so post key up messages for all pressed keys */
326 void SDL_ResetKeyboard(void) 329 void SDL_ResetKeyboard(void)
327 { 330 {
328 SDL_keysym keysym; 331 SDL_keysym keysym;