Skip to content

Commit

Permalink
Fix IsMouseButtonUp() (#3609)
Browse files Browse the repository at this point in the history
Minmoose authored Dec 7, 2023
1 parent 6b93180 commit 8b33d1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platforms/rcore_desktop.c
Original file line number Diff line number Diff line change
@@ -1739,7 +1739,8 @@ 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
GestureEvent gestureEvent = { 0 };

0 comments on commit 8b33d1e

Please sign in to comment.