refactor: keyboard of client

This commit is contained in:
Asura authored and Chieh Wang committed 2022-12-08 09:03:41 +08:00
1 parent 9e75019d13
commit 3b60304d14
18 files changed
+833 -857

No files matched your search

+20
View File
@@ -715,3 +715,23 @@ pub fn get_double_click_time() -> u32 {
double_click_time
}
}
pub mod keyboard {
use crate::common::GrabState;
use hbb_common::{allow_err, log, message_proto::*};
use rdev::{Event, EventType, Key};
use std::sync::mpsc;
use std::thread;
pub fn _legacy_keyboard_mode(event: &Event, key_event: &KeyEvent) {
log::info!("{:?}", event);
}
pub fn _client_map_keyboard_mode(event: &Event, key_event: &KeyEvent) {
}
pub fn _translate_keyboard_mode(event: &Event, key_event: &KeyEvent) {}
}