DIDATAFORMAT
The DIDATAFORMAT type carries information describing a device's data format. This type is used with the DirectInputDevice.SetDataFormat method.
Type DIDATAFORMAT
dataSize As Long
lFlags As Long
lObjSize As Long
numObjs As Long
End Type
Members
- dataSize
- Size of a data packet returned by the device, in bytes. This value must be a multiple of 4 and must exceed the largest offset value for an object's data within the data packet.
- lFlags
- Flags describing other attributes of the data format. This value can be one of the CONST_DIDATAFORMATFLAGS enumeration.
- lObjSize
- Size of the DIOBJECTDATAFORMAT type, in bytes.
- numObjs
- Number of objects for which data is to be returned.
Remarks
Applications need to create a DIDATAFORMAT type only for nonstandard devices. For the mouse, keyboard, and joystick, you set the data format by using DirectInputDevice.SetCommonDataFormat.