Android input multi touch

How to get multitouch on android? So that I can touch two buttons at a time.

2 Answers

2

hope this will be useful to you---->input.touches

Don’t forget to mark the answer if found useful…cheers from INDIA…

Input.getTouch(0)

for one control and

input.getTouch(1)

for another control…

If you want to access both the touches you can use for loop to access.

if(Input.touchCount>0)
for(int i=0; i<Input.touchCount; i++)
{
      print(Input.getTouch(i).position);
}