| DirectX SDK |
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
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.