diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-12-29 13:22:22 +0000 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-12-29 15:35:26 +0000 |
commit | 3105d9b1f35959f70975fd6de034b9168cd3b337 (patch) | |
tree | 93bc57515ea4c74c43ce8e8c3a12a94c06f3ef74 /platform/osx | |
parent | 9f058674acebf9a7a0704cdbc26dc9f6d853b16e (diff) |
Rename speed to velocity when it's a directional Vector
Diffstat (limited to 'platform/osx')
-rw-r--r-- | platform/osx/display_server_osx.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/osx/display_server_osx.mm b/platform/osx/display_server_osx.mm index 7cd51611b3..b5d772484c 100644 --- a/platform/osx/display_server_osx.mm +++ b/platform/osx/display_server_osx.mm @@ -787,7 +787,7 @@ static void _mouseDownEvent(DisplayServer::WindowID window_id, NSEvent *event, M mm->set_tilt(Vector2(p.x, p.y)); } mm->set_global_position(pos); - mm->set_speed(Input::get_singleton()->get_last_mouse_speed()); + mm->set_velocity(Input::get_singleton()->get_last_mouse_velocity()); const Vector2i relativeMotion = Vector2i(delta.x, delta.y) * DS_OSX->screen_get_max_scale(); mm->set_relative(relativeMotion); _get_key_modifier_state([event modifierFlags], mm); |