Class PointerEventContext
Pointer event context
Inheritance
object
PointerEventContext
Namespace: Terminaux.Inputs.Pointer
Assembly: Terminaux.dll
Syntax
public class PointerEventContext
Properties
| Edit this page View SourceButton
Gets the button or the scrolling direction
Declaration
public PointerButton Button { get; }
Property Value
Type | Description |
---|---|
PointerButton |
ButtonPress
Gets the button press state
Declaration
public PointerButtonPress ButtonPress { get; }
Property Value
Type | Description |
---|---|
PointerButtonPress |
ClickTier
Specifies whether this is a single-click (1), double-click (2), or more. Only populated in the Released event.
Declaration
public int ClickTier { get; }
Property Value
Type | Description |
---|---|
int |
Coordinates
Gets the coordinates in character cells where the mouse cursor was placed starting from zero.
Declaration
public (int x, int y) Coordinates { get; }
Property Value
Type | Description |
---|---|
(int Width, int Height) |
Dragging
Whether the pointer is being dragged or not
Declaration
public bool Dragging { get; }
Property Value
Type | Description |
---|---|
bool |
Modifiers
Gets the modifiers pressed at the time of the event
Declaration
public PointerModifiers Modifiers { get; }
Property Value
Type | Description |
---|---|
PointerModifiers |