Added keyrepeat support to keyboard

This commit is contained in:
rxi
2016-09-25 21:00:43 +01:00
parent d9ddfea4df
commit 06cb68125a
2 changed files with 27 additions and 17 deletions

View File

@@ -77,7 +77,7 @@ int main(void) {
/* Keyboard events */
"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"
"if love.keypressed then love.keypressed(e.key, e.code, e.isrepeat) end\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"