mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Rename speed to velocity when it's a directional Vector
This commit is contained in:
parent
9f058674ac
commit
3105d9b1f3
13 changed files with 73 additions and 78 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue