sdlEventState function

int sdlEventState(
  1. int type,
  2. int state
)

Set the state of processing events by type.

state may be any of the following:

  • SDL_QUERY: returns the current processing state of the specified event
  • SDL_IGNORE (aka SDL_DISABLE): the event will automatically be dropped from the event queue and will not be filtered
  • SDL_ENABLE: the event will be processed normally

\param type the type of event; see SDL_EventType for details \param state how to process the event \returns SDL_DISABLE or SDL_ENABLE, representing the processing state of the event before this function makes any changes to it.

\since This function is available since SDL 2.0.0.

\sa SDL_GetEventState

extern DECLSPEC Uint8 SDLCALL SDL_EventState(Uint32 type, int state)

Implementation

int sdlEventState(int type, int state) {
  final sdlEventStateLookupFunction = libSdl2.lookupFunction<
      Uint8 Function(Uint32 type, Int32 state),
      int Function(int type, int state)>('SDL_EventState');
  return sdlEventStateLookupFunction(type, state);
}