/// <inheritdoc />
        public bool CheckCapability(MixedRealityCapability capability)
        {
            if (WindowsApiChecker.IsMethodAvailable(
                    "Windows.Perception.Spatial.Surfaces",
                    "SpatialSurfaceObserver",
                    "IsSupported"))
            {
#if WINDOWS_UWP
                return((capability == MixedRealityCapability.SpatialAwarenessMesh) && WindowsSpatialSurfaces.SpatialSurfaceObserver.IsSupported());
#endif // WINDOWS_UWP
            }

            return(false);
        }
Ejemplo n.º 2
0
        /// <inheritdoc />
        public bool CheckCapability(MixedRealityCapability capability)
        {
            foreach (var observer in GetDataProviders <IMixedRealitySpatialAwarenessObserver>())
            {
                // If one of the running data providers supports the requested capability,
                // the application has the needed support to leverage the desired functionality.
                if (observer is IMixedRealityCapabilityCheck capabilityChecker &&
                    capabilityChecker.CheckCapability(capability))
                {
                    return(true);
                }
            }

            return(false);
        }
        /// <inheritdoc />
        public bool CheckCapability(MixedRealityCapability capability)
        {
            Debug.Log($"WindowsApiChecker.UniversalApiContractV7_IsAvailable=${WindowsApiChecker.UniversalApiContractV7_IsAvailable}");
            Debug.Log($"WindowsApiChecker.UniversalApiContractV8_IsAvailable=${WindowsApiChecker.UniversalApiContractV8_IsAvailable}");

            if (WindowsApiChecker.UniversalApiContractV7_IsAvailable)
            {
#if WINDOWS_UWP
                Debug.Log($"WindowsSpatialSurfaces.SpatialSurfaceObserver.IsSupported()=${WindowsSpatialSurfaces.SpatialSurfaceObserver.IsSupported()}");
                return((capability == MixedRealityCapability.SpatialAwarenessMesh) && WindowsSpatialSurfaces.SpatialSurfaceObserver.IsSupported());
#endif // WINDOWS_UWP
            }

            return(false);
        }
        /// <inheritdoc />
        public bool CheckCapability(MixedRealityCapability capability)
        {
            switch (capability)
            {
            case MixedRealityCapability.ArticulatedHand:
                return(ControllerSimulationMode == ControllerSimulationMode.ArticulatedHand);

            case MixedRealityCapability.GGVHand:
                // If any hand simulation is enabled, GGV interactions are supported.
                return(ControllerSimulationMode != ControllerSimulationMode.Disabled);

            case MixedRealityCapability.EyeTracking:
                return(EyeGazeSimulationMode != EyeGazeSimulationMode.Disabled);
            }

            return(false);
        }
        /// <inheritdoc />
        public bool CheckCapability(MixedRealityCapability capability)
        {
            for (int i = 0; i < observers.Count; i++)
            {
                IMixedRealityCapabilityCheck capabilityChecker = observers[i] as IMixedRealityCapabilityCheck;

                // If one of the running data providers supports the requested capability,
                // the application has the needed support to leverage the desired functionality.
                if ((capabilityChecker != null) &&
                    capabilityChecker.CheckCapability(capability))
                {
                    return(true);
                }
            }

            return(false);
        }
        /// <inheritdoc />
        public bool CheckCapability(MixedRealityCapability capability)
        {
            switch (capability)
            {
            case MixedRealityCapability.ArticulatedHand:
                return(InputSimulationProfile.HandSimulationMode == HandSimulationMode.Articulated);

            case MixedRealityCapability.GGVHand:
                // If any hand simulation is enabled, GGV interactions are supported.
                return(InputSimulationProfile.HandSimulationMode != HandSimulationMode.Disabled);

            case MixedRealityCapability.EyeTracking:
                return(InputSimulationProfile.SimulateEyePosition);
            }

            return(false);
        }
Ejemplo n.º 7
0
 public bool CheckCapability(MixedRealityCapability capability) => capability == MixedRealityCapability.MotionController;
Ejemplo n.º 8
0
 /// <inheritdoc />
 public bool CheckCapability(MixedRealityCapability capability)
 {
     return(capability == MixedRealityCapability.VoiceCommand);
 }
Ejemplo n.º 9
0
 /// <inheritdoc />
 public bool CheckCapability(MixedRealityCapability capability)
 {
     return(capability == MixedRealityCapability.ArticulatedHand);
 }
 /// <inheritdoc />
 public bool CheckCapability(MixedRealityCapability capability)
 {
     // The OpenVR platform supports motion controllers.
     return(capability == MixedRealityCapability.MotionController);
 }
Ejemplo n.º 11
0
 /// <inheritdoc />
 bool IMixedRealityCapabilityCheck.CheckCapability(MixedRealityCapability capability)
 {
     return(capability == MixedRealityCapability.SpatialAwarenessMesh);
 }
Ejemplo n.º 12
0
 /// <inheritdoc />
 public bool CheckCapability(MixedRealityCapability capability)
 {
     // Leap Motion only supports Articulated Hands
     return(capability == MixedRealityCapability.ArticulatedHand);
 }
Ejemplo n.º 13
0
 /// <inheritdoc />
 public override bool CheckCapability(MixedRealityCapability capability)
 {
     return((capability == MixedRealityCapability.ArticulatedHand) ||
            (capability == MixedRealityCapability.MotionController));
 }
        private static bool askedForETAccessAlready = false; // To make sure that this is only triggered once.
#endif // (UNITY_WSA && DOTNETWINRT_PRESENT) || WINDOWS_UWP

        #region IMixedRealityCapabilityCheck Implementation

        /// <inheritdoc />
        public bool CheckCapability(MixedRealityCapability capability) => eyesApiAvailable && capability == MixedRealityCapability.EyeTracking;
 public bool CheckCapability(MixedRealityCapability capability) => capability == MixedRealityCapability.ArticulatedHand;
 /// <inheritdoc />
 public bool CheckCapability(MixedRealityCapability capability) => eyeTrackingDevice.isValid && capability == MixedRealityCapability.EyeTracking;
Ejemplo n.º 17
0
 /// <inheritdoc />
 public virtual bool CheckCapability(MixedRealityCapability capability)
 {
     // The XR SDK platform supports motion controllers.
     return(capability == MixedRealityCapability.MotionController);
 }
 /// <inheritdoc />
 public bool CheckCapability(MixedRealityCapability capability)
 {
     return(capability == MixedRealityCapability.VoiceDictation);
 }