diff options
| author | eska | 2016-07-08 20:09:25 +0200 |
|---|---|---|
| committer | eska | 2016-07-08 20:09:25 +0200 |
| commit | 4beeff94335938ba0249aea69c4e47024b08bf64 (patch) | |
| tree | b4ee60cb9d91247dbaf11179c67e478157abf7ff /platform/javascript/os_javascript.cpp | |
| parent | 5a8335436f5b76f950a2f4d65b37ad10f195c08d (diff) | |
| download | godot-4beeff94335938ba0249aea69c4e47024b08bf64.tar.gz godot-4beeff94335938ba0249aea69c4e47024b08bf64.tar.zst godot-4beeff94335938ba0249aea69c4e47024b08bf64.zip | |
Diffstat (limited to 'platform/javascript/os_javascript.cpp')
| -rw-r--r-- | platform/javascript/os_javascript.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/javascript/os_javascript.cpp b/platform/javascript/os_javascript.cpp index 2e42e7999..1defcb7cb 100644 --- a/platform/javascript/os_javascript.cpp +++ b/platform/javascript/os_javascript.cpp @@ -415,6 +415,9 @@ void OS_JavaScript::push_input(const InputEvent& p_ev) { InputEvent ev = p_ev; ev.ID=last_id++; + if (ev.type==InputEvent::MOUSE_MOTION) { + input->set_mouse_pos(Point2(ev.mouse_motion.x, ev.mouse_motion.y)); + } input->parse_input_event(p_ev); } |
