include/SDL_syswm.h
changeset 5056 8b7988f42fcb
parent 4903 f50c7996d925
child 5062 e8916fe9cfc8
     1.1 --- a/include/SDL_syswm.h	Thu Jan 20 11:51:23 2011 -0500
     1.2 +++ b/include/SDL_syswm.h	Thu Jan 20 16:05:59 2011 -0800
     1.3 @@ -88,6 +88,14 @@
     1.4  #endif
     1.5  #endif
     1.6  
     1.7 +#if defined(SDL_VIDEO_DRIVER_UIKIT)
     1.8 +#ifdef __OBJC__
     1.9 +#include <UIKit/UIKit.h>
    1.10 +#else
    1.11 +typedef struct _UIWindow UIWindow;
    1.12 +#endif
    1.13 +#endif
    1.14 +
    1.15  /** 
    1.16   *  These are the various supported windowing subsystems
    1.17   */
    1.18 @@ -98,6 +106,7 @@
    1.19      SDL_SYSWM_X11,
    1.20      SDL_SYSWM_DIRECTFB,
    1.21      SDL_SYSWM_COCOA,
    1.22 +    SDL_SYSWM_UIKIT,
    1.23  } SDL_SYSWM_TYPE;
    1.24  
    1.25  /**
    1.26 @@ -133,7 +142,13 @@
    1.27              /* No Cocoa window events yet */
    1.28          } cocoa;
    1.29  #endif
    1.30 -    } /*msg*/;
    1.31 +#if defined(SDL_VIDEO_DRIVER_UIKIT)
    1.32 +        struct
    1.33 +        {
    1.34 +            /* No UIKit window events yet */
    1.35 +        } uikit;
    1.36 +#endif
    1.37 +    } msg;
    1.38  };
    1.39  
    1.40  /**
    1.41 @@ -175,7 +190,13 @@
    1.42              NSWindow *window;           /* The Cocoa window */
    1.43          } cocoa;
    1.44  #endif
    1.45 -    } /*info*/;
    1.46 +#if defined(SDL_VIDEO_DRIVER_UIKIT)
    1.47 +        struct
    1.48 +        {
    1.49 +            UIWindow *window;           /* The UIKit window */
    1.50 +        } uikit;
    1.51 +#endif
    1.52 +    } info;
    1.53  };
    1.54  
    1.55  #endif /* SDL_PROTOTYPES_ONLY */