ios stuff
This commit is contained in:
parent
fa0ec572c4
commit
20f34d89f0
@ -25,5 +25,7 @@ void IosSwitchToScreen();
|
||||
void ShowKeyboard(std::string text);
|
||||
|
||||
void HideKeyboard();
|
||||
|
||||
bool IsIpad();
|
||||
|
||||
} //namespace SE
|
||||
|
@ -82,6 +82,14 @@ void SetKeyboardText(const char* newText)
|
||||
//GuiManagerSetKeyboardText(newText);
|
||||
//NSLog(@"text: %s", newText);
|
||||
}
|
||||
|
||||
bool IsIpad()
|
||||
{
|
||||
if ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad )
|
||||
{
|
||||
return YES; /* Device is iPad */
|
||||
}
|
||||
}
|
||||
|
||||
} //namespace SE
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user