SDL_system.h 990 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef _SDL_system_h
  2. #define _SDL_system_h
  3. #include "SDL_stdinc.h"
  4. #if defined(__IPHONEOS__) && __IPHONEOS__
  5. #include "SDL_video.h"
  6. #include "SDL_keyboard.h"
  7. #endif
  8. #include "begin_code.h"
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #if defined(__IPHONEOS__) && __IPHONEOS__
  13. typedef int SDLCALL tSDL_iPhoneSetAnimationCallback(SDL_Window * window, int interval, void (*callback)(void*), void *callbackParam);
  14. typedef void SDLCALL tSDL_iPhoneSetEventPump(SDL_bool enabled);
  15. #endif
  16. #if defined(__ANDROID__) && __ANDROID__
  17. typedef void * SDLCALL tSDL_AndroidGetJNIEnv();
  18. typedef void * SDLCALL tSDL_AndroidGetActivity();
  19. #define SDL_ANDROID_EXTERNAL_STORAGE_READ 0x01
  20. #define SDL_ANDROID_EXTERNAL_STORAGE_WRITE 0x02
  21. typedef const char * SDLCALL tSDL_AndroidGetInternalStoragePath();
  22. typedef int SDLCALL tSDL_AndroidGetExternalStorageState();
  23. typedef const char * SDLCALL tSDL_AndroidGetExternalStoragePath();
  24. #endif
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #include "close_code.h"
  29. #endif