use crate::protocol::InputEvent; pub trait InputDevice { fn poll(&mut self) -> Option; fn has_event(&self) -> bool; }