Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
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));
 }
Ejemplo n.º 5
0
        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));
        }