IInteractionObjectEvents
Type interface
Defines events for InteractionObject.
Sources
IInteractionObjectEvents is an interface: it describes a shape of data and is not imported on its own.
Inheritance
IInteractionObjectEvents extends IBaseObjectEvents.
IInteractionObjectEvents is extended by ISpriteEvents.
Properties
blurType { event:
FocusEvent}Invoked when
focusableobject loses focus, e.g. by clicking outside it or pressing TAB button to focus on the next focusable object.doublehitType
PointerTypeEvent&PointEvent&MouseTouchEventInvoked when object is clicked or touched twice in rapid succession.
Check
IHitOptionsfor settings about double hit.downType
PointerTypeEvent&PointerEvent&MouseTouchEventInvoked when the mouse button is pressed or touch starts.
dragType
PointerTypeEvent&ShiftEvent&PointEvent& { event:MouseEvent|TouchEvent|KeyboardEvent, startPoint:IPoint}Invoked when
draggableobject is being dragged. (using mouse, touch or keyboard)dragstartType
PointerTypeEvent& { event:MouseEvent|TouchEvent|KeyboardEvent}Invoked when
draggableobject dragging starts. This event is not invoked immediatelly afterdown, but only if there's a movement of the pointer.dragstopType
PointerTypeEvent& { event:MouseTouchEvent|KeyboardEvent}Invoked when
draggableobject is released. This event will not fire if position of the object did not change.focusType { event:
FocusEvent}Invoked when
focusableobject gains focus, e.g. by using TAB button.hitType
PointerTypeEvent&PointEvent&MouseTouchEventInvoked when object is clicked or touched.
inputType { event:
KeyboardEvent}Invoked whenever information changes in the textual input elements, like
<input>,<textarea>, etc.keydownType { event:
KeyboardEvent}Invoked when the key is pressed on the keyboard.
keypressType { event:
KeyboardEvent}Invoked when the key generates a "press", e.g. pressing and holding a letter key will generate repeated "keypress" events.
keyupType { event:
KeyboardEvent}Invoked when the key is released on the keyboard.
outType
PointerTypeEvent&MouseTouchEvent&PointerEventInvoked when mouse cursor moves out of
hoverableobject or it is no longer touched.NOTE: this event might not always contains
pointerparameter as event might be triggered by API?overType
PointerTypeEvent&MouseTouchEvent&PointerEventInvoked when mouse cursor moves over
hoverableobject or it is touched.NOTE: this event might not always contains
pointerparameter as event might be triggered by API?resizeType
PointerTypeEvent&ScaleEvent&MouseTouchEvent& { point1:IPoint, point2:IPoint, startPoint1:IPoint, startPoint2:IPoint}Invoked when
resizableobject is being resized either by mouse or touch pinch gesture.rightclickType
MouseTouchEventInvoked when right mouse button is clicked on the object.
swipeType
PointerTypeEvent&MouseTouchEventInvoked when user performs "swiping" gesture (quick horizontal movement) on the object, either using mouse or touch.
swipeleftType
PointerTypeEvent&MouseTouchEventInvoked when user performs "swiping" gesture towards left.
swiperightType
PointerTypeEvent&MouseTouchEventInvoked when user performs "swiping" gesture towards right.
trackType
PointerTypeEvent&PointEvent&PointerEvent&MouseTouchEventInvoked when pointer (mouse cursor or touch point) moves over
trackableobject.upType
PointerTypeEvent&PointerEvent&MouseTouchEventInvoked when the mouse button is released or touch ends.
wheelType
PointEvent&ShiftEvent& { event:WheelEvent}Invoked when user turns mouse wheel while over the object.
wheeldownType
PointEvent&ShiftEvent& { event:WheelEvent}Invoked when user turns mouse wheel downwards while over the object.
wheelleftType
PointEvent&ShiftEvent& { event:WheelEvent}Invoked when user turns mouse wheel leftwards while over the object.
wheelrightType
PointEvent&ShiftEvent& { event:WheelEvent}Invoked when user turns mouse wheel rightwards while over the object.
wheelupType
PointEvent&ShiftEvent& { event:WheelEvent}Invoked when user turns mouse wheel upwards while over the object.