|
Size: 1131
Comment: SDL_IGNORE and SDL_DISABLE are both defined as 0 and should therefore not be listed separately in the state table.
|
Size: 1057
Comment: Updated
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| | |
| Line 21: | Line 20: |
| Returns an 8-bit bitmask of the current processing state. See [[#Remarks|Remarks]] for details; call [[SDL_GetError]]() for more information. | Returns SDL_DISABLE or SDL_ENABLE, representing the processing state of the event before this function makes any changes to it. |
| Line 34: | Line 33: |
SDL_EventState
Use this function to set the state of processing events by type.
Syntax
Uint8 SDL_EventState(Uint32 type,
int state)
Function Parameters
type |
the type of event; see SDL_EventType for details |
state |
how to process the event; see Remarks for details |
Return Value
Returns SDL_DISABLE or SDL_ENABLE, representing the processing state of the event before this function makes any changes to it.
Code Examples
You can add your code example here
Remarks
state may be any of the following:
-1 |
SDL_QUERY |
returns the current processing state of the specified event |
0 |
SDL_IGNORE (aka SDL_DISABLE) |
the event will automatically be dropped from the event queue and will not be filtered |
1 |
SDL_ENABLE |
the event will be processed normally |
