Microsoft DirectX 9.0 SDK Update (October 2004)

ObjectDataFormat Structure

Language:

Note: This documentation is preliminary and is subject to change.

Describes a device object's data format for use with the Inputdevice9Setdataformat method.

Definition

Visual Basic .NET Public Structure ObjectDataFormat
C# public struct ObjectDataFormat
Managed C++ public __value struct ObjectDataFormat
JScript .NET In JScript .NET, you can use structures, but you cannot define your own.

Members Table

Method Description
ObjectDataFormat Initializes a new instance of the object.
ToString Obtains a string representation of the current instance.
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.

Structure Information

Namespace Microsoft.DirectX.DirectInput
Assembly Microsoft.DirectX.DirectInput (microsoft.directx.directinput.dll)
Strong Name Microsoft.DirectX.DirectInput,  Version=1.0.2902.0,  Culture=neutral,  PublicKeyToken=31bf3856ad364e35

© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center