mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-25 04:28:30 +00:00
ADDED: GetTouchPointId(index)
#1972
This commit is contained in:
10
src/core.c
10
src/core.c
@@ -3575,6 +3575,16 @@ Vector2 GetTouchPosition(int index)
|
|||||||
return position;
|
return position;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get touch point identifier for given index
|
||||||
|
int GetTouchPointId(int index)
|
||||||
|
{
|
||||||
|
int id = -1;
|
||||||
|
|
||||||
|
if (index < MAX_TOUCH_POINTS) id = CORE.Input.Touch.pointId[index];
|
||||||
|
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
// Get number of touch points
|
// Get number of touch points
|
||||||
int GetTouchPointCount(void)
|
int GetTouchPointCount(void)
|
||||||
{
|
{
|
||||||
|
@@ -1105,8 +1105,10 @@ 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 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 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 Vector2 GetTouchPosition(int index); // Get touch position XY for a touch point index (relative to screen size)
|
||||||
|
RLAPI int GetTouchPointId(int index); // Get touch point identifier for given index
|
||||||
RLAPI int GetTouchPointCount(void); // Get number of touch points
|
RLAPI int GetTouchPointCount(void); // Get number of touch points
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
// Gestures and Touch Handling Functions (Module: gestures)
|
// Gestures and Touch Handling Functions (Module: gestures)
|
||||||
//------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user