mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	Use mouse event relative motion to calculate mouse speed
This commit is contained in:
		
							parent
							
								
									7249e170f7
								
							
						
					
					
						commit
						b7545631de
					
				
					 5 changed files with 8 additions and 14 deletions
				
			
		|  | @ -316,7 +316,6 @@ void OS_JavaScript::mouse_move_callback(double p_x, double p_y, double p_rel_x, | |||
| 	ev->set_global_position(ev->get_position()); | ||||
| 
 | ||||
| 	ev->set_relative(Vector2(p_rel_x, p_rel_y)); | ||||
| 	os->input->set_mouse_position(ev->get_position()); | ||||
| 	ev->set_speed(os->input->get_last_mouse_speed()); | ||||
| 
 | ||||
| 	os->input->parse_input_event(ev); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Marcel Admiraal
						Marcel Admiraal