Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <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;
 }
Esempio n. 3
0
 internal ObjectProperties(Device device, int code, PropertyHowType howType) : base(device, code, howType)
 {
 }
Esempio n. 4
0
 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;
 }
Esempio n. 6
0
 internal ObjectProperties(IDirectInputDevice8 device, int code, PropertyHowType howType) : base(device, code, howType)
 {
 }