aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-04-22 19:12:59 +0200
committerraysan5 <raysan5@gmail.com>2015-04-22 19:12:59 +0200
commitba257b09f55f240ec48200383fe49ca4bf3e1cab (patch)
tree434093cf0ae5cd405150e38f980fb2af74a2ca65 /src
parent05fe1c22eddab069a4cf3dcb427f1c57a56df6d5 (diff)
downloadraylib-ba257b09f55f240ec48200383fe49ca4bf3e1cab.tar.gz
raylib-ba257b09f55f240ec48200383fe49ca4bf3e1cab.zip
Corrected input bug
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