Esempio n. 1
0
 public bool Matches(InputDeviceDescription other)
 {
     return(MatchPair(interfaceName, other.interfaceName) &&
            MatchPair(deviceClass, other.deviceClass) &&
            MatchPair(manufacturer, other.manufacturer) &&
            MatchPair(product, other.product)
            // We don't match serials; seems nonsense to do that.
            && MatchPair(version, other.version) &&
            MatchPair(capabilities, other.capabilities));
 }
Esempio n. 2
0
 public static InputDevice AddDevice(InputDeviceDescription description)
 {
     return(s_Manager.AddDevice(description));
 }
Esempio n. 3
0
 ////REVIEW: this seems somewhat pointless without also agreeing on an ID for the device
 public static void ReportAvailableDevice(InputDeviceDescription description)
 {
     s_Manager.ReportAvailableDevice(description);
 }
Esempio n. 4
0
        //public static void RegisterTemplateMethod<T>(string )

        public static string TryFindMatchingTemplate(InputDeviceDescription deviceDescription)
        {
            return(s_Manager.TryFindMatchingTemplate(deviceDescription));
        }