chickadee » sdl-base » sdl-wait-event!*

sdl-pump-events ...procedure
sdl-poll-event! ...procedure
sdl-wait-event!* delay-function #!optional sdl-eventprocedure

Wait for a new SDL Event. delay-function is expected to take a single number and sleep that many milliseconds (call sdl-wait-event! instead if you're unsure what to use). If sdl-event is provided, it will be populated with the event data.

Note that sdl-event blocks other srfi-18 threads. You can use (lambda (ms) (thread-sleep! (/ ms 1000))) as the delay-function for sdl-event processing in a separate srfi-18 thread.