Godot Version
4.5.1
Question
I have some scene object that I want to use as tokens in a board game. Their graphic is being drawn with a Sprite2D, and I’ve also added an Area2D so I can tell when the user clicks on them. I’m listening to the input_event signal on the Area2D to detect mouse events.
I want the user to be able to hover the mouse over the token they want to move, then press the button, drag the mouse to where they want to token to move to, and then release it again. This is done without moving the token itself - I just want to know where the mouse is when the user releases the mouse button.
Anyhow, if I move the mouse too far away - outside of the Area2D’s collision shape - I never get the InputEventMouseButton for the mouse button being released. Is there any way to capture the mouse input when the mouse is pressed in my Area2D so that my CanvasItem will always also get the coresponding mouse released event?