From a613825c6fa56329a48b3a0fc065ad155ab7c61b Mon Sep 17 00:00:00 2001 From: ubkp <118854183+ubkp@users.noreply.github.com> Date: Thu, 7 Dec 2023 00:15:33 -0300 Subject: [PATCH] Fix IsMouseButtonUp() for PLATFORM_WEB --- src/platforms/rcore_web.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platforms/rcore_web.c b/src/platforms/rcore_web.c index 4353f795c..ae210853b 100644 --- a/src/platforms/rcore_web.c +++ b/src/platforms/rcore_web.c @@ -1093,6 +1093,7 @@ static void MouseButtonCallback(GLFWwindow *window, int button, int action, int // WARNING: GLFW could only return GLFW_PRESS (1) or GLFW_RELEASE (0) for now, // but future releases may add more actions (i.e. GLFW_REPEAT) CORE.Input.Mouse.currentButtonState[button] = action; + CORE.Input.Touch.currentTouchState[button] = action; #if defined(SUPPORT_GESTURES_SYSTEM) && defined(SUPPORT_MOUSE_GESTURES) // Process mouse events as touches to be able to use mouse-gestures