mod event_loop;
mod input;
pub use event_loop::EventLoop;
pub use input::{Event, KeyCode, KeyEvent, KeyModifiers, MouseEvent};
#[derive(Debug, Clone)]
pub enum EventResult {
Consumed,
Ignored,
Quit,
}
impl EventResult {
pub fn is_consumed(&self) -> bool {
matches!(self, EventResult::Consumed)
}
pub fn is_quit(&self) -> bool {
matches!(self, EventResult::Quit)
}
}