Struct MouseEvent
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
ButtonMouseButtonKindMouseEventKindXintYintModifiersKeyModifiers
Properties
Button
public MouseButton Button { get; init; }
Property Value
Kind
public MouseEventKind Kind { get; init; }
Property Value
Modifiers
public KeyModifiers Modifiers { get; init; }
Property Value
X
public int X { get; init; }
Property Value
Y
public int Y { get; init; }