sdlEventEnabled function

bool sdlEventEnabled(
  1. int type
)

Query the state of processing events by type.

\param type the type of event; see SDL_EventType for details. \returns true if the event is being processed, false otherwise.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

\sa SDL_SetEventEnabled

extern SDL_DECLSPEC bool SDLCALL SDL_EventEnabled(Uint32 type)

Implementation

bool sdlEventEnabled(int type) {
  final sdlEventEnabledLookupFunction = libSdl3.lookupFunction<
      Uint8 Function(Uint32 type), int Function(int type)>('SDL_EventEnabled');
  return sdlEventEnabledLookupFunction(type) == 1;
}