src/video/uikit/SDL_uikitmodes.m
changeset 12183 364f514f94d8
parent 12144 c48e1ae67968
child 12201 8bdc4d340419
equal deleted inserted replaced
12182:c0d45b4dcfc9 12183:364f514f94d8
   322             }
   322             }
   323         }
   323         }
   324     }
   324     }
   325 }
   325 }
   326 
   326 
       
   327 #if !TARGET_OS_TV
   327 void SDL_OnApplicationDidChangeStatusBarOrientation()
   328 void SDL_OnApplicationDidChangeStatusBarOrientation()
   328 {
   329 {
   329     BOOL isLandscape = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
   330     BOOL isLandscape = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
   330     SDL_VideoDisplay *display = SDL_GetDisplay(0);
   331     SDL_VideoDisplay *display = SDL_GetDisplay(0);
   331 
   332 
   370             break;
   371             break;
   371         }
   372         }
   372         SDL_SendDisplayEvent(display, SDL_DISPLAYEVENT_ORIENTATION, orientation);
   373         SDL_SendDisplayEvent(display, SDL_DISPLAYEVENT_ORIENTATION, orientation);
   373     }
   374     }
   374 }
   375 }
       
   376 #endif /* !TARGET_OS_TV */
   375 
   377 
   376 #endif /* SDL_VIDEO_DRIVER_UIKIT */
   378 #endif /* SDL_VIDEO_DRIVER_UIKIT */
   377 
   379 
   378 /* vi: set ts=4 sw=4 expandtab: */
   380 /* vi: set ts=4 sw=4 expandtab: */