test/checkkeys.c
changeset 6392 fa7eb111f994
parent 5879 cdb371a9b4a1
child 6654 2ecfb25be1e2
     1.1 --- a/test/checkkeys.c	Thu Aug 09 15:43:39 2012 -0400
     1.2 +++ b/test/checkkeys.c	Sat Aug 11 10:15:59 2012 -0700
     1.3 @@ -138,10 +138,6 @@
     1.4      SDL_Log("Text: %s", text);
     1.5  }
     1.6  
     1.7 -#if __IPHONEOS__
     1.8 -extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardShow(SDL_Window * window);
     1.9 -#endif
    1.10 -
    1.11  int
    1.12  main(int argc, char *argv[])
    1.13  {
    1.14 @@ -168,9 +164,11 @@
    1.15  #if __IPHONEOS__
    1.16      /* Creating the context creates the view, which we need to show keyboard */
    1.17      SDL_GL_CreateContext(window);
    1.18 -    SDL_iPhoneKeyboardShow(window);
    1.19  #endif
    1.20 -    
    1.21 +
    1.22 +    if (SDL_HasScreenKeyboardSupport(window)) {
    1.23 +        SDL_ShowScreenKeyboard(window);
    1.24 +    }
    1.25  
    1.26      /* Watch keystrokes */
    1.27      done = 0;