From 316b6aa1813fb8f5cd56ea135368de73eccc49f6 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 20 May 2019 17:21:46 +0200 Subject: [PATCH] Reverted change that breaks mouse on web --- src/core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core.c b/src/core.c index 5b0ca86c..28283d88 100644 --- a/src/core.c +++ b/src/core.c @@ -2163,11 +2163,12 @@ bool IsMouseButtonPressed(int button) if ((currentMouseState[button] != previousMouseState[button]) && (currentMouseState[button] == 1)) pressed = true; #endif +/* #if defined(PLATFORM_WEB) Vector2 pos = GetTouchPosition(0); if ((pos.x > 0) && (pos.y > 0)) pressed = true; // There was a touch! #endif - +*/ return pressed; } @@ -2239,13 +2240,14 @@ Vector2 GetMousePosition(void) #else position = (Vector2){ (mousePosition.x + mouseOffset.x)*mouseScale.x, (mousePosition.y + mouseOffset.y)*mouseScale.y }; #endif +/* #if defined(PLATFORM_WEB) Vector2 pos = GetTouchPosition(0); // Touch position has priority over mouse position if ((pos.x > 0) && (pos.y > 0)) position = pos; // There was a touch! #endif - +*/ return position; }