discover mfi controller when remap controls screen is displayed

This commit is contained in:
Yoshi Sugawara 2016-04-14 07:10:41 -10:00
parent e5252168bf
commit d07151f48a
1 changed files with 7 additions and 0 deletions

View File

@ -10,6 +10,8 @@
#import "GameControllerKeyRemapController.h"
#import "KeyCapView.h"
#import "KeyMapper.h"
#import "MfiGameControllerHandler.h"
const CGFloat NUMBER_OF_KEYS_IN_ROW = 15.0f;
@ -102,12 +104,17 @@ struct KeyCap keyCapDefinitions[] = {
@property (nonatomic, strong) NSMutableArray *keyCapViews;
@property (nonatomic, strong) UIAlertView *alertView;
@property (nonatomic, strong) KeyMapper *keyMapperWorkingCopy;
@property (nonatomic, strong) MfiGameControllerHandler *controllerHandler;
@end
@implementation GameControllerKeyRemapController
- (void)viewDidLoad {
[super viewDidLoad];
self.controllerHandler = [[MfiGameControllerHandler alloc] init];
[self.controllerHandler discoverController:^(GCController *gameController) {
} disconnectedCallback:^{
}];
self.keyCapViews = [NSMutableArray array];
self.keyMapperWorkingCopy = [self.keyMapper copy];
self.saveButton.layer.borderWidth = 1.0f;