Пример #1
0
 // 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);
 }
Пример #2
0
 // Features
 public bool TryGetFeatureValue(InputFeatureUsage <bool> usage, out bool value)
 {
     return(InputDevices.TryGetFeatureValue_bool(m_DeviceId, usage.name, out value));
 }
Пример #3
0
        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));
        }