From ba257b09f55f240ec48200383fe49ca4bf3e1cab Mon Sep 17 00:00:00 2001 From: raysan5 Date: Wed, 22 Apr 2015 19:12:59 +0200 Subject: [PATCH] Corrected input bug --- src/core.c | 2 +- src/raylib.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.c b/src/core.c index 81583bf3..d83c14f7 100644 --- a/src/core.c +++ b/src/core.c @@ -1052,7 +1052,7 @@ bool IsGamepadButtonUp(int gamepad, int button) } #endif -#if defined(PLATFORM_ANDROID) +#if defined(PLATFORM_ANDROID) || defined(PLATFORM_WEB) // Returns touch position X int GetTouchX(void) { diff --git a/src/raylib.h b/src/raylib.h index ad1df97a..e804da62 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -446,7 +446,7 @@ bool IsGamepadButtonReleased(int gamepad, int button); // Detect if a gamepad b bool IsGamepadButtonUp(int gamepad, int button); // Detect if a gamepad button is NOT being pressed #endif -#if defined(PLATFORM_ANDROID) +#if defined(PLATFORM_ANDROID) || defined(PLATFORM_WEB) int GetTouchX(void); // Returns touch position X int GetTouchY(void); // Returns touch position Y Vector2 GetTouchPosition(void); // Returns touch position XY