mirror of
https://github.com/love2d/love.git
synced 2026-08-15 07:41:11 +02:00
Fixed the keypressed and keyreleased handler functions.
--HG-- branch : minor
This commit is contained in:
@@ -154,11 +154,11 @@ function love.createhandlers()
|
||||
|
||||
-- Standard callback handlers.
|
||||
love.handlers = setmetatable({
|
||||
keypressed = function (b, u)
|
||||
if love.keypressed then return love.keypressed(b, u) end
|
||||
keypressed = function (b,s,r)
|
||||
if love.keypressed then return love.keypressed(b,s,r) end
|
||||
end,
|
||||
keyreleased = function (b)
|
||||
if love.keyreleased then return love.keyreleased(b) end
|
||||
keyreleased = function (b,s)
|
||||
if love.keyreleased then return love.keyreleased(b,s) end
|
||||
end,
|
||||
textinput = function (t)
|
||||
if love.textinput then return love.textinput(t) end
|
||||
|
||||
Reference in New Issue
Block a user