SDL 3.0
|
Include file for SDL quit event handling. More...
Go to the source code of this file.
Macros | |
#define | SDL_QuitRequested() (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_EVENT_QUIT,SDL_EVENT_QUIT) > 0)) |
Include file for SDL quit event handling.
SDL_EVENT_QUIT is generated when the user tries to close the application window. If it is ignored or filtered out, the window will remain open. If it is not ignored or filtered, it is queued normally and the window is allowed to close. When the window is closed, screen updates will complete, but have no effect.
SDL_Init() installs signal handlers for SIGINT (keyboard interrupt) and SIGTERM (system termination request), if handlers do not already exist, that generate SDL_EVENT_QUIT as well. There is no way to determine the cause of an SDL_EVENT_QUIT, but setting a signal handler in your application will override the default generation of quit events for that signal.
Definition in file SDL_quit.h.
#define SDL_QuitRequested | ( | ) | (SDL_PumpEvents(), (SDL_PeepEvents(NULL,0,SDL_PEEKEVENT,SDL_EVENT_QUIT,SDL_EVENT_QUIT) > 0)) |
Definition at line 55 of file SDL_quit.h.