mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +01:00
iOS: implement Vibrate
This commit is contained in:
1 parent
28a9644b7c
commit
e98febfb91
1 file changed
+4
-2
+4
-2
@@ -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[])
|
||||
|
||||
Reference in new issue
Block a user