private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     SetupKinect();
     yourController = new CustomController(this);
     exampleController = new SkeletonController(this);
     currentController = yourController;
     InitTargets();
     i = 0;
 }
Beispiel #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;
 }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     SetupKinect();
     shoopDoupController = new ShoopDoupController(this);
     selectionController = new SelectionController(this);
     currentController = shoopDoupController;
 
     
     i = 0;
 }
Beispiel #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();
            }
        }
Beispiel #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();
 }
Beispiel #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();

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

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