Struct MouseState
Describes the state of the mouse.
Implements
Namespace: Evergine.Common.Input
Assembly: Evergine.Common.dll
Syntax
public struct MouseState : IController
Fields
LeftButton
State of the left button.
Declaration
public ButtonState LeftButton
Field Value
Type | Description |
---|---|
ButtonState |
MiddleButton
State of the middle button.
Declaration
public ButtonState MiddleButton
Field Value
Type | Description |
---|---|
ButtonState |
RightButton
State of the right button.
Declaration
public ButtonState RightButton
Field Value
Type | Description |
---|---|
ButtonState |
Wheel
Wheel value.
Declaration
public int Wheel
Field Value
Type | Description |
---|---|
int |
X
X-position.
Declaration
public int X
Field Value
Type | Description |
---|---|
int |
Y
Y-position.
Declaration
public int Y
Field 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 |