1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Use mouse event relative motion to calculate mouse velocity

This commit is contained in:
Marcel Admiraal
2022-01-13 09:23:53 +00:00
parent 8fce6166cb
commit 5250cdd150
5 changed files with 8 additions and 16 deletions

View File

@@ -3647,7 +3647,6 @@ void DisplayServerX11::process_events() {
mm->set_button_mask((MouseButton)mouse_get_button_state());
mm->set_position(pos);
mm->set_global_position(pos);
Input::get_singleton()->set_mouse_position(pos);
mm->set_velocity(Input::get_singleton()->get_last_mouse_velocity());
mm->set_relative(rel);