aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
-rw-r--r--src/raylib.h2
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