debug done
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
021939a6a6
commit
ed4016a77a
@ -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")))]
|
#[cfg(not(any(target_os = "android", target_os = "ios")))]
|
||||||
if keyboard_mode != KeyboardMode::Translate {
|
if keyboard_mode != KeyboardMode::Translate {
|
||||||
let is_numpad_key = is_numpad_key(&event);
|
let is_numpad_key = is_numpad_key(&event);
|
||||||
|
@ -1297,7 +1297,6 @@ fn simulate_win2win_hotkey(code: u32, down: bool) {
|
|||||||
// Try convert unicode to virtual keycode first.
|
// Try convert unicode to virtual keycode first.
|
||||||
// https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-vkkeyscanw
|
// https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-vkkeyscanw
|
||||||
let res = unsafe { winapi::um::winuser::VkKeyScanW(unicode) };
|
let res = unsafe { winapi::um::winuser::VkKeyScanW(unicode) };
|
||||||
println!("REMOVE ME =============================== VkKeyScanW {} {}", unicode, res);
|
|
||||||
if res as u16 != 0xFFFF {
|
if res as u16 != 0xFFFF {
|
||||||
let vk = res & 0x00FF;
|
let vk = res & 0x00FF;
|
||||||
let flag = res >> 8;
|
let flag = res >> 8;
|
||||||
@ -1321,7 +1320,6 @@ fn simulate_win2win_hotkey(code: u32, down: bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let keycode: u16 = ((code >> 16) & 0x0000FFFF) as u16;
|
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));
|
allow_err!(rdev::simulate_code(Some(keycode), None, down));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user