Represents a click, tap, or triggering key press dispatched by button components.

Available since

1.0.0

.

Static variables

@:value("trigger")staticinlineread onlyTRIGGER:EventType<TriggerEvent> = "trigger"

The TriggerEvent.TRIGGER event type is dispatched when a Feathers UI component is clicked or tapped.

Available since

1.0.0

.

Static methods

staticdispatchFromMouseEvent(dispatcher:IEventDispatcher, mouseEvent:MouseEvent):Bool

Dispatches a pooled event with the specified properties.

TriggerEvent.dispatchFromMouseEvent(component, event);
Available since

1.0.0

.

staticdispatchFromTouchEvent(dispatcher:IEventDispatcher, touchEvent:TouchEvent):Bool

Dispatches a pooled event with the specified properties.

TriggerEvent.dispatchFromTouchEvent(component, event);
Available since

1.0.0

.

staticfromMouseEvent(event:MouseEvent, ?existing:TriggerEvent):TriggerEvent

Creates a new TriggerEvent object from an existing MouseEvent object of type MouseEvent.CLICK.

staticfromTouchEvent(event:TouchEvent, ?existing:TriggerEvent):TriggerEvent

Creates a new TriggerEvent object from an existing TouchEvent object of type TouchEvent.TOUCH_TAP.

Variables

pressure:Float

Available since

1.0.0

.

See also:

sizeX:Float

Available since

1.0.0

.

See also:

sizeY:Float

Available since

1.0.0

.

See also:

touchPointID:Int

Available since

1.0.0

.

See also:

Methods