Struct MouseState
Describes the mouse state.
Implements
Inherited Members
Namespace: Evergine.Common.Input
Assembly: Evergine.Common.dll
Syntax
public struct MouseState : IController
Fields
LeftButton
Left button state.
Declaration
public ButtonState LeftButton
Field Value
Type | Description |
---|---|
ButtonState |
MiddleButton
Middle button state.
Declaration
public ButtonState MiddleButton
Field Value
Type | Description |
---|---|
ButtonState |
RightButton
Right button state.
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 vector2.
Declaration
public Vector2 Position { get; }
Property Value
Type | Description |
---|---|
Vector2 |