Set the state of processing events by type.
Defined in SDL_events.h
int state); Uint8 SDL_EventState(Uint32 type,
Uint32 | type | the type of event; see SDL_EventType for details. |
int | state | how to process the event. |
(Uint8) Returns SDL_DISABLE
or SDL_ENABLE
, representing the processing state of the event before this function makes any changes to it.
state
may be any of the following:
SDL_QUERY
: returns the current processing state of the specified eventSDL_IGNORE
(aka SDL_DISABLE
): the event will automatically be dropped from the event queue and will not be filteredSDL_ENABLE
: the event will be processed normallyThis function is available since SDL 2.0.0.