Tao.Sdl SDK Documentation

Sdl.SDL_EventState Method 

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

[Visual Basic]
Public Shared Function SDL_EventState( _
   ByVal type As Byte, _
   ByVal state As Integer _
) As Integer
[C#]
public static int SDL_EventState(
   byte type,
   int state
);

Parameters

type
state

Return Value

Returns 0 on success or -1 if the event couldn't be pushed.

Remarks

This function allows you to set the state of processing certain event type's.

If 'state' is set to SDL_IGNORE, that event will be automatically dropped from the event queue and will not 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 type.

A list of event type's can be found in the Sdl.SDL_Event section.

See Also

Sdl Class | Tao.Sdl Namespace | Sdl.SDL_Event