equal
deleted
inserted
replaced
32 |
32 |
33 /** @file SDL_quit.h |
33 /** @file SDL_quit.h |
34 * An SDL_QUITEVENT is generated when the user tries to close the application |
34 * An SDL_QUITEVENT is generated when the user tries to close the application |
35 * window. If it is ignored or filtered out, the window will remain open. |
35 * window. If it is ignored or filtered out, the window will remain open. |
36 * If it is not ignored or filtered, it is queued normally and the window |
36 * If it is not ignored or filtered, it is queued normally and the window |
37 * is allowed to close. When the window is closed, screen updates will |
37 * is allowed to close. When the window is closed, screen updates will |
38 * complete, but have no effect. |
38 * complete, but have no effect. |
39 * |
39 * |
40 * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) |
40 * SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) |
41 * and SIGTERM (system termination request), if handlers do not already |
41 * and SIGTERM (system termination request), if handlers do not already |
42 * exist, that generate SDL_QUITEVENT events as well. There is no way |
42 * exist, that generate SDL_QUITEVENT events as well. There is no way |
44 * handler in your application will override the default generation of |
44 * handler in your application will override the default generation of |
45 * quit events for that signal. |
45 * quit events for that signal. |
46 */ |
46 */ |
47 |
47 |
48 /** @file SDL_quit.h |
48 /** @file SDL_quit.h |
49 * There are no functions directly affecting the quit event |
49 * There are no functions directly affecting the quit event |
50 */ |
50 */ |
51 |
51 |
52 #define SDL_QuitRequested() \ |
52 #define SDL_QuitRequested() \ |
53 (SDL_PumpEvents(), SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUITMASK)) |
53 (SDL_PumpEvents(), SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_QUITMASK)) |
54 |
54 |