-
Notifications
You must be signed in to change notification settings - Fork 74
Sdl setEventFilter
Tangent 128 edited this page Mar 28, 2015
·
3 revisions
Add an event filter, it is called before an event is added to the queue.
filter = function SDL.setEventFilter(fn)
- fn, the filter function
- filter, the filter object (see Filter)
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