Пример #1
0
 void MainWindow_Loaded(object sender, RoutedEventArgs e)
 {
     _listener = new MotionListener();
     _controller = new Controller();
     _controller.AddListener(_listener);
     _listener.OnFingersCount += _listener_OnFingersCount;
     _listener.OnHandMoveOnX += _listener_OnHandMoveOnX;
     _listener.OnHandMoveOnY += _listener_OnHandMoveOnY;
     _listener.OnHandMoveOnZ += _listener_OnHandMoveOnZ;
     _listener.OnHandMoveOn += _listener_OnHandMoveOn;
 }
Пример #2
0
 void MainWindow_Loaded(object sender, RoutedEventArgs e)
 {
     _listener   = new MotionListener();
     _controller = new Controller();
     _controller.AddListener(_listener);
     _listener.OnFingersCount += _listener_OnFingersCount;
     _listener.OnHandMoveOnX  += _listener_OnHandMoveOnX;
     _listener.OnHandMoveOnY  += _listener_OnHandMoveOnY;
     _listener.OnHandMoveOnZ  += _listener_OnHandMoveOnZ;
     _listener.OnHandMoveOn   += _listener_OnHandMoveOn;
 }
Пример #3
0
 void _listener_OnHandMoveOnX(MotionListener.HandMoveDirection obj)
 {
     MoveYText = obj.ToString();
 }