Add rumble support on iOS 14

This commit is contained in:
Cameron Gutman
2020-09-17 20:32:41 -05:00
parent 2d24b0ec7b
commit e8c7eb67c6
5 changed files with 192 additions and 49 deletions

View File

@@ -6,7 +6,10 @@
// Copyright © 2019 Moonlight Game Streaming Project. All rights reserved.
//
#import "HapticContext.h"
@import GameController;
@import CoreHaptics;
@interface Controller : NSObject
@@ -21,7 +24,8 @@
@property (nonatomic) short lastLeftStickY;
@property (nonatomic) short lastRightStickX;
@property (nonatomic) short lastRightStickY;
@property (nonatomic) unsigned short lowFreqMotor;
@property (nonatomic) unsigned short highFreqMotor;
@property (nonatomic) HapticContext* _Nullable lowFreqMotor;
@property (nonatomic) HapticContext* _Nullable highFreqMotor;
@end