summaryrefslogtreecommitdiff
path: root/platform/linuxbsd
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2022-01-13 09:23:53 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2022-01-13 15:23:21 +0000
commit5250cdd150dbffc1387d8cc60bee7977b322117a (patch)
treeff7ab7cbc45fc09d6553c8489685d3289572ae0c /platform/linuxbsd
parent8fce6166cbc635b069c09b782ea67c495348abcb (diff)
Use mouse event relative motion to calculate mouse velocity
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r--platform/linuxbsd/display_server_x11.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/platform/linuxbsd/display_server_x11.cpp b/platform/linuxbsd/display_server_x11.cpp
index 747b5beeda..a525a0f183 100644
--- a/platform/linuxbsd/display_server_x11.cpp
+++ b/platform/linuxbsd/display_server_x11.cpp
@@ -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);