ObjectDataFormat Structure (Microsoft.DirectX.DirectInput)
Describes a device object's data format for use with the Inputdevice9Setdataformat method.
Visual Basic Public Structure ObjectDataFormat C# public struct ObjectDataFormat C++ public value class ObjectDataFormat sealed JScript In JScript, you can use structures, but you cannot define your own.
The following table lists the members exposed by the object.
Methods
Method Description ObjectDataFormat Initializes a new instance of the object. ToString Obtains a string representation of the current instance. Properties
Property Description DeviceType Device type that describes the object. It is a combination of the following flags describing the object type (axis, button, and so forth) and containing the object-instance number in the middle 16 bits. When requesting a data format, the instance portion must be set to DIDFT_ANYINSTANCE to indicate that any instance is permissible, or to DidftMakeinstance(n) to restrict the request to instance n. See the examples under Remarks. Flags Zero or more of the following values: Offset Offset within the data packet where the data for the input source is stored. This value must be a multiple of 4 for DWORD size data, such as axes. It can be byte-aligned for buttons. SourceGuid Unique identifier for the axis, button, or other input source. When requesting a data format, making this member NULL indicates that any type of object is permissible.
Namespace Microsoft.DirectX.DirectInput Assembly Microsoft.DirectX.DirectInput (microsoft.directx.directinput.dll) Strong Name Microsoft.DirectX.DirectInput, Version=1.0.900.0, Culture=neutral, PublicKeyToken=d3231b57b74a1492
Show: