pub unsafe extern "C" fn SDL_WaitEventTimeout(
    event: *mut SDL_Event,
    timeout: c_int
) -> c_int
Expand description

Waits until the specified timeout (in milliseconds) for the next available event.

Returns: 1, or 0 if there was an error while waiting for events.

  • event If not NULL, the next event is removed from the queue and stored in that area.
  • timeout The timeout (in milliseconds) to wait for next event.