Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Allow disabling SDL_IPHONE_KEYBOARD in iOS builds
Browse files Browse the repository at this point in the history
  • Loading branch information
urkle committed Apr 25, 2013
1 parent 8b6f479 commit 9396c2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/video/uikit/SDL_uikitvideo.m
Expand Up @@ -86,10 +86,12 @@ static void UIKit_DeleteDevice(SDL_VideoDevice * device)

/* !!! 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;
Expand Down
2 changes: 1 addition & 1 deletion src/video/uikit/SDL_uikitview.m
Expand Up @@ -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

Expand Down

0 comments on commit 9396c2d

Please sign in to comment.