Check for the existence of a certain event type in the event queue.
Defined in SDL_events.h, but apps should only #include "SDL.h"
!
SDL_bool SDL_HasEvent(Uint32 type);
type | the type of event to be queried; see SDL_EventType for details |
Returns SDL_TRUE if events matching type
are present, or SDL_FALSE if events matching type
are not present.
If you need to check for a range of event types, use SDL_HasEvents() instead.
This function is available since SDL 2.0.0.
CategoryAPI, CategoryAPIFunction