added UIViewController pointer to SDL_SysWMinfo for iOS

This commit is contained in:
David Ludwig 2012-07-18 22:26:47 -04:00
parent 850da41f50
commit fb4a889ee9
2 changed files with 4 additions and 0 deletions

View file

@ -92,6 +92,7 @@ typedef struct _NSWindow NSWindow;
#include <UIKit/UIKit.h>
#else
typedef struct _UIWindow UIWindow;
typedef struct _UIViewController UIViewController;
#endif
#endif
@ -195,6 +196,7 @@ struct SDL_SysWMinfo
struct
{
UIWindow *window; /* The UIKit window */
UIViewController *viewcontroller; /* The UIKit view controller */
} uikit;
#endif
/* Can't have an empty union */