Class cc.Touch
- Defined in: CCTouchDelegateProtocol.js
- Extends cc.Class
Constructor Attributes | Constructor Name and Description |
---|---|
cc.Touch()
|
Method Summary
Class Detail
cc.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