SDLQuit
SDL_QUIT, commonly referred to as the quit event, is an event type in the SDL (Simple DirectMedia Layer) library used to signal that an application should terminate. It is part of SDL’s event system and is defined as part of the SDL events API.
Typically, SDL_QUIT is generated when the user attempts to close a window, for example by clicking the
In an SDL program, SDL_QUIT is handled in the main event loop. The usual pattern is to
Notes and considerations include the distinction between SDL_QUIT and other termination methods such as explicit program