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 EventHandler
impl !Send for EventHandler
impl !Sync for EventHandler
impl Unpin for EventHandler
impl !UnwindSafe for EventHandler