ios stuff
This commit is contained in:
1 parent
fa0ec572c4
commit
20f34d89f0
2 files changed
+10
No files matched your search
@@ -26,4 +26,6 @@ void ShowKeyboard(std::string text);
|
|||||||
|
|
||||||
void HideKeyboard();
|
void HideKeyboard();
|
||||||
|
|
||||||
|
bool IsIpad();
|
||||||
|
|
||||||
} //namespace SE
|
} //namespace SE
|
||||||
@@ -83,5 +83,13 @@ void SetKeyboardText(const char* newText)
|
|||||||
//NSLog(@"text: %s", newText);
|
//NSLog(@"text: %s", newText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IsIpad()
|
||||||
|
{
|
||||||
|
if ( UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad )
|
||||||
|
{
|
||||||
|
return YES; /* Device is iPad */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} //namespace SE
|
} //namespace SE
|
||||||
|
|
||||||
Reference in new issue
Block a user