feat(input-server): add InputServer<D: InputDevice> with protocol, mock + UART adapters, and tests
This commit is contained in:
6
crates/servers/input-server/src/input_device.rs
Normal file
6
crates/servers/input-server/src/input_device.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
use crate::protocol::InputEvent;
|
||||
|
||||
pub trait InputDevice {
|
||||
fn poll(&mut self) -> Option<InputEvent>;
|
||||
fn has_event(&self) -> bool;
|
||||
}
|
||||
Reference in New Issue
Block a user