Check for the existence of a certain event type in the event queue.
Defined in <SDL3/SDL_events.h>
bool SDL_HasEvent(Uint32 type);
Uint32 | type | the type of event to be queried; see SDL_EventType for details. |
(bool) Returns true if events matching type
are present, or false if events matching type
are not present.
If you need to check for a range of event types, use SDL_HasEvents() instead.
It is safe to call this function from any thread.
This function is available since SDL 3.1.3.