Helper class for Input-related functions: touch.
More...
#include <TouchHelper.hpp>
Helper class for Input-related functions: touch.
◆ getGestureDetected()
| int raylib::helper::input::TouchHelper::getGestureDetected |
( |
| ) |
|
|
static |
Get latest detected gesture.
- Returns
- touch gesture
◆ getGestureDragAngle()
| float raylib::helper::input::TouchHelper::getGestureDragAngle |
( |
| ) |
|
|
static |
Get gesture drag angle in degrees.
- Returns
- touch gesture drag angle
◆ getGestureDragVector()
| Vector2f raylib::helper::input::TouchHelper::getGestureDragVector |
( |
| ) |
|
|
static |
Get gesture drag vector.
- Returns
- touch gesture drag vector
◆ getGestureHoldDuration()
| float raylib::helper::input::TouchHelper::getGestureHoldDuration |
( |
| ) |
|
|
static |
Get gesture hold time in milliseconds.
- Returns
- touch gesture hold time in milliseconds
◆ getGesturePinchAngle()
| float raylib::helper::input::TouchHelper::getGesturePinchAngle |
( |
| ) |
|
|
static |
Get gesture pinch angle.
- Returns
- touch gesture pinch angle
◆ getGesturePinchVector()
| Vector2f raylib::helper::input::TouchHelper::getGesturePinchVector |
( |
| ) |
|
|
static |
Get gesture pinch delta.
- Returns
- touch gesture pinch delta
◆ getTouchPointCount()
| int raylib::helper::input::TouchHelper::getTouchPointCount |
( |
| ) |
|
|
static |
Get number of touch points.
- Returns
- touch point _count
◆ getTouchPointId()
| int raylib::helper::input::TouchHelper::getTouchPointId |
( |
const int & |
index | ) |
|
|
static |
Get touch point identifier for given index.
- Parameters
-
- Returns
- touch point identifier
◆ getTouchPosition()
| Vector2f raylib::helper::input::TouchHelper::getTouchPosition |
( |
const int & |
index | ) |
|
|
static |
Get touch position XY for a touch point index (relative to screen size)
- Parameters
-
- Returns
- touch position XY
◆ getTouchX()
| int raylib::helper::input::TouchHelper::getTouchX |
( |
| ) |
|
|
static |
Get touch position X for touch point 0 (relative to screen size)
- Returns
- touch position X
◆ getTouchY()
| int raylib::helper::input::TouchHelper::getTouchY |
( |
| ) |
|
|
static |
Get touch position Y for touch point 0 (relative to screen size)
- Returns
- touch position Y
◆ isGestureDetected()
| bool raylib::helper::input::TouchHelper::isGestureDetected |
( |
const int & |
gesture | ) |
|
|
static |
Check if a gesture have been detected.
- Parameters
-
- Returns
- true if gesture have been detected
◆ setGesturesEnabled()
| void raylib::helper::input::TouchHelper::setGesturesEnabled |
( |
const unsigned int & |
flags | ) |
|
|
static |
Enable a set of gestures using flags.
- Parameters
-
The documentation for this class was generated from the following files: