10#ifndef __GUIGESTUREDETECTOR_H__
11#define __GUIGESTUREDETECTOR_H__
17#define MAX_ACTIVE_POINTERS 3
37 const eC_Value& vSpan,
38 const eC_Value& vSpanX,
39 const eC_Value& vSpanY,
40 const eC_UInt& uiModifiers = 0) :
146 const eC_Bool& bIsActive,
147 const eC_Bool& bIsPrimary,
148 const eC_UInt& uiPointerID,
174#ifdef GUILIANI_GESTURES_ACTIVE
181 static eC_Bool UpdatePointer(
184 eC_Int& iPointerIndex);
188 static void ClearPointers();
191 static void UpdateScroll();
192 static void UpdateScale();
193 static void UpdateRotation();
196 static eC_UInt ms_uiActivePointers;
199 static eC_Int ms_iSkipIndex;
204 static eC_Value ms_vCurrentSpanX;
205 static eC_Value ms_vCurrentSpanY;
206 static eC_Value ms_vCurrentSpan;
207 static eC_Value ms_vPreviousSpan;
209 static eC_Value ms_vAverageDeviationX;
210 static eC_Value ms_vAverageDeviationY;
211 static eC_Value ms_vCurrentScrollX;
212 static eC_Value ms_vCurrentScrollY;
214 static eC_Value ms_vCurrentAngle;
216 static eC_Int ms_iDownX;
217 static eC_Int ms_iDownY;
EventType_t
List of event type ids.
Definition: GUIEventTypeResource.h:65
Base class for Guiliani Events.
Definition: GUIEvent.h:26
Definition: GUIGestureDetector.h:100
static CGUIEvent * ProcessEvent(const GestureEventType_t &eType, const PointerState_t &kPointerState)
GestureType_t
Definition: GUIGestureDetector.h:116
@ GT_SCROLL
scrolling
Definition: GUIGestureDetector.h:119
@ GT_SCALE
scaling
Definition: GUIGestureDetector.h:118
@ GT_NONE
none detected
Definition: GUIGestureDetector.h:117
@ GT_ROTATE
rotation
Definition: GUIGestureDetector.h:120
GestureEventType_t
Definition: GUIGestureDetector.h:105
@ GET_MOVE
move of pointer
Definition: GUIGestureDetector.h:110
@ GET_PRIMARY_UP
primary pointer up
Definition: GUIGestureDetector.h:107
@ GET_PRIMARY_DOWN
primary pointer down
Definition: GUIGestureDetector.h:106
@ GET_ADDITIONAL_DOWN
additional pointer down
Definition: GUIGestureDetector.h:108
@ GET_ADDITIONAL_UP
additional pointer up
Definition: GUIGestureDetector.h:109
Definition: GUIGestureDetector.h:22
eC_Value GetSpan() const
Definition: GUIGestureDetector.h:69
eC_Value GetSpanX() const
Definition: GUIGestureDetector.h:77
eC_Int GetX() const
Definition: GUIGestureDetector.h:53
eC_Int GetY() const
Definition: GUIGestureDetector.h:61
CGUIGestureEvent(const EventType_t &eType, const eC_Int &iX, const eC_Int &iY, const eC_Value &vSpan, const eC_Value &vSpanX, const eC_Value &vSpanY, const eC_UInt &uiModifiers=0)
Definition: GUIGestureDetector.h:33
eC_Value GetSpanY() const
Definition: GUIGestureDetector.h:85
CGUIPoint class to hold two values (x, y) like a vector.
Definition: GUIPoint.h:18
Definition: GUIGestureDetector.h:126
PointerState_t()
Definition: GUIGestureDetector.h:129
eC_Bool m_bIsActive
active-flag
Definition: GUIGestureDetector.h:159
eC_Int m_iY
y-position
Definition: GUIGestureDetector.h:163
eC_UInt m_uiPointerID
pointer-id
Definition: GUIGestureDetector.h:161
PointerState_t(const eC_Bool &bIsActive, const eC_Bool &bIsPrimary, const eC_UInt &uiPointerID, const eC_Int &iX, const eC_Int &iY)
Definition: GUIGestureDetector.h:145
eC_Int m_iX
x-position
Definition: GUIGestureDetector.h:162
eC_Bool m_bIsPrimary
true if primary
Definition: GUIGestureDetector.h:160