Пример #1
0
        void pointCtrl_PointDestroy(object sender, IdEventArgs e)
        {
            lock (this)
            {
                for (int i = 0; i < HandPointBuffer.Count; i++)
                {
                    HandPointContact hdc = HandPointBuffer[i] as HandPointContact;
                    if (hdc.Id == e.ID)
                    {
                        hdc.destroy();
                        PointStatus pt = pointCollections[e.ID];


                        pointCollections.Remove(e.ID);
                        pt.destroy();
                        inputProvider.EnqueueContact(hdc, Multitouch.Contracts.ContactState.Removed);
                        break;
                    }
                }

                Console.WriteLine("Destroyed" + e.ID.ToString() + "\n");
            }
        }