Dispatched with a short delay after MouseEvent.MOUSE_DOWN
or
TouchEvent.TOUCH_BEGIN
.
1.0.0
.Static variables
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
.
1.0.0
.Static methods
staticdispatchFromMouseEvent(dispatcher:IEventDispatcher, mouseEvent:MouseEvent):Bool
Dispatches a pooled event with the specified properties.
LongPressEvent.dispatchFromMouseEvent(component, event);
1.0.0
.staticdispatchFromTouchEvent(dispatcher:IEventDispatcher, touchEvent:TouchEvent):Bool
Dispatches a pooled event with the specified properties.
LongPressEvent.dispatchFromTouchEvent(component, event);
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
1.0.0
.See also:
openfl.events.MouseEvent.altKey
openfl.events.TouchEvent.altKey
commandKey:Bool
1.0.0
.See also:
openfl.events.MouseEvent.commandKey
openfl.events.TouchEvent.commandKey
controlKey:Bool
1.0.0
.See also:
openfl.events.MouseEvent.controlKey
openfl.events.TouchEvent.controlKey
ctrlKey:Bool
1.0.0
.See also:
openfl.events.MouseEvent.ctrlKey
openfl.events.TouchEvent.ctrlKey
localX:Float
1.0.0
.See also:
openfl.events.MouseEvent.localX
openfl.events.TouchEvent.localX
localY:Float
1.0.0
.See also:
openfl.events.MouseEvent.localY
openfl.events.TouchEvent.localY
relatedObject:InteractiveObject
1.0.0
.See also:
openfl.events.MouseEvent.relatedObject
openfl.events.TouchEvent.relatedObject
shiftKey:Bool
1.0.0
.See also:
openfl.events.MouseEvent.shiftKey
openfl.events.TouchEvent.shiftKey
stageX:Float
1.0.0
.See also:
openfl.events.MouseEvent.stageX
openfl.events.TouchEvent.stageX
stageY:Float
1.0.0
.See also:
openfl.events.MouseEvent.stageY
openfl.events.TouchEvent.stageY