Skip to content
Tangent 128 edited this page Mar 28, 2015 · 3 revisions

SDL.setEventFilter

Add an event filter, it is called before an event is added to the queue.

Function

SYNOPSIS

filter = function SDL.setEventFilter(fn)

ARGUMENTS

  • fn, the filter function

RETURNS

  • filter, the filter object (see Filter)

REMARKS

The function must have the following signature:

status = function (event)

Where arguments are:

  • event, the event (see Event)

And return values are:

  • status, true to add in the queue
Clone this wiki locally