2012-02-02 14:26:38 +08:00
|
|
|
|
|
|
|
enum {
|
|
|
|
CCTOUCHBEGAN,
|
|
|
|
CCTOUCHMOVED,
|
|
|
|
CCTOUCHENDED,
|
|
|
|
CCTOUCHCANCELLED,
|
|
|
|
};
|
2011-06-14 14:31:25 +08:00
|
|
|
|
|
|
|
class CCTouch : public CCObject
|
|
|
|
{
|
2012-08-10 18:14:04 +08:00
|
|
|
CCPoint getLocation() const;
|
|
|
|
CCPoint getPreviousLocation() const;
|
|
|
|
CCPoint getDelta() const;
|
|
|
|
CCPoint getLocationInView() const;
|
|
|
|
CCPoint getPreviousLocationInView() const;
|
|
|
|
|
|
|
|
void setTouchInfo(int id, float x, float y);
|
2012-04-26 09:34:42 +08:00
|
|
|
int getID();
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class CCEvent : public CCObject
|
|
|
|
{
|
|
|
|
};
|