diff options
| author | raysan5 <raysan5@gmail.com> | 2016-04-17 11:36:40 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-04-17 11:36:40 +0200 |
| commit | 17eefed08fa052b39c9ee4c4cb486794a8551c92 (patch) | |
| tree | 7bf325d93633663ff72a11ba8f919a184581fccb /src/core.c | |
| parent | 2e5d898443767e027f0e1deab7ed3060085b62fd (diff) | |
| download | raylib-17eefed08fa052b39c9ee4c4cb486794a8551c92.tar.gz raylib-17eefed08fa052b39c9ee4c4cb486794a8551c92.zip | |
Improved gestures system
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1193,7 +1193,7 @@ bool IsMouseButtonPressed(int button) bool pressed = false; #if defined(PLATFORM_ANDROID) - if (IsGestureDetected() && (GetGestureType() == GESTURE_TAP)) pressed = true; + if (IsGestureDetected(GESTURE_TAP)) pressed = true; #else if ((currentMouseState[button] != previousMouseState[button]) && (currentMouseState[button] == 1)) pressed = true; #endif @@ -1207,7 +1207,7 @@ bool IsMouseButtonDown(int button) bool down = false; #if defined(PLATFORM_ANDROID) - if (IsGestureDetected() && (GetGestureType() == GESTURE_HOLD)) down = true; + if (IsGestureDetected(GESTURE_HOLD)) down = true; #else if (GetMouseButtonStatus(button) == 1) down = true; #endif |
