mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 11:13:44 +01:00
Don't rotate to portrait and fix iOS 6 compatibility
This commit is contained in:
1 parent
b1108f3290
commit
e530a306ec
1 file changed
+8
-1
@@ -138,9 +138,16 @@ ViewController* sharedViewController;
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
// For iOS before 6.0
|
||||
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation
|
||||
{
|
||||
return YES;
|
||||
return UIInterfaceOrientationIsLandscape(toInterfaceOrientation);
|
||||
}
|
||||
|
||||
// For iOS 6.0 and up
|
||||
- (NSUInteger)supportedInterfaceOrientations
|
||||
{
|
||||
return UIInterfaceOrientationMaskLandscape;
|
||||
}
|
||||
|
||||
//static BOOL menuDown = NO;
|
||||
|
||||
Reference in new issue
Block a user