My Project
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ParaEngine::TouchSessions Class Reference

manages all global touch sessions. More...

#include <TouchSessions.h>

Public Member Functions

int GetSessionCount ()
 
TouchEventSessionoperator[] (int nIndex)
 get touch session by index. More...
 
TouchEventSessionGetTouchSession (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 TouchSessionsGetInstance ()
 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
 
CTouchGestureBaseactiveGesture
 current active gesture
 
std::vector< CTouchGestureBase * > gestures
 all registered gestures
 

Detailed Description

manages all global touch sessions.

Member Function Documentation

§ GetTouchSession()

TouchEventSession * ParaEngine::TouchSessions::GetTouchSession ( int  nTouchId)

get touch session by touch id.

§ InterpreteTouchGestures()

bool ParaEngine::TouchSessions::InterpreteTouchGestures ( const TouchEvent touch)

return true if at least one gesture is recognized.

Parameters
touchthe most recent touch event
Returns
true if active gesture is recognized.

§ operator[]()

TouchEventSession * ParaEngine::TouchSessions::operator[] ( int  nIndex)

get touch session by index.

Member Data Documentation

§ m_touch_sessions

std::map<int, TouchEventSession*> ParaEngine::TouchSessions::m_touch_sessions

mapping from touch id to touch session.


The documentation for this class was generated from the following files: