Struct MouseState
Represents the current state of a mouse including position and button states
public readonly record struct MouseState : IEquatable<MouseState>
- Implements
- Inherited Members
Constructors
MouseState(int, int, MouseButtonType, bool, bool, bool, bool, bool)
Represents the current state of a mouse including position and button states
public MouseState(int X, int Y, MouseButtonType Button, bool Pressed, bool Shift, bool Alt, bool Ctrl, bool Move)
Parameters
X
intThe X coordinate in cells
Y
intThe Y coordinate in cells
Button
MouseButtonTypePressed
boolShift
boolAlt
boolCtrl
boolMove
bool
Properties
Alt
public bool Alt { get; init; }
Property Value
Button
public MouseButtonType Button { get; init; }
Property Value
Ctrl
public bool Ctrl { get; init; }
Property Value
Move
public bool Move { get; init; }
Property Value
Pressed
public bool Pressed { get; init; }
Property Value
Shift
public bool Shift { get; init; }
Property Value
X
The X coordinate in cells
public int X { get; init; }
Property Value
Y
The Y coordinate in cells
public int Y { get; init; }