diff options
| author | Ray <[email protected]> | 2023-09-18 11:50:37 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-09-18 11:50:37 +0200 |
| commit | b9acbbbc66abfa7ffb26ece2f3c860743693f6a6 (patch) | |
| tree | f1765ef05e9c8a033048ffcc2c72973a28c1a5a8 | |
| parent | 421ae5bbd8da0e52b32b943232def3c291145338 (diff) | |
| download | raylib-b9acbbbc66abfa7ffb26ece2f3c860743693f6a6.tar.gz raylib-b9acbbbc66abfa7ffb26ece2f3c860743693f6a6.zip | |
Fix #3323
| -rw-r--r-- | src/rcore.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rcore.c b/src/rcore.c index 0d3c6e12..cba3bbc1 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -6966,10 +6966,10 @@ static void *EventThread(void *arg) // Update touch point count CORE.Input.Touch.pointCount = 0; - if (CORE.Input.Touch.position[0].x >= 0) CORE.Input.Touch.pointCount++; - if (CORE.Input.Touch.position[1].x >= 0) CORE.Input.Touch.pointCount++; - if (CORE.Input.Touch.position[2].x >= 0) CORE.Input.Touch.pointCount++; - if (CORE.Input.Touch.position[3].x >= 0) CORE.Input.Touch.pointCount++; + for (int i = 0; i < MAX_TOUCH_POINTS; i++) + { + if (CORE.Input.Touch.position[i].x >= 0) CORE.Input.Touch.pointCount++; + } #if defined(SUPPORT_GESTURES_SYSTEM) // PLATFORM_DRM if (gestureUpdate) |
