Convert keycode to RdevKey

This commit is contained in:
Asura committed 2022-08-26 18:29:46 -07:00
1 parent b38c3299d8
commit ee19a03ecc
8 files changed
+147 -76

No files matched your search

+6
View File
@@ -208,6 +208,12 @@ pub fn session_switch_display(id: String, value: i32) {
}
}
pub fn session_input_raw_key(id: String, keycode: i32, scancode:i32, down: bool){
if let Some(session) = SESSIONS.read().unwrap().get(&id) {
session.input_raw_key(keycode, scancode, down);
}
}
pub fn session_input_key(
id: String,
name: String,