Method SDL.Event()->wait()
- Method wait
int
wait()- Description
Waits indefinitely for the next available event, which is then removed from the queue and stored in this SDL.Event object.
- Returns
Returns 1 on success, or 0 if there was an error while waiting for the next event.