DRAFT |
SDL_EventState
Use this function to set the state of processing certain events.
Contents
Syntax
Uint8 SDL_EventState(Uint8 type,
int state)
Function Parameters
type |
the type of event to be processed |
state |
the state by which to process the event; see Remarks for details |
Return Value
green
Returns 0 on success, or a negative error code on failure; call SDL_GetError() for more information.
Code Examples
You can add your code example here
Remarks
state may be any of the following:
SDL_QUERY |
-1 |
[[SDL_EventState]]() will returns the current processing state of the specified event |
SDL_IGNORE |
0 |
the event will automatically be dropped from the event queue and will not be filtered |
SDL_DISABLE |
0 |
same as SDL_IGNORE ??? |
SDL_ENABLE |
1 |
the event will be processed normally |
green
If state is set to SDL_IGNORE, that event will be automatically dropped from the event queue and will not event be filtered.
If state is set to ::SDL_ENABLE, that event will be processed normally.
If state is set to ::SDL_QUERY, SDL_EventState() will return the current processing state of the specified event.
