compile for Android, add initial TextInput support

This commit is contained in:
2017-03-25 08:35:09 +00:00
parent a2cb0ecafe
commit 0bc5e7aea9
9 changed files with 167 additions and 22 deletions

View File

@@ -24,11 +24,14 @@ public:
NodePanelLayer* layers;
NodePanelColor* color;
NodePanelStroke* stroke;
std::function<void(int)> on_brush_select;
std::function<void(glm::vec4 color)> on_color_change;
std::function<void()> on_stroke_change;
const uint16_t main_id = const_hash("main");
float width;
float height;
#ifdef __ANDROID__
float zoom = 4.0;
float zoom = 3.0;
#else
float zoom = 1.0;
#endif // __ANDROID__
@@ -43,4 +46,7 @@ public:
bool mouse_down(int button, float x, float y);
bool mouse_move(float x, float y);
bool mouse_up(int button, float x, float y);
bool key_down(int key);
bool key_up(int key);
bool key_char(int key);
};