SDL_HasEvents(3)

SDL_HasEvents3

Check for the existence of certain event types in the event queue.

Usage

#include "SDL3/SDL.h"

bool SDL_HasEvents(Uint32 minType, Uint32 maxType);

Header file

Defined in SDL3/SDL_events.h

Overview

If you need to check for a single event type, use

SDL_HasEvent () instead.

Function parameters

minType

the low end of event type to be queried, inclusive; see SDL_EventType
for details.

maxType

the high end of event type to be queried, inclusive; see SDL_EventType
for details.

Return value

Returns true if events with type >= minType and <= maxType are present, or false if not.

Thread safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.