Mercurial > sdl-ios-xcode
diff src/power/SDL_power.c @ 4444:42e1092225f9
Implemented SDL power APIs for iPhoneOS.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Fri, 30 Apr 2010 00:39:31 -0400 |
parents | f7b03b6838cb |
children | b530ef003506 |
line wrap: on
line diff
--- a/src/power/SDL_power.c Thu Apr 29 22:53:18 2010 -0400 +++ b/src/power/SDL_power.c Fri Apr 30 00:39:31 2010 -0400 @@ -36,6 +36,7 @@ SDL_bool SDL_GetPowerInfo_MacOSX(SDL_PowerState *, int *, int *); SDL_bool SDL_GetPowerInfo_BeOS(SDL_PowerState *, int *, int *); SDL_bool SDL_GetPowerInfo_NintendoDS(SDL_PowerState *, int *, int *); +SDL_bool SDL_GetPowerInfo_UIKit(SDL_PowerState *, int *, int *); #ifndef SDL_POWER_DISABLED #ifdef SDL_POWER_HARDWIRED @@ -61,7 +62,10 @@ #ifdef SDL_POWER_WINDOWS /* handles Win32, Win64, PocketPC. */ SDL_GetPowerInfo_Windows, #endif -#ifdef SDL_POWER_MACOSX /* handles Mac OS X, Darwin, iPhone. */ +#ifdef SDL_POWER_UIKIT /* handles iPhone/iPad/etc */ + SDL_GetPowerInfo_UIKit, +#endif +#ifdef SDL_POWER_MACOSX /* handles Mac OS X, Darwin. */ SDL_GetPowerInfo_MacOSX, #endif #ifdef SDL_POWER_NINTENDODS /* handles Nintendo DS. */