From d03e297a9a981b0f27f6a4ac411e4ff16d0740af Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 24 Sep 2016 13:48:15 +0100 Subject: [PATCH] Fixed love.errhand() -- replaced use of getEvents() with poll() --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index bae4f8f..9f91e43 100644 --- a/src/main.c +++ b/src/main.c @@ -106,7 +106,7 @@ int main(void) { "pcall(love.graphics.setBackgroundColor, 89, 157, 220)\n" /* Do error main loop */ "while true do\n" - "for _, e in ipairs(love.keyboard.getEvents()) do\n" + "for _, e in ipairs(love.keyboard.poll()) do\n" "if e.type == 'down' and e.code == 1 then\n" "os.exit()\n" "end\n"