Touch Class

Module: cc

The touch event class

Index

Methods

Details

Methods

getLocation

Returns the current touch location in OpenGL coordinates.、

meta description
Returns Vec2
Defined in cocos2d/core/event-manager/CCTouch.js:46
getLocationX

Returns X axis location value.

meta description
Returns Number
Defined in cocos2d/core/event-manager/CCTouch.js:58
getLocationY

Returns Y axis location value.

meta description
Returns Number
Defined in cocos2d/core/event-manager/CCTouch.js:68
getPreviousLocation

Returns the previous touch location in OpenGL coordinates.

meta description
Returns Vec2
Defined in cocos2d/core/event-manager/CCTouch.js:78
getStartLocation

Returns the start touch location in OpenGL coordinates.

meta description
Returns Vec2
Defined in cocos2d/core/event-manager/CCTouch.js:90
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:102
getLocationInView

Returns the current touch location in screen coordinates.

meta description
Returns Vec2
Defined in cocos2d/core/event-manager/CCTouch.js:112
getPreviousLocationInView

Returns the previous touch location in screen coordinates.

meta description
Returns Vec2
Defined in cocos2d/core/event-manager/CCTouch.js:122
getStartLocationInView

Returns the start touch location in screen coordinates.

meta description
Returns Vec2
Defined in cocos2d/core/event-manager/CCTouch.js:132
getID

Returns the id of cc.Touch.

meta description
Returns Number
Defined in cocos2d/core/event-manager/CCTouch.js:142
setTouchInfo

Sets information to touch.

meta description
Defined in cocos2d/core/event-manager/CCTouch.js:152
Parameters

results matching ""

    No results matching ""