-
Notifications
You must be signed in to change notification settings - Fork 73
Sdl waitEvent
Tangent 128 edited this page Mar 28, 2015
·
3 revisions
Wait for an event with an optional timeout.
function SDL.waitEvent([timeout])
- timeout, the maximal number of milliseconds to wait
- the event on success or nil (see Event)
- the error message
Wait for an event with a timeout of 1 second.
local e = SDL.waitEvent(1000)
Wait for an event indefinitely.
local e = SDL.waitEvent()