How do i get multitouch working?

hey everyone,

im trying to get my multi touch working for my script, i used the code at the top to enable it but from what ive read it takes more then that, any hits on how to get it working for my code? this is what i have so far

static var multiTouchEnabled = true;

var jet :Transform;


function OnGUI () {



if (GUI.RepeatButton (Rect (75,50,75,75), "U")) {
jet.transform.Translate(0,Time.deltaTime*30,0);
}

if (GUI.RepeatButton (Rect (75,200,75,75), "D")) {
jet.transform.Translate(0,-Time.deltaTime*30,0);
}

if (GUI.RepeatButton (Rect (10,125,75,75), "L")) {
jet.transform.Translate(-Time.deltaTime*30,0,0);
}

if (GUI.RepeatButton (Rect (135,125,75,75), "R")) {
jet.transform.Translate(Time.deltaTime*30,0,0);
}

if (GUI.Button (Rect (775,300,75,75), "S")) {
Application.LoadLevel(0);
}

if (GUI.Button (Rect (775,375,75,75), "Q")) {
Application.Quit();
}


}

you won’t, not as long as you use unity gui at least

unity gui does not support multitouch, just a single (the first) tab will register as virtual mouse and fire and event.

if you want multitouch buttons you must handle the input and rect tests yourself

oooo the secrets of the industry ;D

Do you want multitouch buttons so you can press two buttons at once or what?

yup pretty much exactly that