Added UIInterfaceOrientationMask for building with older iOS SDKs
This commit is contained in:
parent
749e6da2e8
commit
a5d17c62db
1 changed files with 14 additions and 0 deletions
|
@ -32,6 +32,20 @@
|
|||
#include "SDL_uikitviewcontroller.h"
|
||||
#include "SDL_uikitvideo.h"
|
||||
|
||||
#ifndef __IPHONE_6_0
|
||||
// This enum isn't available in older SDKs, but we use it for our own purposes on iOS 5.1 and for the system on iOS 6.0
|
||||
enum UIInterfaceOrientationMask) {
|
||||
UIInterfaceOrientationMaskPortrait = (1 << UIInterfaceOrientationPortrait),
|
||||
UIInterfaceOrientationMaskLandscapeLeft = (1 << UIInterfaceOrientationLandscapeLeft),
|
||||
UIInterfaceOrientationMaskLandscapeRight = (1 << UIInterfaceOrientationLandscapeRight),
|
||||
UIInterfaceOrientationMaskPortraitUpsideDown = (1 << UIInterfaceOrientationPortraitUpsideDown),
|
||||
UIInterfaceOrientationMaskLandscape = (UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight),
|
||||
UIInterfaceOrientationMaskAll = (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight | UIInterfaceOrientationMaskPortraitUpsideDown),
|
||||
UIInterfaceOrientationMaskAllButUpsideDown = (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight),
|
||||
};
|
||||
#endif // !__IPHONE_6_0
|
||||
|
||||
|
||||
@implementation SDL_uikitviewcontroller
|
||||
|
||||
@synthesize window;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue