diff options
| author | Kenneth M <[email protected]> | 2023-12-07 12:50:36 -0600 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-07 19:50:36 +0100 |
| commit | 8b33d1eeb952808d11bf017d34ef3fa1d5d7484e (patch) | |
| tree | 4ddb03a578dda0b2fd65d9e21497be15ea70afbc /src | |
| parent | 6b931801308d986bc81bc7eb6a989d99b4e52749 (diff) | |
| download | raylib-8b33d1eeb952808d11bf017d34ef3fa1d5d7484e.tar.gz raylib-8b33d1eeb952808d11bf017d34ef3fa1d5d7484e.zip | |
Fix IsMouseButtonUp() (#3609)
Diffstat (limited to 'src')
| -rw-r--r-- | src/platforms/rcore_desktop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platforms/rcore_desktop.c b/src/platforms/rcore_desktop.c index 0aca7313..0dfcacd8 100644 --- a/src/platforms/rcore_desktop.c +++ b/src/platforms/rcore_desktop.c @@ -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 }; |
