/// <summary> /// Creates a new DIPhysicalControlInfo object. /// </summary> /// <param name="parent"> /// a DIPhysicalDeviceInfo object representing /// the physical device on which this control appears /// </param> /// <param name="deviceObjectInstance"> /// this control's DeviceObjectInstance /// structure, as obtained from DirectInput /// </param> /// <param name="controlNum"> /// an integer indicating the relative zero-based /// "offset" of this control in the collection of similar controls on the /// same device. Button 1 would be controlNum=0; the first slider would /// similarily be controlNum=0; as would the first Pov control, etc. /// </param> /// <param name="alias"> /// A string containing a "friendly name" (alias) to /// associate with this control. /// </param> public DIPhysicalControlInfo(DIPhysicalDeviceInfo parent, DeviceObjectInstance deviceObjectInstance, int controlNum, string alias) : base(parent, controlNum, ControlType.Unknown, AxisType.Unknown, alias) { _objectType = deviceObjectInstance.ObjectType; _doiObjectGuid = deviceObjectInstance.ObjectTypeGuid; }
private bool _IsDeviceType(DeviceObjectInstance deviceObjectInstance, ObjectDeviceType objectDeviceType) { return((deviceObjectInstance.ObjectType & objectDeviceType) != 0); }
private bool _IsDeviceType(DeviceObjectInstance deviceObjectInstance, ObjectDeviceType objectDeviceType) { return (deviceObjectInstance.ObjectType & objectDeviceType) != 0; }