示例#1
0
 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);
     }
 }
示例#2
0
        private void LaunchTokenIdentified(InternalTokenIdentifiedEventArgs e)
        {
            EventHandler<InternalTokenIdentifiedEventArgs> handler;

            lock (TokenCallBackLock)
            {
                handler = TokenIdentifiedEvent;
            }
            if(handler != null)
            {
                handler(this, e);
            }
        }