diff --git a/main/input_default.cpp b/main/input_default.cpp index 8e352ca8e3d..125bd8c8d7c 100644 --- a/main/input_default.cpp +++ b/main/input_default.cpp @@ -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: {