src/video/SDL_video.c
changeset 11147 5b2841f73a33
parent 11119 28d3a50e276e
child 11171 6f6e8880cd37
equal deleted inserted replaced
11146:42fd7dcd5f7e 11147:5b2841f73a33
  3861 }
  3861 }
  3862 
  3862 
  3863 /*
  3863 /*
  3864  * Functions used by iOS application delegates
  3864  * Functions used by iOS application delegates
  3865  */
  3865  */
  3866 void SDL_OnApplicationWillTerminate()
  3866 void SDL_OnApplicationWillTerminate(void)
  3867 {
  3867 {
  3868     SDL_SendAppEvent(SDL_APP_TERMINATING);
  3868     SDL_SendAppEvent(SDL_APP_TERMINATING);
  3869 }
  3869 }
  3870 
  3870 
  3871 void SDL_OnApplicationDidReceiveMemoryWarning()
  3871 void SDL_OnApplicationDidReceiveMemoryWarning(void)
  3872 {
  3872 {
  3873     SDL_SendAppEvent(SDL_APP_LOWMEMORY);
  3873     SDL_SendAppEvent(SDL_APP_LOWMEMORY);
  3874 }
  3874 }
  3875 
  3875 
  3876 void SDL_OnApplicationWillResignActive()
  3876 void SDL_OnApplicationWillResignActive(void)
  3877 {
  3877 {
  3878     if (_this) {
  3878     if (_this) {
  3879         SDL_Window *window;
  3879         SDL_Window *window;
  3880         for (window = _this->windows; window != NULL; window = window->next) {
  3880         for (window = _this->windows; window != NULL; window = window->next) {
  3881             SDL_SendWindowEvent(window, SDL_WINDOWEVENT_FOCUS_LOST, 0, 0);
  3881             SDL_SendWindowEvent(window, SDL_WINDOWEVENT_FOCUS_LOST, 0, 0);
  3883         }
  3883         }
  3884     }
  3884     }
  3885     SDL_SendAppEvent(SDL_APP_WILLENTERBACKGROUND);
  3885     SDL_SendAppEvent(SDL_APP_WILLENTERBACKGROUND);
  3886 }
  3886 }
  3887 
  3887 
  3888 void SDL_OnApplicationDidEnterBackground()
  3888 void SDL_OnApplicationDidEnterBackground(void)
  3889 {
  3889 {
  3890     SDL_SendAppEvent(SDL_APP_DIDENTERBACKGROUND);
  3890     SDL_SendAppEvent(SDL_APP_DIDENTERBACKGROUND);
  3891 }
  3891 }
  3892 
  3892 
  3893 void SDL_OnApplicationWillEnterForeground()
  3893 void SDL_OnApplicationWillEnterForeground(void)
  3894 {
  3894 {
  3895     SDL_SendAppEvent(SDL_APP_WILLENTERFOREGROUND);
  3895     SDL_SendAppEvent(SDL_APP_WILLENTERFOREGROUND);
  3896 }
  3896 }
  3897 
  3897 
  3898 void SDL_OnApplicationDidBecomeActive()
  3898 void SDL_OnApplicationDidBecomeActive(void)
  3899 {
  3899 {
  3900     SDL_SendAppEvent(SDL_APP_DIDENTERFOREGROUND);
  3900     SDL_SendAppEvent(SDL_APP_DIDENTERFOREGROUND);
  3901 
  3901 
  3902     if (_this) {
  3902     if (_this) {
  3903         SDL_Window *window;
  3903         SDL_Window *window;