From 370fa82b2ccab9b5fbe11f25741dbc1f4ab886af Mon Sep 17 00:00:00 2001 From: skyace65 Date: Sat, 27 Mar 2021 16:22:43 -0400 Subject: [PATCH] Add note that for _gui_input(event) event position is relative to the control origin (cherry picked from commit 824259aca02f0bd7356f98289cad3a033fe8955a) --- doc/classes/Control.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index e85a8935ac8..72993e2db1b 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -52,6 +52,7 @@ * control is obstructed by another [Control] on top of it, which doesn't have [member mouse_filter] set to [constant MOUSE_FILTER_IGNORE]; * control's parent has [member mouse_filter] set to [constant MOUSE_FILTER_STOP] or has accepted the event; * it happens outside the parent's rectangle and the parent has either [member rect_clip_content] or [method _clips_input] enabled. + [b]Note:[/b] Event position is relative to the control origin.