add session detection

This commit is contained in:
Ferdinand Schober
2023-02-12 22:37:18 +01:00
parent 20cf6d450a
commit d4d8ebbaeb
4 changed files with 50 additions and 11 deletions

View File

@@ -33,13 +33,13 @@ pub fn run(event_rx: Receiver<(Event, ClientHandle)>, _clients: Vec<Client>) {
crate::event::PointerEvent::Motion { time: _, relative_x, relative_y } => {
relative_motion(display, relative_x as i32, relative_y as i32);
},
crate::event::PointerEvent::Button { .. } => todo!(),
crate::event::PointerEvent::Axis { .. } => todo!(),
crate::event::PointerEvent::Frame { } => todo!(),
crate::event::PointerEvent::Button { .. } => {},
crate::event::PointerEvent::Axis { .. } => {},
crate::event::PointerEvent::Frame { } => {},
}
},
Event::Keyboard(_) => todo!(),
Event::Release() => todo!(),
Event::Keyboard(_) => {},
Event::Release() => {},
}
}
}

View File

@@ -0,0 +1,10 @@
use std::sync::mpsc::SyncSender;
use crate::event::Event;
use crate::request::Server;
use crate::client::Client;
pub fn run(_produce_tx: SyncSender<(Event, u32)>, _request_server: Server, _clients: Vec<Client>) {
todo!()
}