Built-In Namespace _global_
Field Attributes | Field Name and Description |
---|---|
Reference to touch object.
|
Method Attributes | Method Name and Description |
---|---|
getXY(canvas, e)
Get the x or y position of mouse or touch point from the Canvas.
|
Field Detail
{Object}
_this
Reference to touch object.
Defined in: input.js.
Defined in: input.js.
Method Detail
{Number}
getXY(canvas, e)
Get the x or y position of mouse or touch point from the Canvas.
Defined in: input.js.
Defined in: input.js.
- Parameters:
- {[object HTMLCanvasElement]} canvas
- Canvas object.
- {Event} e
- Mouse or touch event.
- Returns:
- {Number} Returns x and y properties with x and y mouse/touch point from the Canvas.