@@ -2610,6 +2610,7 @@ void Viewport::_gui_update_mouse_over() {
26102610 // Send Mouse Exit notifications.
26112611 for (int exit_control_index : needs_exit) {
26122612 gui.mouse_over_hierarchy [exit_control_index]->notification (Control::NOTIFICATION_MOUSE_EXIT);
2613+ gui.mouse_over_hierarchy [exit_control_index]->emit_signal (SceneStringName (mouse_exited));
26132614 }
26142615
26152616 // Update the mouse over hierarchy.
@@ -2621,6 +2622,7 @@ void Viewport::_gui_update_mouse_over() {
26212622 // Send Mouse Enter notifications.
26222623 for (int i = needs_enter.size () - 1 ; i >= 0 ; i--) {
26232624 needs_enter[i]->notification (Control::NOTIFICATION_MOUSE_ENTER);
2625+ needs_enter[i]->emit_signal (SceneStringName (mouse_entered));
26242626 }
26252627
26262628 gui.sending_mouse_enter_exit_notifications = false ;
@@ -3274,6 +3276,7 @@ void Viewport::_update_mouse_over(Vector2 p_pos) {
32743276 for (int i = over_ancestors.size () - 1 ; i >= 0 ; i--) {
32753277 gui.mouse_over_hierarchy .push_back (over_ancestors[i]);
32763278 over_ancestors[i]->notification (Control::NOTIFICATION_MOUSE_ENTER);
3279+ over_ancestors[i]->emit_signal (SceneStringName (mouse_entered));
32773280 }
32783281
32793282 // Send Mouse Enter Self notification.
@@ -3365,6 +3368,7 @@ void Viewport::_drop_mouse_over(Control *p_until_control) {
33653368 for (int i = gui.mouse_over_hierarchy .size () - 1 ; i >= notification_until; i--) {
33663369 if (gui.mouse_over_hierarchy [i]->is_inside_tree ()) {
33673370 gui.mouse_over_hierarchy [i]->notification (Control::NOTIFICATION_MOUSE_EXIT);
3371+ gui.mouse_over_hierarchy [i]->emit_signal (SceneStringName (mouse_exited));
33683372 }
33693373 }
33703374 gui.mouse_over_hierarchy .resize (notification_until);
0 commit comments