win set extra info while simulate inputs
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
		
							parent
							
								
									12bdd57a45
								
							
						
					
					
						commit
						e6264038da
					
				
							
								
								
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								Cargo.lock
									
									
									
										generated
									
									
									
								
							| @ -4229,7 +4229,7 @@ dependencies = [ | ||||
| [[package]] | ||||
| name = "rdev" | ||||
| version = "0.5.0-2" | ||||
| source = "git+https://github.com/asur4s/rdev#fdcee04f10ea0ef00d36aa612eabb9605ae9f2fc" | ||||
| source = "git+https://github.com/asur4s/rdev#4051761e7ccf434a443b8e9592c23160c9cace56" | ||||
| dependencies = [ | ||||
|  "cocoa", | ||||
|  "core-foundation 0.9.3", | ||||
|  | ||||
| @ -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 { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user