mirror of
https://github.com/yawut/SDL.git
synced 2026-09-11 02:26:25 -05:00
Added UIInterfaceOrientationMask for building with older iOS SDKs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user