mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-15 21:21:45 +00:00
simple on-screen controls now show buttons at the bottom
This commit is contained in:
@@ -164,6 +164,7 @@ static float L2_Y;
|
|||||||
[self hideSticks];
|
[self hideSticks];
|
||||||
break;
|
break;
|
||||||
case OnScreenControlsLevelSimple:
|
case OnScreenControlsLevelSimple:
|
||||||
|
[self setupSimpleControls];
|
||||||
[self drawTriggers];
|
[self drawTriggers];
|
||||||
[self drawStartSelect];
|
[self drawStartSelect];
|
||||||
[self hideButtons];
|
[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 {
|
- (void) drawButtons {
|
||||||
// create A button
|
// create A button
|
||||||
_aButton.contents = (id) [UIImage imageNamed:@"AButton"].CGImage;
|
_aButton.contents = (id) [UIImage imageNamed:@"AButton"].CGImage;
|
||||||
|
|||||||
Reference in New Issue
Block a user