1c3c17c608
The previous implementation for signals mouse_entered and mouse_exited had shortcomings that relate to focused windows and pressed mouse buttons. For example a Control can be hovered by mouse, even if it is occluded by an embedded window. This patch changes the behavior, so that Control and Viewport send their mouse-enter/exit-notifications based solely on mouse position, visible area, and input restrictions and not on which window has focus or which mouse buttons are pressed. This implicitly also changes when the mouse_entered and mouse_exited signals are sent. This functionality can not be implemented as a part of Viewport::_gui_input_event, because of its interplay with Windows and because Viewport::_gui_input_event is based on input and not on visibility. |
||
---|---|---|
.. | ||
canvas_item.cpp | ||
canvas_item.h | ||
canvas_layer.cpp | ||
canvas_layer.h | ||
http_request.cpp | ||
http_request.h | ||
instance_placeholder.cpp | ||
instance_placeholder.h | ||
missing_node.cpp | ||
missing_node.h | ||
multiplayer_api.cpp | ||
multiplayer_api.h | ||
multiplayer_peer.cpp | ||
multiplayer_peer.h | ||
node.cpp | ||
node.h | ||
resource_preloader.cpp | ||
resource_preloader.h | ||
scene_tree.cpp | ||
scene_tree.h | ||
SCsub | ||
shader_globals_override.cpp | ||
shader_globals_override.h | ||
timer.cpp | ||
timer.h | ||
viewport.cpp | ||
viewport.h | ||
window.cpp | ||
window.h |