implementing better triangulation

This commit is contained in:
2017-10-11 10:16:54 +01:00
parent 163937b4a6
commit 32ede1be90
8 changed files with 185 additions and 54 deletions

View File

@@ -75,6 +75,11 @@ kEventResult NodeTextInput::handle_event(Event* e)
m_text->set_text(m_string.c_str());
}
}
else if (ke->m_char == '\n' || ke->m_char == '\r') // enter/return
{
if (on_return)
on_return(this);
}
else if (ke->m_char >= 32 && ke->m_char < (32 + 96))
{
m_string += (char)ke->m_char;