Ejemplo n.º 1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     SetupKinect();
     yourController = new CustomController(this);
     exampleController = new SkeletonController(this);
     currentController = yourController;
     InitTargets();
     i = 0;
 }
Ejemplo n.º 2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     SetupKinect();
     exampleController = new SkeletonController(this);
     yourController1   = new CustomController1(this);
     yourController2   = new CustomController2(this);
     currentController = exampleController;
     InitTargets();
     i = 0;
 }
Ejemplo n.º 3
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     SetupKinect();
     shoopDoupController = new ShoopDoupController(this);
     selectionController = new SelectionController(this);
     currentController = shoopDoupController;
 
     
     i = 0;
 }
Ejemplo n.º 4
0
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.D1)
            {
                currentController      = exampleController;
                controllerText.Content = "Example Controller";
                currentController.controllerActivated(targets);
            }

            if (e.Key == Key.D2)
            {
                currentController      = yourController1;
                controllerText.Content = "Controller 1";
                currentController.controllerActivated(targets);
            }

            if (e.Key == Key.D3)
            {
                currentController      = yourController2;
                controllerText.Content = "Controller 2";
                currentController.controllerActivated(targets);
            }
        }
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            Boolean changedController = false;
            if (e.Key == Key.D1)
            {
                changedController = changedController || currentController != exampleController;
                currentController = exampleController;
                controllerText.Content = "Example Controller";
                currentController.controllerActivated(targets);
            }

            if (e.Key == Key.D2)
            {
                changedController = changedController || currentController != yourController1;
                currentController = yourController1;
                controllerText.Content = "Controller 1";
                currentController.controllerActivated(targets);
            }

            if (e.Key == Key.D3)
            {
                changedController = changedController || currentController != yourController2;
                currentController = yourController2;
                controllerText.Content = "Controller 2";
                currentController.controllerActivated(targets);
            }

            if (changedController)
            {
                yourController1.removeAllBalls();
            }
        }
Ejemplo n.º 6
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     SetupKinect();
     exampleController = new SkeletonController(this);
     yourController1 = new CustomController1(this);
     yourController2 = new CustomController2(this);
     currentController = exampleController;
     currentController.controllerActivated();
 }
Ejemplo n.º 7
0
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.D1)
            {
                currentController = exampleController;
                controllerText.Content = "Example Controller";
                currentController.controllerActivated();
            }

            if (e.Key == Key.D2)
            {
                currentController = yourController1;
                controllerText.Content = "Controller 1";
                currentController.controllerActivated();
            }

            if (e.Key == Key.D3)
            {
                currentController = yourController2;
                controllerText.Content = "Controller 2";
                currentController.controllerActivated();

            }
        }
Ejemplo n.º 8
0
        private void Window_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Key == Key.D1)
            {
                currentController = shoopDoupController;
            }

            if (e.Key == Key.D2)
            {
                currentController = selectionController;
            }
        }