Events now have 4 arguments (or less)

This commit is contained in:
Bart van Strien
2011-12-20 19:17:26 +01:00
parent adf25991e8
commit d3bd9b1156
6 changed files with 33 additions and 28 deletions
+2 -2
View File
@@ -380,7 +380,7 @@ function love.run()
-- Process events.
if love.event then
love.event.pump()
for e,a,b,c in love.event.poll() do
for e,a,b,c,d in love.event.poll() do
if e == "quit" then
if not love.quit or not love.quit() then
if love.audio then
@@ -389,7 +389,7 @@ function love.run()
return
end
end
love.handlers[e](a,b,c)
love.handlers[e](a,b,c,d)
end
end