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

it tracks touch events with same id, and expires when a touch is too long. More...

#include <TouchEventSession.h>

Public Member Functions

 TouchEventSession (const TouchEvent &startEvent)
 
TouchEventGetStartEvent ()
 
TouchEventGetPrevEvent ()
 
TouchEventGetCurrentEvent ()
 
void SetStartEvent (const TouchEvent &event)
 
void SetCurrentEvent (const TouchEvent &event)
 
bool IsExpired (int nCurTime, int nExpireTicks)
 
Vector2 GetOffsetFromStartLocation ()
 
Vector2 GetOffsetFromPrevLocation ()
 
float GetMaxDragDistance ()
 
bool IsTouchClick ()
 
bool IsRightClick ()
 
bool IsEnd ()
 
int GetTouchId ()
 
int32 GetDuration ()
 time in ms, from the start touch event to current time. More...
 
int32 GetTag () const
 
void SetTag (int32 val)
 

Static Public Member Functions

static int32 GetFingerSize ()
 
static int32 GetTouchDistanceBetween (TouchEvent *touch1, TouchEvent *touch2)
 

Public Attributes

TouchEvent m_start_event
 
TouchEvent m_previous_event
 
TouchEvent m_current_event
 
float m_max_delta
 
int32 m_tag
 

Detailed Description

it tracks touch events with same id, and expires when a touch is too long.

Member Function Documentation

§ GetDuration()

int32 ParaEngine::TouchEventSession::GetDuration ( )

time in ms, from the start touch event to current time.


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