Touch
Class
Module: cc
The touch event class
Index
Methods
getLocation
Returns the current touch location in OpenGL coordinates.、getLocationX
Returns X axis location value.getLocationY
Returns Y axis location value.getPreviousLocation
Returns the previous touch location in OpenGL coordinates.getStartLocation
Returns the start touch location in OpenGL coordinates.getDelta
Returns the delta distance from the previous touche to the current one in screen coordinates.getLocationInView
Returns the current touch location in screen coordinates.getPreviousLocationInView
Returns the previous touch location in screen coordinates.getStartLocationInView
Returns the start touch location in screen coordinates.getID
Returns the id of cc.Touch.setTouchInfo
Sets information to touch.
Details
Methods
getLocation
Returns the current touch location in OpenGL coordinates.、
meta | description |
---|---|
Returns | Vec2 |
Defined in | cocos2d/core/event-manager/CCTouch.js:45 |
getLocationX
Returns X axis location value.
meta | description |
---|---|
Returns | Number |
Defined in | cocos2d/core/event-manager/CCTouch.js:55 |
getLocationY
Returns Y axis location value.
meta | description |
---|---|
Returns | Number |
Defined in | cocos2d/core/event-manager/CCTouch.js:65 |
getPreviousLocation
Returns the previous touch location in OpenGL coordinates.
meta | description |
---|---|
Returns | Vec2 |
Defined in | cocos2d/core/event-manager/CCTouch.js:75 |
getStartLocation
Returns the start touch location in OpenGL coordinates.
meta | description |
---|---|
Returns | Vec2 |
Defined in | cocos2d/core/event-manager/CCTouch.js:85 |
getDelta
Returns the delta distance from the previous touche to the current one in screen coordinates.
meta | description |
---|---|
Returns | Vec2 |
Defined in | cocos2d/core/event-manager/CCTouch.js:95 |
getLocationInView
Returns the current touch location in screen coordinates.
meta | description |
---|---|
Returns | Vec2 |
Defined in | cocos2d/core/event-manager/CCTouch.js:105 |
getPreviousLocationInView
Returns the previous touch location in screen coordinates.
meta | description |
---|---|
Returns | Vec2 |
Defined in | cocos2d/core/event-manager/CCTouch.js:115 |
getStartLocationInView
Returns the start touch location in screen coordinates.
meta | description |
---|---|
Returns | Vec2 |
Defined in | cocos2d/core/event-manager/CCTouch.js:125 |
getID
Returns the id of cc.Touch.
meta | description |
---|---|
Returns | Number |
Defined in | cocos2d/core/event-manager/CCTouch.js:135 |
setTouchInfo
Sets information to touch.
meta | description |
---|---|
Defined in | cocos2d/core/event-manager/CCTouch.js:145 |