|
My Project
|
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) | |
| TouchEvent & | GetStartEvent () |
| TouchEvent & | GetPrevEvent () |
| TouchEvent & | GetCurrentEvent () |
| 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 |
it tracks touch events with same id, and expires when a touch is too long.
| int32 ParaEngine::TouchEventSession::GetDuration | ( | ) |
time in ms, from the start touch event to current time.
1.8.12