pointerX(pointerId) → {number}
The x coordinate of the Input pointer, relative to the top-left of the parent Sprite.
This value is only set when the pointer is over this Sprite.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
pointerId | integer | <optional> | 0 |
Returns
number -
The x coordinate of the Input pointer.
- Source code: input/InputHandler.js (Line 507)
Please login to continue.