|
cocos2d-x
2.1.1
|
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCTouch Class Reference
#include <CCTouch.h>
Inheritance diagram for CCTouch:
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) |
| CCObject * | autorelease (void) |
| CCObject * | copy (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 CCObject * | copyWithZone (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
|
inline |
Member Function Documentation
| CCPoint getDelta | ( | ) | const |
returns the delta of 2 current touches locations in screen coordinates
|
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
|
inline |
The documentation for this class was generated from the following file:
- /Users/zhangkoumyou/SourceCode/cocos2d-x/cocos2dx/touch_dispatcher/CCTouch.h

Public Member Functions inherited from 