Add SDL_IsTablet() to Android and iOS SDL.

This commit is contained in:
Sam Lantinga 2018-08-21 11:23:47 -07:00
parent b09b25f6e4
commit 109544ca04
6 changed files with 52 additions and 1 deletions

View file

@ -174,6 +174,15 @@ extern DECLSPEC const char * SDLCALL SDL_AndroidGetExternalStoragePath(void);
#endif /* __ANDROID__ */
#if defined(__ANDROID__) || defined(__IPHONEOS__)
/**
\brief Return true if the current device is a tablet.
*/
extern DECLSPEC SDL_bool SDLCALL SDL_IsTablet(void);
#endif
/* Platform specific functions for WinRT */
#if defined(__WINRT__) && __WINRT__