Interactivity Added

-Interaction Manager added to pixi.js to enable mouse and touch
interactivity.

- Interactive example added to examples folder

- docs updated

- build file updated
This commit is contained in:
Mat Groves 2013-03-20 20:21:27 +00:00
parent 9a0cd873b5
commit f5cc062922
63 changed files with 4844 additions and 280 deletions

View file

@ -15,11 +15,11 @@
<div id="hd" class="yui3-g header">
<div class="yui3-u-3-4">
<h1><img src="..&#x2F;logo_small.png" title="Pixi.js API"></h1>
<h1><img src="http:&#x2F;&#x2F;www.goodboydigital.com&#x2F;pixijs&#x2F;logo_small.png" title="Pixi.js API"></h1>
</div>
<div class="yui3-u-1-4 version">
<em>API Docs for: 0.9</em>
<em>API Docs for: 1.0</em>
</div>
</div>
<div id="bd" class="yui3-g">
@ -51,6 +51,10 @@
<li><a href="..&#x2F;classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
<li><a href="..&#x2F;classes/InteractionData.html">InteractionData</a></li>
<li><a href="..&#x2F;classes/InteractionManager.html">InteractionManager</a></li>
<li><a href="..&#x2F;classes/MovieClip.html">MovieClip</a></li>
<li><a href="..&#x2F;classes/Point.html">Point</a></li>
@ -125,8 +129,9 @@
* @static
* @param width {Number} the width of the renderers view
* @param height {Number} the height of the renderers view
* @param view {Canvas} the canvas to use as a view, optional
*&#x2F;
PIXI.autoDetectRenderer = function(width, height)
PIXI.autoDetectRenderer = function(width, height, view)
{
if(!width)width = 800;
if(!height)height = 600;
@ -137,10 +142,10 @@ PIXI.autoDetectRenderer = function(width, height)
&#x2F;&#x2F;console.log(webgl);
if( webgl )
{
return new PIXI.WebGLRenderer(width, height)
return new PIXI.WebGLRenderer(width, height, view)
}
return new PIXI.CanvasRenderer(width, height);
return new PIXI.CanvasRenderer(width, height, view);
}