Implemented love.system.vibrate on iOS. Unfortunately due to API limitations the duration argument is ignored, and it always vibrates for roughly 0.5 seconds.

This commit is contained in:
Alex Szpakowski
2015-08-14 21:30:07 -03:00
parent 2ab69094e1
commit 9be2581e6f
4 changed files with 21 additions and 1 deletions
+2
View File
@@ -146,6 +146,8 @@ void System::vibrate(double seconds) const
{
#ifdef LOVE_ANDROID
love::android::vibrate(seconds);
#elif defined(LOVE_IOS)
love::ios::vibrate();
#else
LOVE_UNUSED(seconds);
#endif