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); } }
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); } } }