summaryrefslogtreecommitdiff
path: root/platform/javascript
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2021-12-29 13:22:22 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2021-12-29 15:35:26 +0000
commit3105d9b1f35959f70975fd6de034b9168cd3b337 (patch)
tree93bc57515ea4c74c43ce8e8c3a12a94c06f3ef74 /platform/javascript
parent9f058674acebf9a7a0704cdbc26dc9f6d853b16e (diff)
Rename speed to velocity when it's a directional Vector
Diffstat (limited to 'platform/javascript')
-rw-r--r--platform/javascript/display_server_javascript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/display_server_javascript.cpp b/platform/javascript/display_server_javascript.cpp
index 7648ddaf43..97bd8be9a5 100644
--- a/platform/javascript/display_server_javascript.cpp
+++ b/platform/javascript/display_server_javascript.cpp
@@ -230,7 +230,7 @@ void DisplayServerJavaScript::mouse_move_callback(double p_x, double p_y, double
ev->set_relative(Vector2(p_rel_x, p_rel_y));
Input::get_singleton()->set_mouse_position(ev->get_position());
- ev->set_speed(Input::get_singleton()->get_last_mouse_speed());
+ ev->set_velocity(Input::get_singleton()->get_last_mouse_velocity());
Input::get_singleton()->parse_input_event(ev);
}