Add support for game controllers

This commit is contained in:
Cameron Gutman
2014-10-20 21:13:13 -04:00
parent 37428c8c77
commit f2ae32c45c
4 changed files with 153 additions and 1 deletions

View File

@@ -11,12 +11,15 @@
#import "Connection.h"
#import "VideoDecoderRenderer.h"
#import "StreamManager.h"
#import "ControllerSupport.h"
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@implementation StreamFrameViewController
@implementation StreamFrameViewController {
ControllerSupport *_controllerSupport;
}
- (void)viewDidLoad
{
@@ -24,6 +27,8 @@
[UIApplication sharedApplication].idleTimerDisabled = YES;
_controllerSupport = [[ControllerSupport alloc] init];
StreamManager* streamMan = [[StreamManager alloc] initWithHost:[MainFrameViewController getHost] renderView:self.view];
NSOperationQueue* opQueue = [[NSOperationQueue alloc] init];
[opQueue addOperation:streamMan];