Mercurial > sdl-ios-xcode
comparison src/events/SDL_mouse.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 | 715c32d8f26c |
children | f214b6fae45a |
comparison
equal
deleted
inserted
replaced
1122:e253d5448fce | 1123:28ac87a38c17 |
---|---|
55 SDL_DeltaY = 0; | 55 SDL_DeltaY = 0; |
56 SDL_ButtonState = 0; | 56 SDL_ButtonState = 0; |
57 | 57 |
58 /* That's it! */ | 58 /* That's it! */ |
59 return(0); | 59 return(0); |
60 } | |
61 void SDL_MouseQuit(void) | |
62 { | |
60 } | 63 } |
61 | 64 |
62 /* We lost the mouse, so post button up messages for all pressed buttons */ | 65 /* We lost the mouse, so post button up messages for all pressed buttons */ |
63 void SDL_ResetMouse(void) | 66 void SDL_ResetMouse(void) |
64 { | 67 { |