add tests for capture and emulation

This commit is contained in:
Ferdinand Schober
2024-04-11 13:53:49 +02:00
parent 141ea2809d
commit f7edfecba9
7 changed files with 120 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ pub mod x11;
/// fallback input capture (does not produce events)
pub mod dummy;
pub async fn create() -> Box<dyn InputCapture> {
pub async fn create() -> Box<dyn InputCapture<Item = io::Result<(ClientHandle, Event)>>> {
#[cfg(target_os = "macos")]
match macos::MacOSInputCapture::new() {
Ok(p) => return Box::new(p),