mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-03-21 12:10:55 +03:00
23 lines
541 B
Rust
23 lines
541 B
Rust
use async_trait::async_trait;
|
|
use input_event::Event;
|
|
|
|
use super::{EmulationHandle, InputEmulation};
|
|
|
|
#[derive(Default)]
|
|
pub struct DummyEmulation;
|
|
|
|
impl DummyEmulation {
|
|
pub fn new() -> Self {
|
|
Self {}
|
|
}
|
|
}
|
|
|
|
#[async_trait]
|
|
impl InputEmulation for DummyEmulation {
|
|
async fn consume(&mut self, event: Event, client_handle: EmulationHandle) {
|
|
log::info!("received event: ({client_handle}) {event}");
|
|
}
|
|
async fn create(&mut self, _: EmulationHandle) {}
|
|
async fn destroy(&mut self, _: EmulationHandle) {}
|
|
}
|