summaryrefslogtreecommitdiff
path: root/src/ui/touch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/touch.c')
-rw-r--r--src/ui/touch.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ui/touch.c b/src/ui/touch.c
index f15eda6f..136457a5 100644
--- a/src/ui/touch.c
+++ b/src/ui/touch.c
@@ -28,6 +28,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
28#include <the_Foundation/math.h> 28#include <the_Foundation/math.h>
29#include <SDL_timer.h> 29#include <SDL_timer.h>
30 30
31#if defined (iPlatformAppleMobile)
32# include "../ios.h"
33#endif
34
31iDeclareType(Touch) 35iDeclareType(Touch)
32iDeclareType(TouchState) 36iDeclareType(TouchState)
33iDeclareType(Momentum) 37iDeclareType(Momentum)
@@ -174,6 +178,9 @@ static void update_TouchState_(void *ptr) {
174 touch->isTapAndHold = iTrue; 178 touch->isTapAndHold = iTrue;
175 touch->hasMoved = iFalse; 179 touch->hasMoved = iFalse;
176 touch->startPos = touch->pos[0]; 180 touch->startPos = touch->pos[0];
181#if defined (iPlatformAppleMobile)
182 playHapticEffect_iOS(tap_HapticEffect);
183#endif
177 } 184 }
178 } 185 }
179 } 186 }