public static IMotionController CreateMotionController(MotionControllerAPI api)
 {
     switch (api)
     {
         case MotionControllerAPI.Kinectv2:
             return new Kinectv2();
         default:
             throw new NotSupportedException(
                 "Attempted to make a motion controller that is not supported by the" +
                 "framework");
     }
 }
Exemple #2
0
        public static IMotionController CreateMotionController(MotionControllerAPI api)
        {
            switch (api)
            {
            case MotionControllerAPI.Kinectv2:
                return(new Kinectv2());

            default:
                throw new NotSupportedException(
                          "Attempted to make a motion controller that is not supported by the" +
                          "framework");
            }
        }