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)
Please login to continue.