Get key state by read file

This commit is contained in:
asur4s
2022-09-05 07:52:38 -04:00
parent 5dfd041d8f
commit a105aff2aa
3 changed files with 39 additions and 16 deletions

View File

@@ -155,18 +155,6 @@ impl Client {
}
}
Ok(x) => {
#[cfg(target_os = "linux")]
if !*crate::common::IS_X11.lock().unwrap() {
let keyboard = super::uinput::client::UInputKeyboard::new().await?;
log::info!("UInput keyboard created");
let mouse = super::uinput::client::UInputMouse::new().await?;
log::info!("UInput mouse created");
let mut en = ENIGO.lock().unwrap();
en.set_uinput_keyboard(Some(Box::new(keyboard)));
en.set_uinput_mouse(Some(Box::new(mouse)));
}
Ok(x)},
}
}