private void OnTokenIdentified(object sender, InternalTokenIdentifiedEventArgs e) { if (e.Success) { clusters[e.TokenHashId].SetState(ClusterState.Identidied); InputManager.SetFingersCancelled(clusters[e.TokenHashId].PointsIds.ToArray()); } else { clusters[e.TokenHashId].SetState(ClusterState.Invalid); } }
private void LaunchTokenIdentified(InternalTokenIdentifiedEventArgs e) { EventHandler<InternalTokenIdentifiedEventArgs> handler; lock (TokenCallBackLock) { handler = TokenIdentifiedEvent; } if(handler != null) { handler(this, e); } }