A structure that contains the "quit requested" event.
Uint32 |
type |
SDL_EVENT_QUIT |
Uint32 |
timestamp |
timestamp of the event |
SDL_Event e;for (;;) {
SDL_PollEvent(&e);if (e.type == SDL_EVENT_QUIT) {
"Program quit after %i ticks", e.quit.timestamp);
SDL_Log(break;
} }
SDL_QuitEvent is a member of the SDL_Event union and is used when an event of type SDL_EVENT_QUIT is reported. You would access it through the event's quit
field.
Please refer to the discussion of SDL_EVENT_QUIT for more details.
CategoryStruct, CategoryEvents