Browse Source

Corrected input bug

pull/23/head
raysan5 9 years ago
parent
commit
ba257b09f5
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      src/core.c
  2. +1
    -1
      src/raylib.h

+ 1
- 1
src/core.c View File

@ -1052,7 +1052,7 @@ bool IsGamepadButtonUp(int gamepad, int button)
} }
#endif #endif
#if defined(PLATFORM_ANDROID)
#if defined(PLATFORM_ANDROID) || defined(PLATFORM_WEB)
// Returns touch position X // Returns touch position X
int GetTouchX(void) int GetTouchX(void)
{ {

+ 1
- 1
src/raylib.h View File

@ -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 bool IsGamepadButtonUp(int gamepad, int button); // Detect if a gamepad button is NOT being pressed
#endif #endif
#if defined(PLATFORM_ANDROID)
#if defined(PLATFORM_ANDROID) || defined(PLATFORM_WEB)
int GetTouchX(void); // Returns touch position X int GetTouchX(void); // Returns touch position X
int GetTouchY(void); // Returns touch position Y int GetTouchY(void); // Returns touch position Y
Vector2 GetTouchPosition(void); // Returns touch position XY Vector2 GetTouchPosition(void); // Returns touch position XY

Loading…
Cancel
Save