|
static constexpr int | MAX_POINTERS = 2 |
|
Protected Member Functions inherited from ITouchInputHandling |
void | OnTouchAbort () override |
| A touch action has been aborted.
|
|
bool | OnSingleTouchStart (float x, float y) override |
| A single touch has started.
|
|
bool | OnSingleTouchHold (float x, float y) override |
| A single touch has been held down for a certain amount of time.
|
|
bool | OnSingleTouchMove (float x, float y, float offsetX, float offsetY, float velocityX, float velocityY) override |
| A single touch has moved.
|
|
bool | OnSingleTouchEnd (float x, float y) override |
| A single touch has been lifted.
|
|
bool | OnMultiTouchDown (float x, float y, int32_t pointer) override |
| An additional touch has been performed.
|
|
bool | OnMultiTouchHold (float x, float y, int32_t pointers=2) override |
| Multiple simultaneous touches have been held down for a certain amount of time.
|
|
bool | OnMultiTouchMove (float x, float y, float offsetX, float offsetY, float velocityX, float velocityY, int32_t pointer) override |
| A touch has moved.
|
|
bool | OnMultiTouchUp (float x, float y, int32_t pointer) override |
| A touch has been lifted (but there are still active touches)
|
|
bool | OnTouchGestureStart (float x, float y) override |
| A pan gesture with a single touch has been started.
|
|
bool | OnTouchGesturePan (float x, float y, float offsetX, float offsetY, float velocityX, float velocityY) override |
| A pan gesture with a single touch is in progress.
|
|
bool | OnTouchGestureEnd (float x, float y, float offsetX, float offsetY, float velocityX, float velocityY) override |
| A pan gesture with a single touch has ended.
|
|
void | OnTap (float x, float y, int32_t pointers=1) override |
| A tap with a one or more touches has been performed.
|
|
void | OnLongPress (float x, float y, int32_t pointers=1) override |
| One or more touches have been held down for a certain amount of time.
|
|
void | OnSwipe (TouchMoveDirection direction, float xDown, float yDown, float xUp, float yUp, float velocityX, float velocityY, int32_t pointers=1) override |
| One or more touches has been moved quickly in a single direction in a short time.
|
|
void | OnZoomPinch (float centerX, float centerY, float zoomFactor) override |
| Two simultaneous touches have been held down and moved to perform a zooming/pinching gesture.
|
|
void | OnRotate (float centerX, float centerY, float angle) override |
| Two simultaneous touches have been held down and moved to perform a rotating gesture.
|
|
Protected Member Functions inherited from ITouchActionHandler |
virtual | ~ITouchActionHandler ()=default |
|
bool | m_done = false |
| Whether the gesture recognition is finished or not.
|
|
float | m_dpi |
| DPI value of the touch screen.
|
|
std::array< Pointer, MAX_POINTERS > | m_pointers |
| Local list of all known touch pointers.
|
|
Implementation of IGenericTouchGestureDetector to detect swipe gestures in any direction.
- See also
- IGenericTouchGestureDetector