diff options
| author | Juan Linietsky | 2017-01-13 19:23:42 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-01-13 19:24:28 -0300 |
| commit | a97551902e24ef1ac8fd709d77a5195b73c6c1ae (patch) | |
| tree | bec77c842c2398ef77bc17d4cf66d882c8ad7582 /platform/javascript/os_javascript.cpp | |
| parent | b191ea8f02dcd0bfefcd88032ec6b2bd39fa54fc (diff) | |
| download | godot-a97551902e24ef1ac8fd709d77a5195b73c6c1ae.tar.gz godot-a97551902e24ef1ac8fd709d77a5195b73c6c1ae.tar.zst godot-a97551902e24ef1ac8fd709d77a5195b73c6c1ae.zip | |
Diffstat (limited to 'platform/javascript/os_javascript.cpp')
| -rw-r--r-- | platform/javascript/os_javascript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/javascript/os_javascript.cpp b/platform/javascript/os_javascript.cpp index 47c8ea89d..a6be77340 100644 --- a/platform/javascript/os_javascript.cpp +++ b/platform/javascript/os_javascript.cpp @@ -644,8 +644,8 @@ void OS_JavaScript::process_touch(int p_what,int p_pointer, const Vector<TouchPo ev.mouse_motion.x=p_points[0].pos.x; ev.mouse_motion.y=p_points[0].pos.y; input->set_mouse_pos(Point2(ev.mouse_motion.x,ev.mouse_motion.y)); - ev.mouse_motion.speed_x=input->get_mouse_speed().x; - ev.mouse_motion.speed_y=input->get_mouse_speed().y; + ev.mouse_motion.speed_x=input->get_last_mouse_speed().x; + ev.mouse_motion.speed_y=input->get_last_mouse_speed().y; ev.mouse_motion.relative_x=p_points[0].pos.x-last_mouse.x; ev.mouse_motion.relative_y=p_points[0].pos.y-last_mouse.y; last_mouse=p_points[0].pos; |
