mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-04-04 15:06:06 +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];
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user