Struct MouseState
Describes the state of the mouse.
Implements
Namespace: Evergine.Common.Input
Assembly: Evergine.Common.dll
Syntax
public struct MouseState : IControllerFields
LeftButton
State of the left button.
Declaration
public ButtonState LeftButtonField Value
| Type | Description | 
|---|---|
| ButtonState | 
MiddleButton
State of the middle button.
Declaration
public ButtonState MiddleButtonField Value
| Type | Description | 
|---|---|
| ButtonState | 
RightButton
State of the right button.
Declaration
public ButtonState RightButtonField Value
| Type | Description | 
|---|---|
| ButtonState | 
Wheel
Wheel value.
Declaration
public int WheelField Value
| Type | Description | 
|---|---|
| int | 
X
X-position.
Declaration
public int XField Value
| Type | Description | 
|---|---|
| int | 
Y
Y-position.
Declaration
public int YField Value
| Type | Description | 
|---|---|
| int | 
Properties
IsConnected
Gets or sets a value indicating whether this instance is connected.
Declaration
public bool IsConnected { readonly get; set; }Property Value
| Type | Description | 
|---|---|
| bool | 
 | 
Position
Gets the current mouse position as a Vector2.
Declaration
public Vector2 Position { get; }Property Value
| Type | Description | 
|---|---|
| Vector2 |