diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-01-24 10:05:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-24 10:05:42 +0100 |
commit | 57a057f7ff031f4593d851e351bc63fda77be535 (patch) | |
tree | ac7ea395e5872c16d8cddfa739b3cc81bae66c38 /platform/javascript/display_server_javascript.cpp | |
parent | b56d5b6e2fdfaf0a40c60b014f534820ba06c016 (diff) | |
parent | 5250cdd150dbffc1387d8cc60bee7977b322117a (diff) |
Merge pull request #56754 from madmiraal/fix-45592
Diffstat (limited to 'platform/javascript/display_server_javascript.cpp')
-rw-r--r-- | platform/javascript/display_server_javascript.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/platform/javascript/display_server_javascript.cpp b/platform/javascript/display_server_javascript.cpp index e7564a599c..2842fc2f5e 100644 --- a/platform/javascript/display_server_javascript.cpp +++ b/platform/javascript/display_server_javascript.cpp @@ -137,7 +137,6 @@ int DisplayServerJavaScript::mouse_button_callback(int p_pressed, int p_button, DisplayServerJavaScript *ds = get_singleton(); Point2 pos(p_x, p_y); - Input::get_singleton()->set_mouse_position(pos); Ref<InputEventMouseButton> ev; ev.instantiate(); ev->set_position(pos); @@ -219,7 +218,6 @@ void DisplayServerJavaScript::mouse_move_callback(double p_x, double p_y, double } Point2 pos(p_x, p_y); - Input::get_singleton()->set_mouse_position(pos); Ref<InputEventMouseMotion> ev; ev.instantiate(); dom2godot_mod(ev, p_modifiers); @@ -229,7 +227,6 @@ void DisplayServerJavaScript::mouse_move_callback(double p_x, double p_y, double ev->set_global_position(pos); ev->set_relative(Vector2(p_rel_x, p_rel_y)); - Input::get_singleton()->set_mouse_position(ev->get_position()); ev->set_velocity(Input::get_singleton()->get_last_mouse_velocity()); Input::get_singleton()->parse_input_event(ev); |