diff options
| author | Ray <[email protected]> | 2021-09-10 15:19:12 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-09-10 15:19:12 +0200 |
| commit | 803094f41f887c43852a09870d8d0e05ee5f687f (patch) | |
| tree | d8aca4b26367f00f9e4a9a18732a5fa3d389420f /src/raylib.h | |
| parent | 2c13e43c3224e8f5ff4ed0e254863a6e2a1f4f35 (diff) | |
| download | raylib-803094f41f887c43852a09870d8d0e05ee5f687f.tar.gz raylib-803094f41f887c43852a09870d8d0e05ee5f687f.zip | |
REVIEWED: Touch input system #1975 #1960
- ADDED: `GetTouchPointCount()` to core module, removed from gestures module.
- Support multiple touch points: `MAX_TOUCH_POINTS`.
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index 9e46e842..839075b3 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1104,6 +1104,7 @@ RLAPI void SetMouseCursor(int cursor); // Set mouse curso RLAPI int GetTouchX(void); // Get touch position X for touch point 0 (relative to screen size) RLAPI int GetTouchY(void); // Get touch position Y for touch point 0 (relative to screen size) RLAPI Vector2 GetTouchPosition(int index); // Get touch position XY for a touch point index (relative to screen size) +RLAPI int GetTouchPointCount(void); // Get number of touch points //------------------------------------------------------------------------------------ // Gestures and Touch Handling Functions (Module: gestures) @@ -1111,7 +1112,6 @@ RLAPI Vector2 GetTouchPosition(int index); // Get touch posit RLAPI void SetGesturesEnabled(unsigned int flags); // Enable a set of gestures using flags RLAPI bool IsGestureDetected(int gesture); // Check if a gesture have been detected RLAPI int GetGestureDetected(void); // Get latest detected gesture -RLAPI int GetTouchPointCount(void); // Get touch points count RLAPI float GetGestureHoldDuration(void); // Get gesture hold time in milliseconds RLAPI Vector2 GetGestureDragVector(void); // Get gesture drag vector RLAPI float GetGestureDragAngle(void); // Get gesture drag angle |
