public bool TryGetFeatureValue(InputFeatureUsage <Eyes> usage, out Eyes value)
 {
     if (CheckValidAndSetDefault(out value))
     {
         return(InputDevices.TryGetFeatureValue_XREyes(m_DeviceId, usage.name, out value));
     }
     return(false);
 }
 public bool TryGetFeatureValue(InputFeatureUsage <Quaternion> usage, DateTime time, out Quaternion value)
 {
     if (CheckValidAndSetDefault(out value))
     {
         return(InputDevices.TryGetFeatureValueAtTime_Quaternionf(m_DeviceId, usage.name, TimeConverter.LocalDateTimeToUnixTimeMilliseconds(time), out value));
     }
     return(false);
 }
 public bool TryGetFeatureValue(InputFeatureUsage <Quaternion> usage, out Quaternion value)
 {
     if (CheckValidAndSetDefault(out value))
     {
         return(InputDevices.TryGetFeatureValue_Quaternionf(m_DeviceId, usage.name, out value));
     }
     return(false);
 }
 public bool TryGetFeatureValue(InputFeatureUsage <uint> usage, out uint value)
 {
     if (CheckValidAndSetDefault(out value))
     {
         return(InputDevices.TryGetFeatureValue_UInt32(m_DeviceId, usage.name, out value));
     }
     return(false);
 }
 public bool TryGetFeatureValue(InputFeatureUsage <Vector3> usage, out Vector3 value)
 {
     if (CheckValidAndSetDefault(out value))
     {
         return(InputDevices.TryGetFeatureValue_Vector3f(m_DeviceId, usage.name, out value));
     }
     return(false);
 }
        public bool TryGetFeatureValue(InputFeatureUsage <byte[]> usage, byte[] value)
        {
            if (IsValidId())
            {
                return(InputDevices.TryGetFeatureValue_Custom(m_DeviceId, usage.name, value));
            }

            return(false);
        }
Exemple #7
0
        public bool TryGetFeatureValue(InputFeatureUsage <InputTrackingState> usage, out InputTrackingState value)
        {
            uint intValue = 0;

            if (InputDevices.TryGetFeatureValue_UInt32(m_DeviceId, usage.name, out intValue))
            {
                value = (InputTrackingState)intValue;
                return(true);
            }
            value = InputTrackingState.None;
            return(false);
        }
Exemple #8
0
        public bool TryGetFeatureValue(InputFeatureUsage <InputTrackingState> usage, DateTime time, out InputTrackingState value)
        {
            uint intValue = 0;

            if (InputDevices.TryGetFeatureValueAtTime_UInt32(m_DeviceId, usage.name, TimeConverter.LocalDateTimeToUnixTimeMilliseconds(time), out intValue))
            {
                value = (InputTrackingState)intValue;
                return(true);
            }
            value = InputTrackingState.None;
            return(false);
        }
        public bool TryGetFeatureValue(InputFeatureUsage <InputTrackingState> usage, out InputTrackingState value)
        {
            bool flag = this.IsValidId();
            bool result;

            if (flag)
            {
                uint num   = 0u;
                bool flag2 = InputDevices.TryGetFeatureValue_UInt32(this.m_DeviceId, usage.name, out num);
                if (flag2)
                {
                    value  = (InputTrackingState)num;
                    result = true;
                    return(result);
                }
            }
            value  = InputTrackingState.None;
            result = false;
            return(result);
        }
        public bool TryGetFeatureValue(InputFeatureUsage <InputTrackingState> usage, DateTime time, out InputTrackingState value)
        {
            bool flag = this.IsValidId();
            bool result;

            if (flag)
            {
                uint num   = 0u;
                bool flag2 = InputDevices.TryGetFeatureValueAtTime_UInt32(this.m_DeviceId, usage.name, TimeConverter.LocalDateTimeToUnixTimeMilliseconds(time), out num);
                if (flag2)
                {
                    value  = (InputTrackingState)num;
                    result = true;
                    return(result);
                }
            }
            value  = InputTrackingState.None;
            result = false;
            return(result);
        }
        public bool TryGetFeatureValue(InputFeatureUsage <Vector3> usage, out Vector3 value)
        {
            bool flag = this.CheckValidAndSetDefault <Vector3>(out value);

            return(flag && InputDevices.TryGetFeatureValue_Vector3f(this.m_DeviceId, usage.name, out value));
        }
        public bool TryGetFeatureValue(InputFeatureUsage <byte[]> usage, byte[] value)
        {
            bool flag = this.IsValidId();

            return(flag && InputDevices.TryGetFeatureValue_Custom(this.m_DeviceId, usage.name, value));
        }
