Skip to content

Commit 8b33d1e

Browse files
authored
Fix IsMouseButtonUp() (#3609)
1 parent 6b93180 commit 8b33d1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/platforms/rcore_desktop.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,8 @@ static void MouseButtonCallback(GLFWwindow *window, int button, int action, int
17391739
// WARNING: GLFW could only return GLFW_PRESS (1) or GLFW_RELEASE (0) for now,
17401740
// but future releases may add more actions (i.e. GLFW_REPEAT)
17411741
CORE.Input.Mouse.currentButtonState[button] = action;
1742-
1742+
CORE.Input.Touch.currentTouchState[button] = action;
1743+
17431744
#if defined(SUPPORT_GESTURES_SYSTEM) && defined(SUPPORT_MOUSE_GESTURES)
17441745
// Process mouse events as touches to be able to use mouse-gestures
17451746
GestureEvent gestureEvent = { 0 };

0 commit comments

Comments
 (0)