Hiii i use joystick buttons to move using Camera Relative Controls on my android mobile
Issue coming is - i have made a guiTexture and my weapon fires on clicking it…but i have noticed when i am moving using my joystick…it does not work…why so ??
I’m just going to throw this solution out there, don’t use Input.mousePosition when programming for multi touch. It won’t work. You have to use Input.GetTouch(i).position if you want the position of a particular finger.
What you need to do is keep track of the players finger ID’s and then track their position, then reset their ID’s when they stop touching the device.
This is actual workable code from my own projects. As you can see I track the moment the user touches the screen all the way to the moment they release. So that I can know where that finger is at all times.
TouchPhase.Canceled will not be called very often (if you have more than five fingers on the screen or so). I do not use the TouchPhase at all, but TouchPhase.Began, TouchPhase.Moved, TouchPhase.Stationary and TouchPhase.Ended work definitely (but not as reliable as I wished).