private void OnTokenCancelled(object sender, InternalTokenCancelledEventArgs e) { //clusters[e.TokenHashId].SetState(ClusterState.Invalid); //Add these to FingerTouches //Cluster c = clusters[e.TokenHashId]; //foreach (KeyValuePair<int, TouchInput> record in c.Points) //{ // InputManager.AddFingerTouch(record.Value); //} }
private void LaunchTokenCancelled(InternalTokenCancelledEventArgs e) { EventHandler<InternalTokenCancelledEventArgs> handler; lock (TokenCallBackLock) { handler = TokenCancelledEvent; } if(handler != null) { handler(this, e); } }