Implemented love.textinput callback

This commit is contained in:
rxi
2016-09-24 19:45:35 +01:00
parent 7a1feba973
commit f17b39868e
2 changed files with 29 additions and 13 deletions

View File

@@ -78,8 +78,10 @@ int main(void) {
"for _, e in ipairs(love.keyboard.poll()) do\n"
"if e.type == 'down' then\n"
"if love.keypressed then love.keypressed(e.key, e.code) end\n"
"else\n"
"elseif e.type == 'up' then\n"
"if love.keyreleased then love.keyreleased(e.key, e.code) end\n"
"elseif e.type == 'text' then\n"
"if love.textinput then love.textinput(e.text) end\n"
"end\n"
"end\n"
/* Update */