API Docs for: 1.0.0
Show:

InteractionManager Class

The interaction manager deals with mouse and touch events. Any DisplayObject can be interactive This manager also supports multitouch.

Constructor

InteractionManager

(
  • stage
)

Parameters:

Item Index

Methods

Properties

Methods

autoDetectRenderer

(
  • width
  • height
  • view
  • transparent
)
static

This helper function will automatically detect which renderer you should be using. WebGL is the preferred renderer as it is a lot fastest. If webGL is not supported by the browser then this function will return a canvas renderer

Parameters:

  • width Number

    the width of the renderers view

  • height Number

    the height of the renderers view

  • view Canvas

    the canvas to use as a view, optional

  • transparent Boolean

    the transparency of the render view, default false

Properties

mouse

InteractionData

the mouse data

stage

Stage

a refference to the stage

touchs

Object

an object that stores current touches (InteractionData) by id reference