Microsoft DirectX 8.1 (Visual Basic)

DIMOUSESTATE

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

Type DIMOUSESTATE
    Buttons(0 To 3) 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, then the value is 0.

Remarks

Immediate data is returned in this type from a device that has been prepared by passing the DIFORMAT_MOUSE 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

DIMOUSESTATE2