Added basic haptic feedback support for iOS platforms via AudioServicesPlaySystemSound(kSystemSoundID_Vibrate). Does not make use of length_ms… yet. Fixes issue #5614.

This commit is contained in:
Karen Tsai 2014-05-22 02:20:43 -04:00
parent 42e6dc2e2f
commit 195d9c7fd5

View File

@ -4,6 +4,7 @@
#import <string>
#import <stdio.h>
#import <stdlib.h>
#import <AudioToolbox/AudioToolbox.h>
#import "AppDelegate.h"
@ -27,7 +28,8 @@ void System_SendMessage(const char *command, const char *parameter) {
}
void Vibrate(int length_ms) {
// TODO: Haptic feedback?
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
// TODO: Actually make use of length_ms?
}
int main(int argc, char *argv[])