// Features by Usage
 public bool TryGetFeatureValue(InputFeatureUsage <bool> usage, out bool value)
 {
     if (CheckValidAndSetDefault(out value))
     {
         return(InputDevices.TryGetFeatureValue_bool(m_DeviceId, usage.name, out value));
     }
     return(false);
 }
Exemple #2
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 <bool> usage, out bool value)
        {
            bool flag = this.CheckValidAndSetDefault <bool>(out value);

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