SDL_RegisterEvents(3)

SDL_RegisterEvents3

Allocate a set of user-defined events, and return the beginning event number for that set of events.

Usage

#include "SDL3/SDL.h"

Uint32 SDL_RegisterEvents(int numevents);

Header file

Defined in SDL3/SDL_events.h

Function parameters

numevents

the number of events to be allocated.

Return value

( Uint32 ) Returns the beginning event number, or 0 if numevents is invalid or if there are not enough user-defined events left.

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.