InputHandler#downDuration()

downDuration(pointerId) → {number}

If the pointer is currently over this Sprite this returns how long it has been there for in milliseconds.

Parameters
Name Type Argument Default Description
pointerId integer <optional>
0
Returns
number -

The number of milliseconds the pointer has been pressed down on the Sprite, or -1 if not over.

Source code: input/InputHandler.js (Line 1363)
doc_phaser
2017-02-14 10:53:16
Comments
Leave a Comment

Please login to continue.