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