internal void fireTouchEnded(TouchInfo info) { Finger finger; if (fingers.TryGetValue(info.id, out finger)) { if (FingerEnded != null) { FingerEnded.Invoke(finger); } fingers.Remove(info.id); finger.finished(); } }
private Finger findFinger(TouchInfo info) { Finger finger; if (!fingers.TryGetValue(info.id, out finger)) { finger = fingerPool.getPooledObject(); fingers.Add(info.id, finger); finger.setInfoOutOfPool(info.id, info.normalizedX, info.normalizedY, info.pixelX, info.pixelY); //This might happen in a touch started or touch moved event. if (FingerStarted != null) { FingerStarted.Invoke(finger); } } return(finger); }
protected void fireTouchMoved(TouchInfo touchInfo) { touches.fireTouchMoved(touchInfo); }
protected void fireTouchStarted(TouchInfo touchInfo) { touches.fireTouchStarted(touchInfo); }
internal void fireTouchStarted(TouchInfo info) { findFinger(info); }