Microsoft DirectX 8.1 (Visual Basic) |
Sets the data format for a Microsoft® DirectInput® device that is not a standard mouse, keyboard, or joystick.
object.SetDataFormat(format As DIDATAFORMAT, _ formatArray() As DIOBJECTDATAFORMAT))
If the method fails, an error is raised and Err.Number may be one of the following error codes.
DIERR_ACQUIRED |
DIERR_INVALIDPARAM |
The data format must be set before the device can be acquired by using the DirectInputDevice8.Acquire method. It is necessary to set the data format only once. The data format cannot be changed while the device is acquired.
DirectInputDevice8.SetActionMap, DirectInputDevice8.SetCommonDataFormat