include/SDL_system.h
changeset 6392 fa7eb111f994
parent 6346 56871d364efc
child 6630 55910871076b
     1.1 --- a/include/SDL_system.h	Thu Aug 09 15:43:39 2012 -0400
     1.2 +++ b/include/SDL_system.h	Sat Aug 11 10:15:59 2012 -0700
     1.3 @@ -30,6 +30,11 @@
     1.4  
     1.5  #include "SDL_stdinc.h"
     1.6  
     1.7 +#if __IPHONEOS__
     1.8 +#include "SDL_video.h"
     1.9 +#include "SDL_keyboard.h"
    1.10 +#endif
    1.11 +
    1.12  #include "begin_code.h"
    1.13  /* Set up for C function definitions, even when using C++ */
    1.14  #ifdef __cplusplus
    1.15 @@ -40,15 +45,13 @@
    1.16  
    1.17  #if __IPHONEOS__
    1.18  
    1.19 -#include "SDL_video.h"
    1.20 -
    1.21  extern DECLSPEC int SDLCALL SDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
    1.22  extern DECLSPEC void SDLCALL SDL_iPhoneSetEventPump(SDL_bool enabled);
    1.23  
    1.24 -extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardShow(SDL_Window * window);
    1.25 -extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardHide(SDL_Window * window);
    1.26 -extern DECLSPEC SDL_bool SDLCALL SDL_iPhoneKeyboardIsShown(SDL_Window * window);
    1.27 -extern DECLSPEC int SDLCALL SDL_iPhoneKeyboardToggle(SDL_Window * window);
    1.28 +#define SDL_iPhoneKeyboardShow  SDL_ShowScreenKeyboard
    1.29 +#define SDL_iPhoneKeyboardHide  SDL_HideScreenKeyboard
    1.30 +#define SDL_iPhoneKeyboardToggle    SDL_ToggleScreenKeyboard
    1.31 +#define SDL_iPhoneKeyboardIsShown   SDL_IsScreenKeyboardShown
    1.32  
    1.33  #endif
    1.34