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

altKey:Bool

Available since

1.0.0

.

See also:

  • openfl.events.MouseEvent.altKey

  • openfl.events.TouchEvent.altKey

commandKey:Bool

Available since

1.0.0

.

See also:

  • openfl.events.MouseEvent.commandKey

  • openfl.events.TouchEvent.commandKey

controlKey:Bool

Available since

1.0.0

.

See also:

  • openfl.events.MouseEvent.controlKey

  • openfl.events.TouchEvent.controlKey

ctrlKey:Bool

Available since

1.0.0

.

See also:

  • openfl.events.MouseEvent.ctrlKey

  • openfl.events.TouchEvent.ctrlKey

isPrimaryTouchPoint:Bool

Available since

1.0.0

.

See also:

  • openfl.events.TouchEvent.isPrimaryTouchPoint

localX:Float

Available since

1.0.0

.

See also:

  • openfl.events.MouseEvent.localX

  • openfl.events.TouchEvent.localX

localY:Float

Available since

1.0.0

.

See also:

  • openfl.events.MouseEvent.localY

  • openfl.events.TouchEvent.localY

pressure:Float

Available since

1.0.0

.

See also:

  • openfl.events.TouchEvent.pressure

relatedObject:InteractiveObject

Available since

1.0.0

.

See also:

  • openfl.events.MouseEvent.relatedObject

  • openfl.events.TouchEvent.relatedObject

shiftKey:Bool

Available since

1.0.0

.

See also:

  • openfl.events.MouseEvent.shiftKey

  • openfl.events.TouchEvent.shiftKey

sizeX:Float

Available since

1.0.0

.

See also:

  • openfl.events.TouchEvent.sizeX

sizeY:Float

Available since

1.0.0

.

See also:

  • openfl.events.TouchEvent.sizeY

stageX:Float

Available since

1.0.0

.

See also:

  • openfl.events.MouseEvent.stageX

  • openfl.events.TouchEvent.stageX

stageY:Float

Available since

1.0.0

.

See also:

  • openfl.events.MouseEvent.stageY

  • openfl.events.TouchEvent.stageY

touchPointID:Int

Available since

1.0.0

.

See also:

  • openfl.events.TouchEvent.touchPointID

Methods