5 class TouchEventSession;
6 class CTouchGestureBase;
20 int GetSessionCount();
28 void AddToTouchSession(
const TouchEvent &touch);
30 void ClearTouchSessions();
32 void TickTouchSessions();
42 void CleanupAllGestures();
46 std::vector<TouchEventSession*> m_touch_arrays;
Definition: TouchGestureBase.h:8
static TouchSessions & GetInstance()
singleton object
Definition: TouchSessions.cpp:26
different physics engine has different winding order.
Definition: EventBinding.h:32
TouchEventSession * operator[](int nIndex)
get touch session by index.
Definition: TouchSessions.cpp:46
it tracks touch events with same id, and expires when a touch is too long.
Definition: TouchEventSession.h:7
touch event
Definition: EventClasses.h:118
CTouchGestureBase * activeGesture
current active gesture
Definition: TouchSessions.h:48
std::map< int, TouchEventSession * > m_touch_sessions
mapping from touch id to touch session.
Definition: TouchSessions.h:45
bool InterpreteTouchGestures(const TouchEvent *touch)
return true if at least one gesture is recognized.
Definition: TouchSessions.cpp:137
TouchEventSession * GetTouchSession(int nTouchId)
get touch session by touch id.
Definition: TouchSessions.cpp:51
manages all global touch sessions.
Definition: TouchSessions.h:11
std::vector< CTouchGestureBase * > gestures
all registered gestures
Definition: TouchSessions.h:50