public void updateTuioHand(TuioHand thand)
 {
     if (readyForInput)
     {
         //Debug.WriteLine("Hand update!, x=" + thand.getScreenX(RESOLUTION_X) + ", y=" + thand.getScreenY(RESOLUTION_Y) + ", handID=" + thand.getHandID() + ", sessionID=" + thand.getSessionID() + ", finger1ID = " + thand.getFingerID1() + ", finger2ID = " + thand.getFingerID2() + ", finger3ID = " + thand.getFingerID3() + ", finger4ID = " + thand.getFingerID4() + ", finger5ID = " + thand.getFingerID5() + ", gameTime=" + gameTime.TotalGameTime.TotalMilliseconds);
         tuioHandAddOrUpdateQueue.Enqueue(thand);
     }
 }
 // Update function for Tuio methods
 public TuioHand updateTHand(long key, TuioHand value)
 {
     return value;
 }
Exemplo n.º 3
0
 /**
  * Takes the atttibutes of the provided TuioHand
  * and assigns these values to this TuioHand.
  * The TuioTime time stamp of this TuioContainer remains unchanged.
  *
  * @param	tobj	the TuioContainer to assign
  */
 public void update(TuioHand thand)
 {
     base.update(thand);
     hand_id = thand.getHandID();
     finger_id1 = thand.getFingerID1();
     finger_id2 = thand.getFingerID2();
     finger_id3 = thand.getFingerID3();
     finger_id4 = thand.getFingerID4();
     finger_id5 = thand.getFingerID5();
 }
 public void removeTuioHand(TuioHand thand)
 {
     if (readyForInput)
     {
         //Debug.WriteLine("Hand removed!");
         tuioHandRemoveQueue.Enqueue(thand);
     }
 }
Exemplo n.º 5
0
 /**
  * This constructor takes the atttibutes of the provided TuioHand
  * and assigs these values to the newly created TuioHand.
  *
  * @param	thand	the TuioHand to assign
  */
 public TuioHand(TuioHand thand)
     : base(thand)
 {
     hand_id = thand.getHandID();
     finger_id1 = thand.getFingerID1();
     finger_id2 = thand.getFingerID2();
     finger_id3 = thand.getFingerID3();
     finger_id4 = thand.getFingerID4();
     finger_id5 = thand.getFingerID5();
 }