pixi.InteractionData

type
class
metadata
:native
"PIXI.InteractionData"

Constructor

new()
Holds all information related to an Interaction event

Instance Variables

global : pixi.geom.Point

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

originalEvent : pixi.utils.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.display.DisplayObject, ?point : pixi.geom.Point) : pixi.geom.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