justPressed(pointerId, delay) → {boolean}
Returns true if the pointer has touched or clicked on the Sprite within the specified delay time (defaults to 500ms, half a second)
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
pointerId | integer | <optional> | 0 | |
delay | number | The time below which the pointer is considered as just over. |
Returns
boolean -
- Source code: input/InputHandler.js (Line 1309)
Please login to continue.