DIOBJECTDATAFORMAT
The DIOBJECTDATAFORMAT type contains information about a device object's data format for use with the DirectInputDevice.SetDataFormat method.
Type DIOBJECTDATAFORMAT {
lFlags As CONST_DIDEVICEOBJINSTANCEFLAGS
lOfs As Long
lType As CONST_DIDFTFLAGS
strGuid As String
End Type
Members
- lFlags
- Zero or more of the following values from the CONST_DIDEVICEOBJINSTANCEFLAGS enumeration.
- DIDOI_ASPECTACCEL
- The object selected by DirectInput.SetDataFormat must report acceleration information.
- DIDOI_ASPECTFORCE
- The object selected by DirectInput.SetDataFormat must report force information.
- DIDOI_ASPECTPOSITION
- The object selected by DirectInput.SetDataFormat must report position information.
- DIDOI_ASPECTVELOCITY
- The object selected by DirectInput.SetDataFormat must report velocity information.
- lOfs
- Byte offset within the data packet where the data for the input source will be stored. This value must be a multiple of four for Long size data, such as axes. It can be byte-aligned for buttons.
- lType
- Device type that describes the object. It is a combination of values from the CONST_DIDFTFLAGS enumeration describing the object type (axis, button, and so forth) and containing the object-instance number in the middle 16 bits.
- strGuid
- Unique identifier for the type of input source. An empty string indicates that any type of object is permissible.
The following strings can be used in place of actual GUID strings to identify the type of device object:
- GUID_XAxis
- GUID_YAxis
- GUID_ZAxis
- GUID_RxAxis
- GUID_RyAxis
- GUID_RzAxis
- GUID_Slider
- GUID_Button
- GUID_Key
- GUID_POV