My Project
|
manages all global touch sessions. More...
#include <TouchSessions.h>
Public Member Functions | |
int | GetSessionCount () |
TouchEventSession * | operator[] (int nIndex) |
get touch session by index. More... | |
TouchEventSession * | GetTouchSession (int nTouchId) |
get touch session by touch id. More... | |
void | AddToTouchSession (const TouchEvent &touch) |
void | ClearTouchSessions () |
void | TickTouchSessions () |
bool | InterpreteTouchGestures (const TouchEvent *touch) |
return true if at least one gesture is recognized. More... | |
void | RegisterGestureRecognizer (CTouchGestureBase *gesture) |
void | CleanupAllGestures () |
Static Public Member Functions | |
static TouchSessions & | GetInstance () |
singleton object | |
Public Attributes | |
std::map< int, TouchEventSession * > | m_touch_sessions |
mapping from touch id to touch session. More... | |
std::vector< TouchEventSession * > | m_touch_arrays |
CTouchGestureBase * | activeGesture |
current active gesture | |
std::vector< CTouchGestureBase * > | gestures |
all registered gestures | |
manages all global touch sessions.
TouchEventSession * ParaEngine::TouchSessions::GetTouchSession | ( | int | nTouchId | ) |
get touch session by touch id.
bool ParaEngine::TouchSessions::InterpreteTouchGestures | ( | const TouchEvent * | touch | ) |
return true if at least one gesture is recognized.
touch | the most recent touch event |
TouchEventSession * ParaEngine::TouchSessions::operator[] | ( | int | nIndex | ) |
get touch session by index.
std::map<int, TouchEventSession*> ParaEngine::TouchSessions::m_touch_sessions |
mapping from touch id to touch session.