A class representing a touch pointer interaction consisting of an down touch, the last touch and the current touch.
More...
#include <TouchTypes.h>
|
| Pointer () |
|
void | reset () |
| Resets the pointer and all its touches.
|
|
bool | valid () const |
| Checks if the "down" touch is valid.
|
|
bool | velocity (float &velocityX, float &velocityY, bool fromLast=true) const |
| Calculates the velocity in x/y direction using the "down" and either the "last" or "current" touch.
|
|
A class representing a touch pointer interaction consisting of an down touch, the last touch and the current touch.
◆ Pointer()
◆ reset()
Resets the pointer and all its touches.
◆ valid()
bool Pointer::valid |
( |
| ) |
const |
|
inline |
Checks if the "down" touch is valid.
- Returns
- True if the "down" touch is valid otherwise false
◆ velocity()
bool Pointer::velocity |
( |
float & | velocityX, |
|
|
float & | velocityY, |
|
|
bool | fromLast = true ) const |
|
inline |
Calculates the velocity in x/y direction using the "down" and either the "last" or "current" touch.
- Parameters
-
velocityX | Placeholder for velocity in x direction |
velocityY | Placeholder for velocity in y direction |
fromLast | Whether to calculate the velocity with the "last" or the "current" touch |
- Returns
- True if the velocity is valid otherwise false
◆ current
◆ down
◆ last
◆ moving
◆ size
The documentation for this class was generated from the following file: