InputEventTouchScreen detects buttons too

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

When I tried using the touch screen event for my game it worked well but it detects the buttons too how could I stop that

:bust_in_silhouette: Reply From: kurtsev0103

If I understand you correctly, try something like this:

func _input(event):
	if event is InputEventScreenTouch:
		print("TODO")