mirror of
https://github.com/wassname/phaser.git
synced 2026-07-04 17:20:31 +08:00
Updated docs - they now actually list the new body methods :)
This commit is contained in:
+45
-9
@@ -166,6 +166,10 @@
|
||||
<a href="Phaser.Game.html">Game</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.GameObjectCreator.html">GameObjectCreator</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.GameObjectFactory.html">GameObjectFactory</a>
|
||||
</li>
|
||||
@@ -254,6 +258,38 @@
|
||||
<a href="Phaser.Physics.Arcade.html">Arcade</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.Body.html">Body</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.CollisionGroup.html">CollisionGroup</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.ContactMaterial.html">ContactMaterial</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.InversePointProxy.html">InversePointProxy</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.Material.html">Material</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.PointProxy.html">PointProxy</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.Spring.html">Spring</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Physics.World.html">World</a>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<a href="Phaser.Plugin.html">Plugin</a>
|
||||
</li>
|
||||
@@ -572,7 +608,7 @@ Phaser.SinglePad.prototype = {
|
||||
|
||||
/**
|
||||
* Add callbacks to the this Gamepad to handle connect/disconnect/button down/button up/axis change/float value buttons
|
||||
* @method Phaser.Gamepad#addCallbacks
|
||||
* @method Phaser.SinglePad#addCallbacks
|
||||
* @param {Object} context - The context under which the callbacks are run.
|
||||
* @param {Object} callbacks - Object that takes six different callbak methods:
|
||||
* onConnectCallback, onDisconnectCallback, onDownCallback, onUpCallback, onAxisCallback, onFloatCallback
|
||||
@@ -662,8 +698,8 @@ Phaser.SinglePad.prototype = {
|
||||
|
||||
/**
|
||||
* Gamepad connect function, should be called by Phaser.Gamepad
|
||||
* @param {Object} rawPad - The raw gamepad object
|
||||
* @method Phaser.SinglePad#connect
|
||||
* @param {Object} rawPad - The raw gamepad object
|
||||
*/
|
||||
connect: function (rawPad) {
|
||||
|
||||
@@ -715,8 +751,8 @@ Phaser.SinglePad.prototype = {
|
||||
|
||||
/**
|
||||
* Handles changes in axis
|
||||
* @param {Object} axisState - State of the relevant axis
|
||||
* @method Phaser.SinglePad#processAxisChange
|
||||
* @param {Object} axisState - State of the relevant axis
|
||||
*/
|
||||
processAxisChange: function (axisState) {
|
||||
|
||||
@@ -746,9 +782,9 @@ Phaser.SinglePad.prototype = {
|
||||
|
||||
/**
|
||||
* Handles button down press
|
||||
* @method Phaser.SinglePad#processButtonDown
|
||||
* @param {number} buttonCode - Which buttonCode of this button
|
||||
* @param {Object} value - Button value
|
||||
* @method Phaser.SinglePad#processButtonDown
|
||||
*/
|
||||
processButtonDown: function (buttonCode, value) {
|
||||
|
||||
@@ -804,9 +840,9 @@ Phaser.SinglePad.prototype = {
|
||||
|
||||
/**
|
||||
* Handles button release
|
||||
* @method Phaser.SinglePad#processButtonUp
|
||||
* @param {number} buttonCode - Which buttonCode of this button
|
||||
* @param {Object} value - Button value
|
||||
* @method Phaser.SinglePad#processButtonUp
|
||||
*/
|
||||
processButtonUp: function (buttonCode, value) {
|
||||
|
||||
@@ -852,9 +888,9 @@ Phaser.SinglePad.prototype = {
|
||||
|
||||
/**
|
||||
* Handles buttons with floating values (like analog buttons that acts almost like an axis but still registers like a button)
|
||||
* @method Phaser.SinglePad#processButtonFloat
|
||||
* @param {number} buttonCode - Which buttonCode of this button
|
||||
* @param {Object} value - Button value (will range somewhere between 0 and 1, but not specifically 0 or 1.
|
||||
* @method Phaser.SinglePad#processButtonFloat
|
||||
*/
|
||||
processButtonFloat: function (buttonCode, value) {
|
||||
|
||||
@@ -893,7 +929,7 @@ Phaser.SinglePad.prototype = {
|
||||
|
||||
/**
|
||||
* Returns value of requested axis
|
||||
* @method Phaser.SinglePad#isDown
|
||||
* @method Phaser.SinglePad#axis
|
||||
* @param {number} axisCode - The index of the axis to check
|
||||
* @return {number} Axis value if available otherwise false
|
||||
*/
|
||||
@@ -927,7 +963,7 @@ Phaser.SinglePad.prototype = {
|
||||
|
||||
/**
|
||||
* Returns the "just released" state of a button from this gamepad. Just released is considered as being true if the button was released within the duration given (default 250ms).
|
||||
* @method Phaser.SinglePad#justPressed
|
||||
* @method Phaser.SinglePad#justReleased
|
||||
* @param {number} buttonCode - The buttonCode of the button to check for.
|
||||
* @param {number} [duration=250] - The duration below which the button is considered as being just released.
|
||||
* @return {boolean} True if the button is just released otherwise false.
|
||||
@@ -1043,7 +1079,7 @@ Object.defineProperty(Phaser.SinglePad.prototype, "index", {
|
||||
|
||||
<span class="jsdoc-message">
|
||||
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-dev</a>
|
||||
on Wed Feb 19 2014 05:26:20 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
on Fri Feb 21 2014 15:36:22 GMT-0000 (GMT) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
|
||||
</span>
|
||||
</footer>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user