src/pixi/InteractionManager.js
function InteractionManager(stage)
{
    /**
     * a refference to the stage
     *
     * @property stage
     * @type Stage
     */
    this.stage = stage;

    /**
     * the mouse data
     *
     * @property mouse
     * @type InteractionData
     */
    this.mouse = new InteractionData();

    /**
     * an object that stores current touches (InteractionData) by id reference
     *
     * @property touchs
     * @type Object
     */
    this.touchs = {};

    // helpers
    this.tempPoint = new Point();
    //this.tempMatrix =  mat3.create();

    this.mouseoverEnabled = true;

    //tiny little interactiveData pool!
    this.pool = [];

    this.interactiveItems = [];
    this.interactionDOMElement = null;

    this.last = 0;
}
function InteractionManager(stage)
{
    /**
     * a refference to the stage
     *
     * @property stage
     * @type Stage
     */
    this.stage = stage;

    /**
     * the mouse data
     *
     * @property mouse
     * @type InteractionData
     */
    this.mouse = new InteractionData();

    /**
     * an object that stores current touches (InteractionData) by id reference
     *
     * @property touchs
     * @type Object
     */
    this.touchs = {};

    // helpers
    this.tempPoint = new Point();
    //this.tempMatrix =  mat3.create();

    this.mouseoverEnabled = true;

    //tiny little interactiveData pool!
    this.pool = [];

    this.interactiveItems = [];
    this.interactionDOMElement = null;

    this.last = 0;
}
function InteractionManager ( stage ) { /**
     * a refference to the stage
     *
     * @property stage
     * @type Stage
     */ this . stage = stage ; /**
     * the mouse data
     *
     * @property mouse
     * @type InteractionData
     */ this . mouse = new InteractionData ( ) ; /**
     * an object that stores current touches (InteractionData) by id reference
     *
     * @property touchs
     * @type Object
     */ this . touchs = { } ; // helpers this . tempPoint = new Point ( ) ; //this.tempMatrix =  mat3.create(); this . mouseoverEnabled = true ; //tiny little interactiveData pool! this . pool = [ ] ; this . interactiveItems = [ ] ; this . interactionDOMElement = null ; this . last = 0 ; }
The interaction manager deals with mouse and touch events. Any DisplayObject can be interactive
This manager also supports multitouch.

@class InteractionManager
@constructor
@param stage {Stage} The stage to handle interactions
The interaction manager deals with mouse and touch events . Any DisplayObject can be interactive This manager also supports multitouch .