_unhandled_input doesn't detect when mouse was just pressed, only when released or moved

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By estebanfer

I checked Clicked Control on debugger and clicking outside of the nodes inside control doesn’t register any clicks on those nodes, the scene is:

-- Node2D
---- Node
---- Control
------ WindowDialog
-------- ItemList
------ Button
---- TileMap

I’ve tried changing the Control node to Ingore and Pass and it doesn’t solve anything

The script for _unhandled_input is on the TileMap, and event.pressed when the event is InputEventMouseButton is never true, using _input works (but gets the inputs even when clicking on Control nodes)

Also, I’m using godot on linux, Ubuntu 18.04.6 LTS

Update: Removing the control node fixes it, but I still need the control node

:bust_in_silhouette: Reply From: code

I dont think all the children in the control are set to pass, I think you should check that out