Implemented love.textinput callback
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user