コード例 #1
0
 private void InitializeGestureTracker()
 {
     try
     {
         _tracker              = new GestureTracker();
         _tracker.OnError     += new Action <CamEvent>(_tracker_OnError);
         _tracker.OnNotify    += new Action <CamEvent>(_tracker_OnNotify);
         _tracker.OnAlert     += new Action <PXCMGesture.Alert>(_tracker_OnAlert);
         _tracker.OnMovement  += new Action <Point>(_tracker_OnMovement);
         _tracker.OnOpenClose += new Action <PXCMGesture.GeoNode.Openness, uint>(_tracker_OnOpenClose);
         _tracker.OnGesture   += new Action <PXCMGesture.Gesture>(_tracker_OnGesture);
         _tracker.Start();
     }
     catch (Exception exception)
     {
         UIHelper.ShowError("GESTURE TRACKER INITIALIZATION ERROR: " + exception.Message);
     }
 }