Table of Contents

Struct MouseState

Namespace
Gloam.Core.Input
Assembly
Gloam.Core.dll

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 int

The X coordinate in cells

Y int

The Y coordinate in cells

Button MouseButtonType
Pressed bool
Shift bool
Alt bool
Ctrl bool
Move bool

Properties

Alt

public bool Alt { get; init; }

Property Value

bool

Button

public MouseButtonType Button { get; init; }

Property Value

MouseButtonType

Ctrl

public bool Ctrl { get; init; }

Property Value

bool

Move

public bool Move { get; init; }

Property Value

bool

Pressed

public bool Pressed { get; init; }

Property Value

bool

Shift

public bool Shift { get; init; }

Property Value

bool

X

The X coordinate in cells

public int X { get; init; }

Property Value

int

Y

The Y coordinate in cells

public int Y { get; init; }

Property Value

int