コード例 #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));
 }
コード例 #2
0
ファイル: InputSystem.cs プロジェクト: yebata/InputSystem
 public static InputDevice AddDevice(InputDeviceDescription description)
 {
     return(s_Manager.AddDevice(description));
 }
コード例 #3
0
ファイル: InputSystem.cs プロジェクト: yebata/InputSystem
 ////REVIEW: this seems somewhat pointless without also agreeing on an ID for the device
 public static void ReportAvailableDevice(InputDeviceDescription description)
 {
     s_Manager.ReportAvailableDevice(description);
 }
コード例 #4
0
ファイル: InputSystem.cs プロジェクト: yebata/InputSystem
        //public static void RegisterTemplateMethod<T>(string )

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