mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Make mouse-enter/exit notifications match mouse event propagation
`NOTIFICATION_MOUSE_ENTER` and `NOTIFICATION_MOUSE_EXIT` now includes the areas of children control nodes if the mouse filters allow it. In order to check if a Control node itself was entered/exited, the newly introduced `NOTIFICATION_MOUSE_ENTER_SELF` and `NOTIFICATION_MOUSE_EXIT_SELF` can be used. Co-authored-by: Markus Sauermann <6299227+Sauermann@users.noreply.github.com>
This commit is contained in:
parent
4c96e9676b
commit
d24d73ba31
7 changed files with 829 additions and 23 deletions
|
|
@ -368,6 +368,8 @@ public:
|
|||
NOTIFICATION_SCROLL_BEGIN = 47,
|
||||
NOTIFICATION_SCROLL_END = 48,
|
||||
NOTIFICATION_LAYOUT_DIRECTION_CHANGED = 49,
|
||||
NOTIFICATION_MOUSE_ENTER_SELF = 60,
|
||||
NOTIFICATION_MOUSE_EXIT_SELF = 61,
|
||||
};
|
||||
|
||||
// Editor plugin interoperability.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue