Added settings for displaying varying levels of the onscreen controls

This commit is contained in:
Diego Waxemberg 2014-12-29 13:03:07 -05:00
commit 809a660506
16 changed files with 220 additions and 81 deletions

View file

@ -9,6 +9,7 @@
#import "StreamView.h"
#include <Limelight.h>
#import "OnScreenControls.h"
#import "DataManager.h"
@implementation StreamView {
CGPoint touchLocation;
@ -18,6 +19,10 @@
- (void) setupOnScreenControls {
onScreenControls = [[OnScreenControls alloc] initWithView:self];
DataManager* dataMan = [[DataManager alloc] init];
OnScreenControlsLevel level = (OnScreenControlsLevel)[[dataMan retrieveSettings].onscreenControls integerValue];
NSLog(@"Setting on-screen controls level: %ld", level);
[onScreenControls setLevel:level];
}
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {