Hello,
how can I handle click and doubleclick on the same node different?
extends Area2D
func _on_MouseClick_input_event(viewport, event, shape_idx):
if event is InputEventMouseButton and event.doubleclick:
print("double")
elif event is InputEventMouseButton and event.pressed:
print("single")
Each time I do one doubleclick on the node the output in the log is:
single
double