14#ifndef fsIGestureHandlingComponenthdr
15#define fsIGestureHandlingComponenthdr
66 fsBool pHandlePinchEvents);
79 virtual fsBool acceptingInputGet()
const = 0;
80 virtual fsBool highlightSetDo() {
return false; }
82 virtual void onGestureCancel() {}
84 virtual void onTap(
const fsPoint& pStartPos) {}
85 virtual void onDragStart(
const fsPoint& pStartPos) {}
86 virtual void onDragMove(
const fsPoint& pCurrPos) {}
87 virtual void onDragEnd(
const fsPoint& pEndPos) {}
89 virtual void onPinchStart(
const fsPoint& pStartPosPointA,
const fsPoint& pStartPosPointB) {}
90 virtual void onPinchMove(
const fsPoint& pCurrPos,
const fsPoint& pDelta,
fsS32 pPointID) {}
91 virtual void onPinchEnd(
const fsPoint& pCurrPos,
const fsPoint& pDelta,
fsS32 pPointID) {}
93 fsBool dragMessageStolen(
const fsCUniqueId& pMessageType,
const fsIMessageDispatcher::sMessageParameters& pParam);
97 fsBool pointerDownProcess(
const fsIInputManager::sPointerMsgParam& pParam);
99 fsBool pointerUpProcess(
const fsPoint& pPos,
fsS32 pPtrIndex);
101 fsBool gestureStartProcess(
const fsIInputManager::sPointerMsgParam& pParam);
102 fsBool mouseMoveProcess(
const fsPoint& pPos);
104 void tapEndProcess(
const fsPoint& pPos);
105 void tapStartProcess(
const fsPoint& pPos,
fsS32 pPtrIndex);
106 void dragStartProcess(
const fsPoint& pPos,
fsS32 pPtrIndex);
107 void dragEndProcess(
const fsPoint& pPos,
fsS32 pPtrIndex);
108 void pinchEndProcess(
const fsPoint& pPos,
fsS32 pPtrIndex);
109 void pinchStartProcess(
const fsPoint& pPos,
fsS32 pPtrIndex);
113 static const fsS32 mDragDistanceThreshold = 16;
115 const fsBool mMousePointerType;
119 fsBool mHandlePinchEvents;
Definition fsCEntity.h:39
Definition fsCUniqueId.h:21
void gestureReset()
Definition fsIGestureHandlingComponent.cpp:13
fsBool messageProcessDo(const fsCUniqueId &pMessageType, const fsIMessageDispatcher::sMessageParameters &pParam) override
Definition fsIGestureHandlingComponent.cpp:108
@ eSTATE_IN_PINCH_GESTURE
Definition fsIGestureHandlingComponent.h:52
@ eSTATE_IN_TAP_GESTURE
Definition fsIGestureHandlingComponent.h:50
@ eSTATE_NOT_IN_GESTURE
Definition fsIGestureHandlingComponent.h:47
@ eSTATE_MOUSE_OVER
Definition fsIGestureHandlingComponent.h:48
@ eSTATE_IN_DRAG_GESTURE
Definition fsIGestureHandlingComponent.h:51
@ eSTATE_EVALUATING_GESTURE_TYPE
Definition fsIGestureHandlingComponent.h:49
@ eSTATE_WAITING_FOR_ALL_POINTS_TO_RELEASE
Definition fsIGestureHandlingComponent.h:54
fsBool mHighlighted
Definition fsIGestureHandlingComponent.h:74
void listenersDeregisterDo() override
Definition fsIGestureHandlingComponent.cpp:72
fsIGestureHandlingComponent(fsCEntity *pParent, fsBool pHandleTaps, fsBool pHandleDragEvent, fsBool pHandlePinchEvents)
Definition fsIGestureHandlingComponent.cpp:521
~fsIGestureHandlingComponent() override
Definition fsIGestureHandlingComponent.cpp:535
fsBool hitTest(const fsPoint &pPos) const
Definition fsIGestureHandlingComponent.cpp:516
std::vector< sGesturePoint > mGesturePoints
Definition fsIGestureHandlingComponent.h:69
fsS32 mGestureState
Definition fsIGestureHandlingComponent.h:71
fsS32 mNumPointsDown
Definition fsIGestureHandlingComponent.h:72
void gestureTypesSet(fsBool pHandleTaps, fsBool pHandleDragEvent, fsBool pHandlePinchEvents)
Definition fsIGestureHandlingComponent.cpp:63
void listenersRegisterDo() override
Definition fsIGestureHandlingComponent.cpp:81
fsIMessageListenerComponent(fsCEntity *pParent)
Definition fsIMessageListenerComponent.cpp:9
bool fsBool
Definition fsBaseTypes.h:26
int fsS32
Definition fsBaseTypes.h:20
fsPoint mPrevPos
Definition fsIGestureHandlingComponent.h:40
fsBool mInGesture
Definition fsIGestureHandlingComponent.h:41
fsBool mCounted
Definition fsIGestureHandlingComponent.h:42
sGesturePoint()
Definition fsIGestureHandlingComponent.h:36
Definition fsIMessageDispatcher.h:32