Merge pull request #2438 from fufesou/feat_set_input_extra_info_of_rdev

win set extra info while simulate inputs
This commit is contained in:
RustDesk
2022-12-03 22:52:42 +08:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -506,7 +506,11 @@ impl Connection {
#[cfg(not(any(target_os = "android", target_os = "ios")))]
fn handle_input(receiver: std_mpsc::Receiver<MessageInput>, tx: Sender) {
let mut block_input_mode = false;
#[cfg(target_os = "windows")]
{
rdev::set_dw_mouse_extra_info(enigo::ENIGO_INPUT_EXTRA_VALUE);
rdev::set_dw_keyboard_extra_info(enigo::ENIGO_INPUT_EXTRA_VALUE);
}
loop {
match receiver.recv_timeout(std::time::Duration::from_millis(500)) {
Ok(v) => match v {