[][src]Function gelo::filter_map_events_with_delay

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

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

Filter and transform events, additionally specifying an Instant at which to simulate the transformed event. To stop grabbing, return GrabStatus::Stop