Struct input::EventHandler [−][src]
pub struct EventHandler { /* fields omitted */ }Expand description
A handler for reading and processing events.
Implementations
Create a new instance of the EventHandler.
Poll for the next available event.
Push an event to the events stack.
pub fn read_event<F>(&self, input_options: &InputOptions, callback: F) -> Event where
F: FnOnce(Event, &KeyBindings) -> Event,
pub fn read_event<F>(&self, input_options: &InputOptions, callback: F) -> Event where
F: FnOnce(Event, &KeyBindings) -> Event, Read and handle an event.
Auto Trait Implementations
impl !RefUnwindSafe for EventHandlerimpl !Send for EventHandlerimpl !Sync for EventHandlerimpl Unpin for EventHandlerimpl !UnwindSafe for EventHandler