コード例 #1
0
 public override void UpdateTouches(FSInputManager oic)
 {
     for (int i = 0; i < Input.touchCount; i++)
     {
         UnityEngine.Touch touch       = Input.GetTouch(i);
         FSInputTouch      fingerTouch = oic.findOrCreateTouch(touch.fingerId);
         fingerTouch.IsActive = true;
         fingerTouch.UpdatePosition(touch.position.x, Screen.height - touch.position.y);
     }
 }
コード例 #2
0
 public override void UpdateTouches(FSInputManager oic)
 {
     if (tuioTracking != null)
     {
         tuioTracking.BuildTouchDictionary();
         foreach (KeyValuePair <int, Tuio.Touch> touch in tuioTracking.AllTouches)
         {
             FSInputTouch fingerTouch = oic.findOrCreateTouch(touch.Key);
             fingerTouch.IsActive = true;
             fingerTouch.UpdatePosition(touch.Value.RawPoint.x * Screen.width, touch.Value.RawPoint.y * Screen.height);
         }
     }
 }
コード例 #3
0
 public virtual void UpdateTouches(FSInputManager oic)
 {
 }