I have a control node where I have overwritten the
_gui_input(ev) function to determine when the control node on click.
This works, the only problem is that I want to hide or free this control node when this happens. But as soon I call
queue_free() on the node in this function the processing of the input event isn't stopped anymore afterwards, which means the input processing is continued (
_gui_input(ev) and then function
_unhandled_input is called on other nodes) , which is not intended in my case.
I already tried calling
get_tree().set_input_as_handled() without success.
What else could I try to stop the processing of the input?