From c92f54a736739f82a6cfccff8453a4dc01146255 Mon Sep 17 00:00:00 2001 From: Le Juez Victor <90587919+Bigfoot71@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:49:20 +0200 Subject: [PATCH] Normalize `gestureEvent.position` coordinates Fixed the fact that coordinates were not normalized on Android, preventing detection of `GESTURE_DOUBLE_TAP` --- src/rcore_android.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rcore_android.c b/src/rcore_android.c index 5f6f34bab..cbe650258 100644 --- a/src/rcore_android.c +++ b/src/rcore_android.c @@ -1152,6 +1152,8 @@ static int32_t AndroidInputCallback(struct android_app *app, AInputEvent *event) { gestureEvent.pointId[i] = CORE.Input.Touch.pointId[i]; gestureEvent.position[i] = CORE.Input.Touch.position[i]; + gestureEvent.position[i].x /= (float)GetScreenWidth(); + gestureEvent.position[i].y /= (float)GetScreenHeight(); } // Gesture data is sent to gestures system for processing