How to prevent second finger touch as input touch?

I have implemented touch for controller rotation. With one finger touch it works fine but when i accidentally touch second finger it alters controller rotation.

Explanation : I have character with gun and used input touch for aiming. But when i touch with other finger while i was aiming, it shift aim to other direction. I tried to use only touch 1 as input touch state but than i cannot shift aim while using button.

You can see in video if i touch with second finger it alters rotation.

I did found kind a solution but on count of ten, one time still it detects second finger and shift aim little bit.

.

Well,

This is for anyone who reading my question, and me self giving me answers. Or someone seeking solution for problem like this.

Little less annoying solution.
I took little different approach and it’s working 90% perfect.

1 Like

i have protocol with myself to set touch10 to null(if myvariable is tocuh10 then its empty or was not pressed) . then if touch was pressed and it was myvariable was touch10 then i know that there is no other touch pressing and i set myvariable to that touch. on touch moved i check if myvariable is equal to current touch and do calculations. on release i setback myvariable to touch10.

I am bit confused now,

does touch 1 = 1 finger touch and touch 2 = 2 finger touch (multi touch) ?

OR

touch 1 = first touch and touch 2 = second touch ?