InteractionManager Class
The interaction manager deals with mouse and touch events. Any DisplayObject can be interactive This manager also supports multitouch.
Constructor
Methods
autoDetectRenderer
(
static
-
width
-
height
-
view
-
transparent
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
Numberthe width of the renderers view
-
height
Numberthe height of the renderers view
-
view
Canvasthe canvas to use as a view, optional
-
transparent
Booleanthe transparency of the render view, default false
Properties
touchs
Object
an object that stores current touches (InteractionData) by id reference