Example #1
0
 public TouchInfo(byte[] buffer)
 {
     // this tells us how many touches there are...
     numTouches = buffer[61];
     touches    = new SingleTouch[10];
     // if it's a release event - no touches
     if (buffer[1] == 0)
     {
         numTouches = 0;
     }
     for (int i = 0; i < numTouches; ++i)
     {
         touches[i] = new SingleTouch(buffer, i);
     }
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     SingleTouch = new SingleTouch();
 }