debug done

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2023-04-01 20:56:03 +08:00
parent 021939a6a6
commit ed4016a77a
2 changed files with 0 additions and 7 deletions

View File

@ -517,11 +517,6 @@ pub fn event_to_key_events(
}
};
println!(
"REMOVE ME ==================================== key_events {:?}",
&key_events
);
#[cfg(not(any(target_os = "android", target_os = "ios")))]
if keyboard_mode != KeyboardMode::Translate {
let is_numpad_key = is_numpad_key(&event);

View File

@ -1297,7 +1297,6 @@ fn simulate_win2win_hotkey(code: u32, down: bool) {
// Try convert unicode to virtual keycode first.
// https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-vkkeyscanw
let res = unsafe { winapi::um::winuser::VkKeyScanW(unicode) };
println!("REMOVE ME =============================== VkKeyScanW {} {}", unicode, res);
if res as u16 != 0xFFFF {
let vk = res & 0x00FF;
let flag = res >> 8;
@ -1321,7 +1320,6 @@ fn simulate_win2win_hotkey(code: u32, down: bool) {
}
let keycode: u16 = ((code >> 16) & 0x0000FFFF) as u16;
println!("REMOVE ME =============================== simulate_win2win_hotkey down {} {},{}", down, unicode, keycode);
allow_err!(rdev::simulate_code(Some(keycode), None, down));
}