?/TD>
Microsoft DirectX 9.0

Mouse Device Enumerated Type


Mouse device constants, defined in Dinput.h, represent offsets within a mouse device's data packet, the DIMOUSESTATE or DIMOUSESTATE2 structure.

Syntax

typedef enum {
    DIMOFS_BUTTON0,
    DIMOFS_BUTTON1,
    DIMOFS_BUTTON2,
    DIMOFS_BUTTON3,
    DIMOFS_BUTTON4,
    DIMOFS_BUTTON5,
    DIMOFS_BUTTON6,
    DIMOFS_BUTTON7,
    DIMOFS_X,
    DIMOFS_Y,
    DIMOFS_Z
} Mouse Device;

Constants

DIMOFS_BUTTON0

DIMOFS_BUTTON1

DIMOFS_BUTTON2

DIMOFS_BUTTON3

DIMOFS_BUTTON4

DIMOUSESTATE2 only

DIMOFS_BUTTON5

DIMOUSESTATE2 only

DIMOFS_BUTTON6

DIMOUSESTATE2 only

DIMOFS_BUTTON7

DIMOUSESTATE2 only

DIMOFS_X

DIMOFS_Y

DIMOFS_Z

Remarks

The data at a given offset is associated with a device object (button or axis). Typically, these values are used in the dwOfs member of the DIDEVICEOBJECTDATA, DIOBJECTDATAFORMAT or DIDEVICEOBJECTINSTANCE structures.

Enumerated Type Information

Minimum operating systems Windows 98, Windows NT 2000, Windows XP


© 2002 Microsoft Corporation. All rights reserved.