src/video/uikit/SDL_uikitviewcontroller.m
changeset 6452 1895319021e4
parent 6451 52e5a05ca795
child 6453 f71e3fdba072
equal deleted inserted replaced
6451:52e5a05ca795 6452:1895319021e4
    30 
    30 
    31 #include "SDL_uikitwindow.h"
    31 #include "SDL_uikitwindow.h"
    32 #include "SDL_uikitviewcontroller.h"
    32 #include "SDL_uikitviewcontroller.h"
    33 #include "SDL_uikitvideo.h"
    33 #include "SDL_uikitvideo.h"
    34 
    34 
       
    35 #ifndef __IPHONE_6_0
       
    36 // 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
       
    37 enum UIInterfaceOrientationMask) {
       
    38     UIInterfaceOrientationMaskPortrait = (1 << UIInterfaceOrientationPortrait),
       
    39     UIInterfaceOrientationMaskLandscapeLeft = (1 << UIInterfaceOrientationLandscapeLeft),
       
    40     UIInterfaceOrientationMaskLandscapeRight = (1 << UIInterfaceOrientationLandscapeRight),
       
    41     UIInterfaceOrientationMaskPortraitUpsideDown = (1 << UIInterfaceOrientationPortraitUpsideDown),
       
    42     UIInterfaceOrientationMaskLandscape = (UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight),
       
    43     UIInterfaceOrientationMaskAll = (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight | UIInterfaceOrientationMaskPortraitUpsideDown),
       
    44     UIInterfaceOrientationMaskAllButUpsideDown = (UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight),
       
    45 };
       
    46 #endif // !__IPHONE_6_0
       
    47 
       
    48     
    35 @implementation SDL_uikitviewcontroller
    49 @implementation SDL_uikitviewcontroller
    36 
    50 
    37 @synthesize window;
    51 @synthesize window;
    38 
    52 
    39 - (id)initWithSDLWindow:(SDL_Window *)_window
    53 - (id)initWithSDLWindow:(SDL_Window *)_window