ios stuff

This commit is contained in:
Vladislav Khorev 2013-11-24 09:54:59 +00:00
parent fa0ec572c4
commit 20f34d89f0
2 changed files with 10 additions and 0 deletions

View File

@ -26,4 +26,6 @@ void ShowKeyboard(std::string text);
void HideKeyboard();
bool IsIpad();
} //namespace SE

View File

@ -83,5 +83,13 @@ void SetKeyboardText(const char* newText)
//NSLog(@"text: %s", newText);
}
bool IsIpad()
{
if ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad )
{
return YES; /* Device is iPad */
}
}
} //namespace SE