/// <summary> /// Initializes a new instance of the <see cref="PropertyAccessor"/> class by offset inside a structure. /// </summary> /// <param name="device">The device.</param> /// <param name="name">The name of the property inside dataFormat type.</param> /// <param name="dataFormat">The data format.</param> internal PropertyAccessor(Device device, string name, Type dataFormat) { Device = device; ObjectCode = Marshal.OffsetOf(dataFormat, name).ToInt32(); PropertyType = PropertyHowType.Byoffset; }
/// <summary> /// Initializes a new instance of the <see cref="PropertyAccessor"/> class. /// </summary> /// <param name="device">The device.</param> /// <param name="code">The code.</param> /// <param name="propertyType">The property type.</param> internal PropertyAccessor(Device device, int code, PropertyHowType propertyType) { Device = device; ObjectCode = code; PropertyType = propertyType; }
internal ObjectProperties(Device device, int code, PropertyHowType howType) : base(device, code, howType) { }
/// <summary> /// Initializes a new instance of the <see cref="PropertyAccessor"/> class. /// </summary> /// <param name="device">The device.</param> /// <param name="code">The code.</param> /// <param name="propertyType">The property type.</param> internal PropertyAccessor(IDirectInputDevice8 device, int code, PropertyHowType propertyType) { Device = device; ObjectCode = code; PropertyType = propertyType; }
internal ObjectProperties(IDirectInputDevice8 device, int code, PropertyHowType howType) : base(device, code, howType) { }