diff options
| author | raysan5 <[email protected]> | 2021-09-21 15:11:33 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2021-09-21 15:11:33 +0200 |
| commit | c96de3a23a616030c787daf8df3593ae0f8a7aaf (patch) | |
| tree | f93da5ab18dd6a183d792c365365595b1e84f3de /src/core.c | |
| parent | 1627f3403257d81615bbc20a48d8aecd31b49ef1 (diff) | |
| download | raylib-c96de3a23a616030c787daf8df3593ae0f8a7aaf.tar.gz raylib-c96de3a23a616030c787daf8df3593ae0f8a7aaf.zip | |
ADDED: `GetTouchPointId(index)` #1972
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -3575,6 +3575,16 @@ Vector2 GetTouchPosition(int index) 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 int GetTouchPointCount(void) { |
