7 lines
139 B
Rust
7 lines
139 B
Rust
use crate::protocol::InputEvent;
|
|
|
|
pub trait InputDevice {
|
|
fn poll(&mut self) -> Option<InputEvent>;
|
|
fn has_event(&self) -> bool;
|
|
}
|