Allow disabling SDL_IPHONE_KEYBOARD in iOS builds
authorEdward Rudd <urkle@outoforder.cc>
Thu, 25 Apr 2013 18:05:08 -0400
changeset 7111f4ae9f1233df
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
     1.1 --- a/src/video/uikit/SDL_uikitvideo.m	Thu Apr 25 00:26:17 2013 -0700
     1.2 +++ b/src/video/uikit/SDL_uikitvideo.m	Thu Apr 25 18:05:08 2013 -0400
     1.3 @@ -86,10 +86,12 @@
     1.4  
     1.5      /* !!! FIXME: implement SetWindowBordered */
     1.6  
     1.7 +#if SDL_IPHONE_KEYBOARD
     1.8      device->SDL_HasScreenKeyboardSupport = UIKit_HasScreenKeyboardSupport;
     1.9      device->SDL_ShowScreenKeyboard = UIKit_ShowScreenKeyboard;
    1.10      device->SDL_HideScreenKeyboard = UIKit_HideScreenKeyboard;
    1.11      device->SDL_IsScreenKeyboardShown = UIKit_IsScreenKeyboardShown;
    1.12 +#endif
    1.13  
    1.14      /* OpenGL (ES) functions */
    1.15      device->GL_MakeCurrent        = UIKit_GL_MakeCurrent;
     2.1 --- a/src/video/uikit/SDL_uikitview.m	Thu Apr 25 00:26:17 2013 -0700
     2.2 +++ b/src/video/uikit/SDL_uikitview.m	Thu Apr 25 18:05:08 2013 -0400
     2.3 @@ -30,10 +30,10 @@
     2.4  
     2.5  #if SDL_IPHONE_KEYBOARD
     2.6  #include "keyinfotable.h"
     2.7 +#endif
     2.8  #include "SDL_uikitappdelegate.h"
     2.9  #include "SDL_uikitmodes.h"
    2.10  #include "SDL_uikitwindow.h"
    2.11 -#endif
    2.12  
    2.13  @implementation SDL_uikitview
    2.14