From afb7e930eefe431f3eff688903a0b87cde1a4328 Mon Sep 17 00:00:00 2001 From: Diego Waxemberg Date: Fri, 9 Jan 2015 14:11:42 -0500 Subject: [PATCH] simple on-screen controls now show buttons at the bottom --- Limelight/Input/OnScreenControls.m | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Limelight/Input/OnScreenControls.m b/Limelight/Input/OnScreenControls.m index 7594c3d..40f8f28 100644 --- a/Limelight/Input/OnScreenControls.m +++ b/Limelight/Input/OnScreenControls.m @@ -164,6 +164,7 @@ static float L2_Y; [self hideSticks]; break; case OnScreenControlsLevelSimple: + [self setupSimpleControls]; [self drawTriggers]; [self drawStartSelect]; [self hideButtons]; @@ -180,6 +181,16 @@ static float L2_Y; } } +// For simple controls we move the triggers and buttons to the bottom +- (void) setupSimpleControls { + START_Y = _view.frame.size.height * .9; + SELECT_Y = _view.frame.size.height * .9; + L1_Y = _view.frame.size.height * .75; + L2_Y = _view.frame.size.height * .9; + R1_Y = _view.frame.size.height * .75; + R2_Y = _view.frame.size.height * .9; +} + - (void) drawButtons { // create A button _aButton.contents = (id) [UIImage imageNamed:@"AButton"].CGImage;