mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-24 16:49:50 +00:00
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:
parent
42e6dc2e2f
commit
195d9c7fd5
@ -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[])
|
||||
|
Loading…
Reference in New Issue
Block a user