Function SDL_EventState

pub unsafe extern "C" fn SDL_EventState(type_: u32, state: i32) -> u8
Available on crate feature dep_sdl2 only.
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 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