Allow disabling SDL_IPHONE_KEYBOARD in iOS builds
authorEdward Rudd <urkle@outoforder.cc>
Thu, 25 Apr 2013 18:05:08 -0400
changeset 7111 f4ae9f1233df
parent 7110 2a98852fd58d
child 7112 a1a723edea64
Allow disabling SDL_IPHONE_KEYBOARD in iOS builds
src/video/uikit/SDL_uikitvideo.m
src/video/uikit/SDL_uikitview.m
--- a/src/video/uikit/SDL_uikitvideo.m	Thu Apr 25 00:26:17 2013 -0700
+++ b/src/video/uikit/SDL_uikitvideo.m	Thu Apr 25 18:05:08 2013 -0400
@@ -86,10 +86,12 @@
 
     /* !!! FIXME: implement SetWindowBordered */
 
+#if SDL_IPHONE_KEYBOARD
     device->SDL_HasScreenKeyboardSupport = UIKit_HasScreenKeyboardSupport;
     device->SDL_ShowScreenKeyboard = UIKit_ShowScreenKeyboard;
     device->SDL_HideScreenKeyboard = UIKit_HideScreenKeyboard;
     device->SDL_IsScreenKeyboardShown = UIKit_IsScreenKeyboardShown;
+#endif
 
     /* OpenGL (ES) functions */
     device->GL_MakeCurrent        = UIKit_GL_MakeCurrent;
--- a/src/video/uikit/SDL_uikitview.m	Thu Apr 25 00:26:17 2013 -0700
+++ b/src/video/uikit/SDL_uikitview.m	Thu Apr 25 18:05:08 2013 -0400
@@ -30,10 +30,10 @@
 
 #if SDL_IPHONE_KEYBOARD
 #include "keyinfotable.h"
+#endif
 #include "SDL_uikitappdelegate.h"
 #include "SDL_uikitmodes.h"
 #include "SDL_uikitwindow.h"
-#endif
 
 @implementation SDL_uikitview