cocos2d-x
2.2.3-gd2.113-rev1ec524e
|
#include <CCTouch.h>
Public Member Functions | |
CCTouch () | |
ctor More... | |
CCPoint | getLocation () const |
returns the current touch location in OpenGL coordinates More... | |
CCPoint | getPreviousLocation () const |
returns the previous touch location in OpenGL coordinates More... | |
CCPoint | getStartLocation () const |
returns the start touch location in OpenGL coordinates More... | |
CCPoint | getDelta () const |
returns the delta of 2 current touches locations in screen coordinates More... | |
CCPoint | getLocationInView () const |
returns the current touch location in screen coordinates More... | |
CCPoint | getPreviousLocationInView () const |
returns the previous touch location in screen coordinates More... | |
CCPoint | getStartLocationInView () const |
returns the start touch location in screen coordinates More... | |
void | setTouchInfo (int id, float x, float y) |
int | getID () const |
getId More... | |
![]() | |
CCObject (void) | |
virtual | ~CCObject (void) |
NA. More... | |
void | release (void) |
void | retain (void) |
CCObject * | autorelease (void) |
CCObject * | copy (void) |
bool | isSingleReference (void) const |
unsigned int | retainCount (void) const |
virtual bool | isEqual (const CCObject *pObject) |
virtual void | acceptVisitor (CCDataVisitor &visitor) |
virtual void | update (float dt) |
CCObject (const CCObject &) | |
CCObject & | operator= (const CCObject &) |
virtual void | encodeWithCoder (DS_Dictionary *) |
virtual bool | canEncode () |
CCObjectType | getObjType () const |
virtual int | getTag () const |
virtual void | setTag (int nTag) |
void | setObjType (CCObjectType) |
![]() | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Additional Inherited Members | |
![]() | |
static CCObject * | createWithCoder (DS_Dictionary *) |
![]() | |
unsigned int | m_uID |
int | m_nLuaID |
![]() | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
int | m_nTag |
int | m_eObjType |
unsigned int | m_uObjectIdxInArray |
|
inline |
ctor
CCPoint getDelta | ( | ) | const |
returns the delta of 2 current touches locations in screen coordinates
|
inline |
getId
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
CCPoint getStartLocation | ( | ) | const |
returns the start touch location in OpenGL coordinates
CCPoint getStartLocationInView | ( | ) | const |
returns the start touch location in screen coordinates
|
inline |