// Features at time public bool TryGetFeatureValue(InputFeatureUsage <bool> usage, DateTime time, out bool value) { if (CheckValidAndSetDefault(out value)) { return(InputDevices.TryGetFeatureValueAtTime_bool(m_DeviceId, usage.name, TimeConverter.LocalDateTimeToUnixTimeMilliseconds(time), out value)); } return(false); }
public bool TryGetFeatureValue(InputFeatureUsage <bool> usage, DateTime time, out bool value) { bool flag = this.CheckValidAndSetDefault <bool>(out value); return(flag && InputDevices.TryGetFeatureValueAtTime_bool(this.m_DeviceId, usage.name, TimeConverter.LocalDateTimeToUnixTimeMilliseconds(time), out value)); }