Multi touch: keeping track of touches

i spend all day trying to implement multi touch and ive had about every possible glitch with the controlls you can and cant imagine

the problem i think is in keeping track of which finger does what, it seems to confuse the two and cant tell which touch is which
i tried to solve this with fingerId but that didnt help either, but maybe i dont understand that propperly

ive also read that Input.touches can be used to keep track of every touch, but i cant find any propper example on how to use this

i just want one button for movement, and one for shooting
they work just fine if you press them one at a time, but simultanious touches turns it into a random mess
for example if i touch a space of nothingness, or the shoot button and hold down, and then press the movement button and release it again it keeps on moving if i still have my finger on the empty space or shoot button(this is the most common glitch)

is there anyone who has made something similair whos code i could look into?

any help will be very much appreciated

1 Like

UPDATE

i added a code that shows the touches finger id, and what button is pressed

and appearently if you touch and hold, and touch somewhere else the first touch takes on the position and finger id of the second touch

how is this fixed?