1 #ifndef Rag_TouchEvent_h
2 #define Rag_TouchEvent_h
11 static const std::string TOUCH_BEGIN =
"TouchBegin";
12 static const std::string TOUCH_END =
"TouchEnd";
13 static const std::string TOUCH_MOVE =
"TouchMove";
14 static const std::string TOUCH_OUT =
"TouchOut";
15 static const std::string TOUCH_OVER =
"TouchOver";
16 static const std::string TOUCH_TAP =
"TouchTap";
17 static const std::string TOUCH_PINCH =
"TouchPinch";
47 std::ostringstream oss;
48 oss <<
"(type= " << type.c_str() <<
", lx=" << localX <<
", ly=" << localY <<
", sx=" << stageX <<
", sy=" << stageY <<
")";
virtual std::string toString()
string representing the event.
Definition: TouchEvent.h:45
Base class for event system.
Definition: Event.h:24
Event(std::string type)
Creates a new event of the given type.
Definition: Event.h:30
std::string type
The type of the event. The string should be unique for this event.
Definition: Event.h:36
Event for handle input from screen.
Definition: TouchEvent.h:20