1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Input: Update mouse position on mouse-button events.

This commit is contained in:
Andreas Haas
2017-03-24 21:55:58 +01:00
parent efaeebab4d
commit 468719c480

View File

@@ -336,6 +336,11 @@ void InputDefault::parse_input_event(const InputEvent &p_event) {
ev.screen_touch = touch_event;
main_loop->input_event(ev);
}
Point2 pos = Point2(p_event.mouse_button.global_x, p_event.mouse_button.global_y);
if (mouse_pos != pos) {
set_mouse_pos(pos);
}
} break;
case InputEvent::MOUSE_MOTION: {