/// <summary>
 /// Constructor of WristUpGestureDetectorAdapter.
 /// </summary>
 public WristUpGestureDetectorAdapter()
 {
     sensor = new WristUpGestureDetector
     {
         Interval = 100,
         PausePolicy = SensorPausePolicy.None
     };
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Initializes <see cref="GestureService"/>
        /// </summary>
        public void Initialize()
        {
            _wristUpGestureDetector              = new WristUpGestureDetector();
            _wristUpGestureDetector.DataUpdated += WristUpUpdated;

            _faceDownGestureDetector              = new FaceDownGestureDetector();
            _faceDownGestureDetector.DataUpdated += FaceDownUpdated;

            _pickUpGestureDetector              = new PickUpGestureDetector();
            _pickUpGestureDetector.DataUpdated += PickUpUpdated;

            _wristUpGestureDetector.Start();
            _faceDownGestureDetector.Start();
            _pickUpGestureDetector.Start();
        }