private HandOpened InitializeHandOpened(HandToWatch hand)
        {
            var gesture = new HandOpened(hand);

            _detector.RegisterGesture(gesture);
            return(gesture);
        }
 private void RegisterLeftHandOpened(EventHandler <ulong> handler)
 {
     if (_leftHandOpened == null)
     {
         _leftHandOpened = InitializeHandOpened(HandToWatch.HandLeft);
     }
     _leftHandOpened.Detected += handler;
 }
 private void RegisterRightHandOpened(EventHandler <ulong> handler)
 {
     if (_rightHandOpened == null)
     {
         _rightHandOpened = InitializeHandOpened(HandToWatch.HandRight);
     }
     _rightHandOpened.Detected += handler;
 }
Beispiel #4
0
 private void RegisterRightHandOpened(EventHandler<ulong> handler)
 {
     if (_rightHandOpened == null) _rightHandOpened = InitializeHandOpened(HandToWatch.HandRight);
     _rightHandOpened.Detected += handler;
 }
Beispiel #5
0
 private void RegisterLeftHandOpened(EventHandler<ulong> handler)
 {
     if (_leftHandOpened == null) _leftHandOpened = InitializeHandOpened(HandToWatch.HandLeft);
     _leftHandOpened.Detected += handler;
 }
Beispiel #6
0
 private HandOpened InitializeHandOpened(HandToWatch hand)
 {
     var gesture = new HandOpened(hand);
     _detector.RegisterGesture(gesture);
     return gesture;
 }