pixi.interaction.InteractionData

type
class
metadata
:native
"PIXI.interaction.InteractionData"

Constructor

new()
Holds all information related to an Interaction event

Instance Variables

This point stores the global coords of where the touch/mouse event happened

identifier : Int

Touch identifier

originalEvent : js.html.Event

When passed to an event handler, this will be the original DOM Event that was captured
The target Sprite that was interacted with

Instance Methods

getLocalPosition(displayObject : pixi.core.display.DisplayObject, ?point : pixi.core.math.Point) : pixi.core.math.Point

parameters
displayObject {DisplayObject} The DisplayObject that you would like the local coords off
[point] {Point} A Point object in which to store the value, optional (otherwise will create a new point)
returns
{Point} A point containing the coordinates of the InteractionData position relative to the DisplayObject
This will return the local coordinates of the specified displayObject for this InteractionData