Table of Contents

Struct MouseEvent

Namespace
Retro.Crt.Input
Assembly
Retro.Crt.dll

One decoded mouse event. X / Y are 1-based screen coordinates as the terminal reports them — same convention as Crt.GotoXY(column, row).

public readonly record struct MouseEvent : IEquatable<MouseEvent>
Implements
Inherited Members

Constructors

MouseEvent(MouseButton, MouseEventKind, int, int, KeyModifiers)

One decoded mouse event. X / Y are 1-based screen coordinates as the terminal reports them — same convention as Crt.GotoXY(column, row).

public MouseEvent(MouseButton Button, MouseEventKind Kind, int X, int Y, KeyModifiers Modifiers = KeyModifiers.None)

Parameters

Button MouseButton
Kind MouseEventKind
X int
Y int
Modifiers KeyModifiers

Properties

Button

public MouseButton Button { get; init; }

Property Value

MouseButton

Kind

public MouseEventKind Kind { get; init; }

Property Value

MouseEventKind

Modifiers

public KeyModifiers Modifiers { get; init; }

Property Value

KeyModifiers

X

public int X { get; init; }

Property Value

int

Y

public int Y { get; init; }

Property Value

int