SinglePad#justReleased()

justReleased(buttonCode, duration) → {boolean}

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).

Parameters
Name Type Argument Default Description
buttonCode number

The buttonCode of the button to check for.

duration number <optional>
250

The duration below which the button is considered as being just released.

Returns
boolean -

True if the button is just released otherwise false.

Source code: input/SinglePad.js (Line 486)
doc_phaser
2017-02-14 11:09:36
Comments
Leave a Comment

Please login to continue.