Class cc.Touch
Extends
cc.Class.
Defined in: CCTouchDelegateProtocol.js.
Constructor Attributes | Constructor Name and Description |
---|---|
cc.Touch()
|
Method Attributes | Method Name and Description |
---|---|
ctor(x, y, id)
Constructor
|
|
getDelta()
|
|
getId()
|
|
getID()
|
|
get point of touch
|
|
setTouchInfo(id, x, y)
set information to touch
|
Method Detail
ctor(x, y, id)
Constructor
- Parameters:
- x
- y
- id
{cc.Point}
getDelta()
- Returns:
- {cc.Point}
{Number}
getId()
- Returns:
- {Number}
{Number}
getID()
- Returns:
- {Number}
{cc.Point}
getLocation()
get point of touch
- Returns:
- {cc.Point}
{cc.Point}
getPreviousLocation()
- Returns:
- {cc.Point}
setTouchInfo(id, x, y)
set information to touch
- Parameters:
- {Number} id
- {Number} x
- {Number} y