SDL_EventState

Name

SDL_EventState -- This function allows you to set the state of processing certain events.

Synopsis

#include "SDL.h"

Uint8 SDL_EventState(Uint8 type, int state);

Description

This function allows you to set the state of processing certain event types.

If state is set to SDL_IGNORE, that event type will be automatically dropped from the event queue and will not be filtered.

If state is set to SDL_ENABLE, that event type will be processed normally.

If state is set to SDL_QUERY, SDL_EventState will return the current processing state of the specified event type.

A list of event types can be found in the SDL_Event section.

Note

SDL_EventState must be called following the SDL_VideoInfo call. Otherwise the back-end data structure will be erased.

See Also

SDL_Event

SDL_EventState (last edited 2009-09-15 04:01:20 by 212)