[rcore][android] Fix GESTURE_NONE not being reported when touch points are released (#5010)

The gesture system was not handling the case when all touch points are released (pointCount == 0), causing GESTURE_NONE to never be reported on Android.

This adds an else if block in ProcessGestureEvent() to handle pointCount == 0 and properly reset the gesture state to GESTURE_NONE.

Fixes issue #5010 where GetGestureDetected() would not return GESTURE_NONE after all touch points were released.
This commit is contained in:
duvvuvenkataramana 2025-11-24 16:21:50 +05:30 committed by GitHub
parent 7e3d6cbfa8
commit 8bc889380a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -401,6 +401,10 @@ void ProcessGestureEvent(GestureEvent event)
GESTURES.current = GESTURE_NONE;
}
}
else if (GESTURES.Touch.pointCount == 0) // No touch points
{
GESTURES.current = GESTURE_NONE;
}
else if (GESTURES.Touch.pointCount > 2) // More than two touch points
{