diff options
| author | raysan5 <raysan5@gmail.com> | 2015-04-22 19:12:59 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2015-04-22 19:12:59 +0200 |
| commit | ba257b09f55f240ec48200383fe49ca4bf3e1cab (patch) | |
| tree | 434093cf0ae5cd405150e38f980fb2af74a2ca65 /src | |
| parent | 05fe1c22eddab069a4cf3dcb427f1c57a56df6d5 (diff) | |
| download | raylib-ba257b09f55f240ec48200383fe49ca4bf3e1cab.tar.gz raylib-ba257b09f55f240ec48200383fe49ca4bf3e1cab.zip | |
Corrected input bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/core.c | 2 | ||||
| -rw-r--r-- | src/raylib.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 |
