Function fermium::events::SDL_PollEvent
source · pub unsafe extern "C" fn SDL_PollEvent(event: *mut SDL_Event) -> c_int
Expand description
Polls for currently pending events.
Returns: 1 if there are any pending events, or 0 if there are none available.
This is non-blocking, if no event is available it will immediately return.
event
If not NULL, the next event is removed from the queue and stored in that area.