implement lime.ui.Haptic.vibrate(...) for iOS
-Basic implementation, but works-
This commit is contained in:
committed by
Joshua Granick
parent
a361b4681e
commit
fe13ea21f3
15
project/src/ui/Haptic.mm
Normal file
15
project/src/ui/Haptic.mm
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <ui/Haptic.h>
|
||||
|
||||
#import <AudioToolbox/AudioServices.h>
|
||||
|
||||
namespace lime {
|
||||
|
||||
|
||||
void Haptic::Vibrate (int period, int duration) {
|
||||
|
||||
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user