Xcode-iOS/Demos/src/keyboard.c
changeset 6392 fa7eb111f994
parent 6310 f830e73e2acf
child 6654 2ecfb25be1e2
     1.1 --- a/Xcode-iOS/Demos/src/keyboard.c	Thu Aug 09 15:43:39 2012 -0400
     1.2 +++ b/Xcode-iOS/Demos/src/keyboard.c	Sat Aug 11 10:15:59 2012 -0700
     1.3 @@ -12,13 +12,6 @@
     1.4  
     1.5  static SDL_Texture *texture; /* texture where we'll hold our font */
     1.6  
     1.7 -/* iPhone SDL addition keyboard related function definitions */
     1.8 -extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardShow(SDL_Window * window);
     1.9 -extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardHide(SDL_Window * window);
    1.10 -extern DECLSPEC SDL_bool SDLCALL SDL_iPhoneKeyboardIsShown(SDL_Window *
    1.11 -                                                           window);
    1.12 -extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardToggle(SDL_Window * window);
    1.13 -
    1.14  /* function declarations */
    1.15  void cleanup(void);
    1.16  void drawBlank(int x, int y);
    1.17 @@ -296,14 +289,10 @@
    1.18              /* draw our updates to the screen */
    1.19              SDL_RenderPresent(renderer);
    1.20              break;
    1.21 -#ifdef __IPHONEOS__
    1.22          case SDL_MOUSEBUTTONUP:
    1.23 -            /*      mouse up toggles onscreen keyboard visibility
    1.24 -               this function is available ONLY on iPhone OS
    1.25 -             */
    1.26 -            SDL_iPhoneKeyboardToggle(window);
    1.27 +            /*      mouse up toggles onscreen keyboard visibility */
    1.28 +            SDL_ToggleScreenKeyboard(window);
    1.29              break;
    1.30 -#endif
    1.31          }
    1.32      }
    1.33      cleanup();