MouseState Structure (Microsoft.DirectX.DirectInput)

Describes the state of a mouse device that has up to four buttons, or another device that is being accessed as if it were a mouse device. This structure is used with the Inputdevice9Getdevicestate method.

Definition

Visual BasicPublic Structure MouseState
C#public struct MouseState 
C++public value class MouseState sealed 
JScriptIn JScript, you can use structures, but you cannot define your own.

Members Table

The following table lists the members exposed by the object.

Methods

MethodDescription
GetMouseButtons Array of buttons. The high-order bit of the byte is set if the corresponding button is down.
MouseState Initializes a new instance of the object.
ToString Obtains a string representation of the current instance.

Properties

PropertyDescription
X X-axis.
Y Y-axis.
Z Z-axis, typically a wheel. If the mouse does not have a z-axis, the value is 0.

Structure Information

NamespaceMicrosoft.DirectX.DirectInput
AssemblyMicrosoft.DirectX.DirectInput (microsoft.directx.directinput.dll)
Strong NameMicrosoft.DirectX.DirectInput,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492
Show: