added button click event handler

This commit is contained in:
2017-02-12 01:25:20 +00:00
parent fb25ffb347
commit 0d3c48fd98
6 changed files with 54 additions and 67 deletions

View File

@@ -6,17 +6,6 @@ Plane NodeBorder::m_plane;
Plane NodeImage::m_plane;
Sampler NodeImage::m_sampler;
Node* Node::find(const char* ids)
{
uint16_t id = const_hash(ids);
if (id == m_nodeID)
return this;
for (auto& c : *this)
if (c.m_nodeID == id)
return &c;
return nullptr;
}
kEventResult Node::on_event(Event* e)
{
for (auto& c : m_children)