pub fn poll_event(&self) -> Option<Event> {
    unsafe {
      let mut sdl_event = SDL_Event::default();
      if SDL_PollEvent(&mut sdl_event) == 1 {
        Some(Event::from(sdl_event))
      } else {
        None
      }
    }
  }
/// Polls for an event, getting it out of the queue if one is there.
Polls for an event, getting it out of the queue if one is there.
Polls for an event getting it out of the queue if one is there .
pub fn poll_event(&self) -> Option<Event> {
    unsafe {
      let mut sdl_event = SDL_Event::default();
      if SDL_PollEvent(&mut sdl_event) == 1 {
        Some(Event::from(sdl_event))
      } else {
        None
      }
    }
  }
pub fn poll_event ( & self ) -> Option < Event > { unsafe { let mut sdl_event = SDL_Event :: default ( ) ; if SDL_PollEvent ( & mut sdl_event ) == 1 { Some ( Event :: from ( sdl_event ) ) } else { None } } }
Polls for an event, getting it out of the queue if one is there.
Polls for an event getting it out of the queue if one is there .
&self
&self