Dispatches TriggerEvent.TRIGGER (or a custom event type) when the target is clicked or tapped.

Available since

1.0.0

.

See:

Constructor

@:value({ target : null })new (?target:InteractiveObject, ?eventFactory:Void ‑> Event)

Creates a new PointerTrigger object with the given arguments.

Available since

1.0.0

.

Variables

@:value(true)enabled:Bool = true

May be set to false to disable the trigger event temporarily until set back to true.

Available since

1.0.0

.

@:value(null)target:InteractiveObject = null

The target component that should dispatch the event.

Available since

1.0.0

.

@:value(null)eventFactory:Void ‑> Event = null

The event type to dispatch on trigger.

Available since

1.0.0

.