cocoaTouch/SDLOverrides/SDL_uikitappdelegate.h
changeset 3305 91074496d5c9
parent 3116 97dc65a47b15
child 3316 52f0482b043f
--- a/cocoaTouch/SDLOverrides/SDL_uikitappdelegate.h	Sun Apr 04 16:38:00 2010 +0000
+++ b/cocoaTouch/SDLOverrides/SDL_uikitappdelegate.h	Sun Apr 04 19:51:53 2010 +0000
@@ -44,3 +44,14 @@
 -(void) startSDLgame;
 
 @end
+
+#ifndef __IPHONE_3_2	// if iPhoneOS is 3.2 or greater then __IPHONE_3_2 will be defined
+
+typedef enum {
+    UIUserInterfaceIdiomPhone,           // iPhone and iPod touch style UI
+    UIUserInterfaceIdiomPad,             // iPad style UI
+} UIUserInterfaceIdiom;
+
+#define UI_USER_INTERFACE_IDIOM() UIUserInterfaceIdiomPhone
+
+#endif // ifndef __IPHONE_3_2