mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04: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
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue