SDL_HasEvent - Man Page
Check for the existence of a certain event type in the event queue.
Synopsis
#include <SDL3/SDL_events.h> bool SDL_HasEvent(Uint32 type);
Description
If you need to check for a range of event types, use SDL_HasEvents() instead.
Function Parameters
- type
the type of event to be queried; see SDL_EventType for details.
Return Value
Returns true if events matching type are present, or false if events matching type are not present.
Thread Safety
It is safe to call this function from any thread.
Availability
This function is available since SDL 3.2.0.
See Also
Info
SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS