Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Generic implementation of ITouchActionHandler to translate touch actions into XBMC specific and mappable actions. More...
#include <GenericTouchActionHandler.h>
Public Member Functions | |
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. | |
int | QuerySupportedGestures (float x, float y) |
Asks the control at the given coordinates for a list of the supported gestures. | |
Public Member Functions inherited from ITouchActionHandler | |
virtual | ~ITouchActionHandler ()=default |
Static Public Member Functions | |
static CGenericTouchActionHandler & | GetInstance () |
Get an instance of the touch input manager. | |
Generic implementation of ITouchActionHandler to translate touch actions into XBMC specific and mappable actions.
|
static |
Get an instance of the touch input manager.
|
overridevirtual |
One or more touches have been held down for a certain amount of time.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
pointers | The number of pointers involved (default 1) |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
An additional touch has been performed.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
pointer | The pointer that has performed the touch |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
Multiple simultaneous touches have been held down for a certain amount of time.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
pointers | The number of pointers involved (default 2) |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
A touch has moved.
x | The x coordinate (with sub-pixel) of the current touch |
y | The y coordinate (with sub-pixel) of the current touch |
offsetX | The covered distance on the x axis (with sub-pixel) |
offsetX | The covered distance on the y axis (with sub-pixel) |
velocityX | The velocity of the gesture in x direction (pixels/second) |
velocityX | The velocity of the gesture in y direction (pixels/second) |
pointer | The pointer that has performed the touch |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
A touch has been lifted (but there are still active touches)
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
pointer | The pointer that has performed the touch |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
Two simultaneous touches have been held down and moved to perform a rotating gesture.
centerX | The x coordinate (with sub-pixel) of the center of the two touches |
centerY | The y coordinate (with sub-pixel) of the center of the two touches |
angle | The clockwise angle in degrees of the rotation |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
A single touch has been lifted.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
A single touch has been held down for a certain amount of time.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
A single touch has moved.
x | The x coordinate (with sub-pixel) of the current touch |
y | The y coordinate (with sub-pixel) of the current touch |
offsetX | The covered distance on the x axis (with sub-pixel) |
offsetX | The covered distance on the y axis (with sub-pixel) |
velocityX | The velocity of the gesture in x direction (pixels/second) |
velocityX | The velocity of the gesture in y direction (pixels/second) |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
A single touch has started.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
One or more touches has been moved quickly in a single direction in a short time.
direction | The direction (left, right, up, down) of the swipe gesture |
xDown | The x coordinate (with sub-pixel) of the first touch |
yDown | The y coordinate (with sub-pixel) of the first touch |
xUp | The x coordinate (with sub-pixel) of the last touch |
yUp | The y coordinate (with sub-pixel) of the last touch |
velocityX | The velocity of the gesture in x direction (pixels/second) |
velocityX | The velocity of the gesture in y direction (pixels/second) |
pointers | The number of pointers involved (default 1) |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
A tap with a one or more touches has been performed.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |
pointers | The number of pointers involved (default 1) |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
A touch action has been aborted.
Reimplemented from ITouchActionHandler.
|
overridevirtual |
A pan gesture with a single touch has ended.
x | The x coordinate (with sub-pixel) of the current touch |
y | The y coordinate (with sub-pixel) of the current touch |
offsetX | The covered distance on the x axis (with sub-pixel) |
offsetX | The covered distance on the y axis (with sub-pixel) |
velocityX | The velocity of the gesture in x direction (pixels/second) |
velocityX | The velocity of the gesture in y direction (pixels/second) |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
A pan gesture with a single touch is in progress.
x | The x coordinate (with sub-pixel) of the current touch |
y | The y coordinate (with sub-pixel) of the current touch |
offsetX | The covered distance on the x axis (with sub-pixel) |
offsetX | The covered distance on the y axis (with sub-pixel) |
velocityX | The velocity of the gesture in x direction (pixels/second) |
velocityX | The velocity of the gesture in y direction (pixels/second) |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
A pan gesture with a single touch has been started.
x | The x coordinate (with sub-pixel) of the initial touch |
y | The y coordinate (with sub-pixel) of the initial touch |
Reimplemented from ITouchActionHandler.
|
overridevirtual |
Two simultaneous touches have been held down and moved to perform a zooming/pinching gesture.
centerX | The x coordinate (with sub-pixel) of the center of the two touches |
centerY | The y coordinate (with sub-pixel) of the center of the two touches |
zoomFactor | The zoom (> 1.0) or pinch (< 1.0) factor of the two touches |
Reimplemented from ITouchActionHandler.
int CGenericTouchActionHandler::QuerySupportedGestures | ( | float | x, |
float | y ) |
Asks the control at the given coordinates for a list of the supported gestures.
x | The x coordinate (with sub-pixel) of the touch |
y | The y coordinate (with sub-pixel) of the touch |