mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user