SDL_HasEvent
Check for the existence of a certain event type in the event queue.
- Provided by: libsdl3-doc (Version: 3.4.2+ds-1ubuntu1)
- Source: libsdl3
- Report a bug
Check for the existence of a certain event type in the event queue.
#include <SDL3/SDL_events.h>
bool SDL_HasEvent(Uint32 type);
If you need to check for a range of event types, use SDL_HasEvents() instead.
Returns true if events matching type are present, or false if events matching type are not present.
It is safe to call this function from any thread.
This function is available since SDL 3.2.0.