Fixed bug 1564 - SDL has no function to open a screen keyboard on Android.
Philipp Wiesemann implemented a general on-screen keyboard API for SDL, and I switched iOS code over to use it.
This commit is contained in:
parent
5570852b58
commit
bf2304785f
19 changed files with 332 additions and 131 deletions
|
@ -138,10 +138,6 @@ PrintText(char *text)
|
|||
SDL_Log("Text: %s", text);
|
||||
}
|
||||
|
||||
#if __IPHONEOS__
|
||||
extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardShow(SDL_Window * window);
|
||||
#endif
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
|
@ -168,9 +164,11 @@ main(int argc, char *argv[])
|
|||
#if __IPHONEOS__
|
||||
/* Creating the context creates the view, which we need to show keyboard */
|
||||
SDL_GL_CreateContext(window);
|
||||
SDL_iPhoneKeyboardShow(window);
|
||||
#endif
|
||||
|
||||
|
||||
if (SDL_HasScreenKeyboardSupport(window)) {
|
||||
SDL_ShowScreenKeyboard(window);
|
||||
}
|
||||
|
||||
/* Watch keystrokes */
|
||||
done = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue