iOS: implement Vibrate

This commit is contained in:
Andrey Konoplyankin committed 2014-05-17 12:55:31 +07:00
1 parent 28a9644b7c
commit e98febfb91
1 file changed
+4 -2
+4 -2
View File
@@ -6,6 +6,7 @@
#import <stdlib.h>
#import "AppDelegate.h"
#import <AudioToolbox/AudioToolbox.h>
#include "base/NativeApp.h"
@@ -26,8 +27,9 @@ void System_SendMessage(const char *command, const char *parameter) {
}
}
void Vibrate(int length_ms) {
// TODO: Haptic feedback?
void Vibrate(int length_ms)
{
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
}
int main(int argc, char *argv[])