cocos2d-x  2.1.1

#include <CCTouch.h>

Inheritance diagram for CCTouch:
CCObject CCCopying

Public Member Functions

 CCTouch ()
 
CCPoint getLocation () const
 returns the current touch location in OpenGL coordinates
 
CCPoint getPreviousLocation () const
 returns the previous touch location in OpenGL coordinates
 
CCPoint getDelta () const
 returns the delta of 2 current touches locations in screen coordinates
 
CCPoint getLocationInView () const
 returns the current touch location in screen coordinates
 
CCPoint getPreviousLocationInView () const
 returns the previous touch location in screen coordinates
 
void setTouchInfo (int id, float x, float y)
 
int getID () const
 
- Public Member Functions inherited from CCObject
 CCObject (void)
 
virtual ~CCObject (void)
 
void release (void)
 
void retain (void)
 
CCObjectautorelease (void)
 
CCObjectcopy (void)
 
bool isSingleReference (void)
 
unsigned int retainCount (void)
 
virtual bool isEqual (const CCObject *pObject)
 
virtual void update (float dt)
 
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)
 

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
 
int m_nLuaID
 
- Protected Attributes inherited from CCObject
unsigned int m_uReference
 
unsigned int m_uAutoReleaseCount
 

Constructor & Destructor Documentation

CCTouch ( )
inline

Member Function Documentation

CCPoint getDelta ( ) const

returns the delta of 2 current touches locations in screen coordinates

int getID ( ) const
inline
CCPoint getLocation ( ) const

returns the current touch location in OpenGL coordinates

CCPoint getLocationInView ( ) const

returns the current touch location in screen coordinates

CCPoint getPreviousLocation ( ) const

returns the previous touch location in OpenGL coordinates

CCPoint getPreviousLocationInView ( ) const

returns the previous touch location in screen coordinates

void setTouchInfo ( int  id,
float  x,
float  y 
)
inline

The documentation for this class was generated from the following file:
  • /Users/zhangkoumyou/SourceCode/cocos2d-x/cocos2dx/touch_dispatcher/CCTouch.h