Microsoft DirectX 8.1 (Visual Basic)

DIMOUSESTATE2

Describes the state of a mouse device with up to 8 buttons. This type is used with the DirectInputDevice8.GetDeviceStateMouse2 method.

Type DIMOUSESTATE2
    Buttons(0 To 7) As Byte
    lX As Long
    lY As Long
    lZ As Long
End Type

Members

Buttons
Array of button states. The high-order bit of a byte is set if the corresponding button is down.
lX
X-axis.
lY
Y-axis.
lZ
Z-axis, typically a wheel. If the mouse does not have a z-axis, the value is 0.

Remarks

Immediate data is returned in this type from a device that has been prepared by passing the DIFORMAT_MOUSE2 constant to the DirectInputDevice8.SetCommonDataFormat method.

If an axis is in relative mode, then the appropriate member contains the change in position since the last call to this method. If the axis is in absolute mode, then the member contains the accumulated relative motion in relation to an arbitrary start point. The absolute axis position is not meaningful except in comparison with other absolute axis positions.

See Also

DIMOUSESTATE