[][src]Function gelo::filter_map_events

pub fn filter_map_events<F>(func: F) -> Result<()> where
    F: FnMut(InputEvent) -> (Option<InputEvent>, GrabStatus)

Similar to Iterator's filter_map, only this blocks waiting for input

Filter and transform events. To stop grabbing, return GrabStatus::Stop