Back to API Reference
Enum

PointerTrigger

What initiated a TextPointerEvent. Lets handlers behave differently for tap-style versus context-menu-style triggers without inspecting the underlying Unity event.

public static readonly PointerTrigger PrimaryClick = 0

Primary button press (left mouse button, single tap on touch).

public static readonly PointerTrigger SecondaryClick = 1

Secondary button press (right mouse button). Context-menu intent on desktop.

public static readonly PointerTrigger LongPress = 2

Pointer held in place past the long-press threshold. Context-menu intent on touch / pen.

public static readonly PointerTrigger Hover = 3

Hover movement without a press (PointerEntered/PointerExited).

public static readonly PointerTrigger Keyboard = 4

Keyboard-driven request (e.g. Shift+F10, Application key). Reserved; not yet emitted.