Function sdl2_sys::SDL_EventState
source ยท pub unsafe extern "C" fn SDL_EventState(
type_: Uint32,
state: c_int,
) -> Uint8
Expand description
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 eventSDL_IGNORE
(akaSDL_DISABLE
): the event will automatically be dropped from the event queue and will not be filteredSDL_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