For this line of code
var touch : iPhoneTouch = iPhoneInput.GetTouch(i);
I got this error message:
Assets/Scripts/Joystick.js(13,55): BCW0012: WARNING: ‘UnityEngine.iPhoneInput.GetTouch(int)’ is obsolete. GetTouch method is deprecated. Please use Input.GetTouch instead.
So I can see that iPhoneInput.GetTouch is obsolete, but I do not want to use Input.GetTouch… which is not iPhone touch if I understood it.
Anyway… I do not want to guess… where can I find all the methods and variables that are defined by the game engine ?
Maybe you have some documentation?