only pick up touch input from a specific screen section

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

im trying to make a mobile which include multiple touch input at a same time how do i seperate them depending on which region of the screen it touch

:bust_in_silhouette: Reply From: supper_raptor

use TouchScreenButton if you are taking multiple touch inputs (button press).
do something like this

func _input (event):
	#evaluate touch 600 pixels from left side of the screen
	if event.position.x > 600:
		if event is InputEventScreenDrag:
			#handle screen drag here
		elif event is InputEventScreenTouch:
			#handle touch