@@ -2617,6 +2617,7 @@ void Viewport::_gui_update_mouse_over() {
26172617 // Send Mouse Exit notifications.
26182618 for (int exit_control_index : needs_exit) {
26192619 gui.mouse_over_hierarchy [exit_control_index]->notification (Control::NOTIFICATION_MOUSE_EXIT);
2620+ gui.mouse_over_hierarchy [exit_control_index]->emit_signal (SceneStringName (mouse_exited));
26202621 }
26212622
26222623 // Update the mouse over hierarchy.
@@ -2628,6 +2629,7 @@ void Viewport::_gui_update_mouse_over() {
26282629 // Send Mouse Enter notifications.
26292630 for (int i = needs_enter.size () - 1 ; i >= 0 ; i--) {
26302631 needs_enter[i]->notification (Control::NOTIFICATION_MOUSE_ENTER);
2632+ needs_enter[i]->emit_signal (SceneStringName (mouse_entered));
26312633 }
26322634
26332635 gui.sending_mouse_enter_exit_notifications = false ;
@@ -3299,6 +3301,7 @@ void Viewport::_update_mouse_over(Vector2 p_pos) {
32993301 for (int i = over_ancestors.size () - 1 ; i >= 0 ; i--) {
33003302 gui.mouse_over_hierarchy .push_back (over_ancestors[i]);
33013303 over_ancestors[i]->notification (Control::NOTIFICATION_MOUSE_ENTER);
3304+ over_ancestors[i]->emit_signal (SceneStringName (mouse_entered));
33023305 }
33033306
33043307 // Send Mouse Enter Self notification.
@@ -3390,6 +3393,7 @@ void Viewport::_drop_mouse_over(Control *p_until_control) {
33903393 for (int i = gui.mouse_over_hierarchy .size () - 1 ; i >= notification_until; i--) {
33913394 if (gui.mouse_over_hierarchy [i]->is_inside_tree ()) {
33923395 gui.mouse_over_hierarchy [i]->notification (Control::NOTIFICATION_MOUSE_EXIT);
3396+ gui.mouse_over_hierarchy [i]->emit_signal (SceneStringName (mouse_exited));
33933397 }
33943398 }
33953399 gui.mouse_over_hierarchy .resize (notification_until);
0 commit comments