Exemplo n.º 1
0
 bool Matches(NativeDeviceInfo deviceInfo, NativeInputDeviceMatcher[] matchers)
 {
     if (Matchers != null)
     {
         var matchersCount = Matchers.Length;
         for (var i = 0; i < matchersCount; i++)
         {
             if (Matchers[i].Matches(deviceInfo))
             {
                 return(true);
             }
         }
     }
     return(false);
 }
 private bool Matches(NativeDeviceInfo deviceInfo, NativeInputDeviceMatcher[] matchers)
 {
     if (Matchers != null)
     {
         int num = Matchers.Length;
         for (int i = 0; i < num; i++)
         {
             if (Matchers[i].Matches(deviceInfo))
             {
                 return(true);
             }
         }
     }
     return(false);
 }
Exemplo n.º 3
0
 internal bool LastResortMatches(NativeDeviceInfo deviceInfo)
 {
     return(Matches(deviceInfo, LastResortMatchers));
 }
Exemplo n.º 4
0
 internal bool Matches(NativeDeviceInfo deviceInfo)
 {
     return(Matches(deviceInfo, Matchers));
 }