add support for Apple Pencil and build for iOS

This commit is contained in:
2017-07-28 20:35:59 +01:00
parent e32329ea98
commit 0907429a60
15 changed files with 236 additions and 35 deletions

View File

@@ -11,6 +11,20 @@ void App::resize(float w, float h)
main->update(w , h, zoom);
}
void App::showKeyboard()
{
#ifdef __IOS__
[ios_view becomeFirstResponder];
#endif
}
void App::hideKeyboard()
{
#ifdef __IOS__
[ios_view resignFirstResponder];
#endif
}
bool App::mouse_down(int button, float x, float y, float pressure)
{
MouseEvent e;