Dispatched with a short delay after MouseEvent.MOUSE_DOWN or TouchEvent.TOUCH_BEGIN.

Available since

1.0.0

.

Static variables

@:value("longPress")staticinlineread onlyLONG_PRESS:EventType<LongPressEvent> = "longPress"

The LongPressEvent.LONG_PRESS event type is dispatched when a button is long pressed. If dispatched, the button will not dispatch TriggerEvent.TRIGGER.

Available since

1.0.0

.

Static methods

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

Dispatches a pooled event with the specified properties.

LongPressEvent.dispatchFromMouseEvent(component, event);
Available since

1.0.0

.

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

Dispatches a pooled event with the specified properties.

LongPressEvent.dispatchFromTouchEvent(component, event);
Available since

1.0.0

.

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

Creates a new LongPressEvent object from an existing MouseEvent object of type MouseEvent.MOUSE_DOWN.

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

Creates a new LongPressEvent object from an existing TouchEvent object of type TouchEvent.TOUCH_BEGIN.

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