[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:
parent
7e3d6cbfa8
commit
8bc889380a
|
|
@ -402,6 +402,10 @@ void ProcessGestureEvent(GestureEvent event)
|
||||||
GESTURES.current = GESTURE_NONE;
|
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
|
else if (GESTURES.Touch.pointCount > 2) // More than two touch points
|
||||||
{
|
{
|
||||||
// TODO: Process gesture events for more than two points
|
// TODO: Process gesture events for more than two points
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user