Exemple #13
0
 public bool TryGetFeatureValue(InputFeatureUsage <Vector3> usage, DateTime time, out Vector3 value)
 {
     return(InputDevices.TryGetFeatureValueAtTime_Vector3f(m_DeviceId, usage.name, TimeConverter.LocalDateTimeToUnixTimeMilliseconds(time), out value));
 }
Exemple #14
0
 public bool TryGetFeatureValue(InputFeatureUsage <Eyes> usage, out Eyes value)
 {
     return(InputDevices.TryGetFeatureValue_XREyes(m_DeviceId, usage.name, out value));
 }
Exemple #15
0
 public bool TryGetFeatureValue(InputFeatureUsage <Bone> usage, out Bone value)
 {
     return(InputDevices.TryGetFeatureValue_XRBone(m_DeviceId, usage.name, out value));
 }
Exemple #16
0
 public bool TryGetFeatureValue(InputFeatureUsage <Hand> usage, out Hand value)
 {
     return(InputDevices.TryGetFeatureValue_XRHand(m_DeviceId, usage.name, out value));
 }
        public bool TryGetFeatureValue(InputFeatureUsage <Eyes> usage, out Eyes value)
        {
            bool flag = this.CheckValidAndSetDefault <Eyes>(out value);

            return(flag && InputDevices.TryGetFeatureValue_XREyes(this.m_DeviceId, usage.name, out value));
        }
Exemple #18
0
 public bool TryGetFeatureValue(InputFeatureUsage <float> usage, out float value)
 {
     return(InputDevices.TryGetFeatureValue_float(m_DeviceId, usage.name, out value));
 }
Exemple #19
0
 public bool TryGetFeatureValue(InputFeatureUsage <uint> usage, out uint value)
 {
     return(InputDevices.TryGetFeatureValue_UInt32(m_DeviceId, usage.name, out value));
 }
Exemple #20
0
 // Features
 public bool TryGetFeatureValue(InputFeatureUsage <bool> usage, out bool value)
 {
     return(InputDevices.TryGetFeatureValue_bool(m_DeviceId, usage.name, out value));
 }
        public bool TryGetFeatureValue(InputFeatureUsage <Quaternion> usage, DateTime time, out Quaternion value)
        {
            bool flag = this.CheckValidAndSetDefault <Quaternion>(out value);

            return(flag && InputDevices.TryGetFeatureValueAtTime_Quaternionf(this.m_DeviceId, usage.name, TimeConverter.LocalDateTimeToUnixTimeMilliseconds(time), out value));
        }
Exemple #22
0
 public bool TryGetFeatureValue(InputFeatureUsage <Vector3> usage, out Vector3 value)
 {
     return(InputDevices.TryGetFeatureValue_Vector3f(m_DeviceId, usage.name, out value));
 }
        public bool TryGetFeatureValue(InputFeatureUsage <Quaternion> usage, out Quaternion value)
        {
            bool flag = this.CheckValidAndSetDefault <Quaternion>(out value);

            return(flag && InputDevices.TryGetFeatureValue_Quaternionf(this.m_DeviceId, usage.name, out value));
        }
Exemple #24
0
 public bool TryGetFeatureValue(InputFeatureUsage <Quaternion> usage, out Quaternion value)
 {
     return(InputDevices.TryGetFeatureValue_Quaternionf(m_DeviceId, usage.name, out value));
 }
        public bool TryGetFeatureValue(InputFeatureUsage <float> usage, out float value)
        {
            bool flag = this.CheckValidAndSetDefault <float>(out value);

            return(flag && InputDevices.TryGetFeatureValue_float(this.m_DeviceId, usage.name, out value));
        }