mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Added a click count argument to love.mousepressed/released. Tracks double/triple/etc. clicks.
--HG-- branch : minor
This commit is contained in:
@@ -169,11 +169,11 @@ function love.createhandlers()
|
||||
mousemoved = function (x,y,dx,dy,t)
|
||||
if love.mousemoved then return love.mousemoved(x,y,dx,dy,t) end
|
||||
end,
|
||||
mousepressed = function (x,y,b,t)
|
||||
if love.mousepressed then return love.mousepressed(x,y,b,t) end
|
||||
mousepressed = function (x,y,b,t,c)
|
||||
if love.mousepressed then return love.mousepressed(x,y,b,t,c) end
|
||||
end,
|
||||
mousereleased = function (x,y,b,t)
|
||||
if love.mousereleased then return love.mousereleased(x,y,b,t) end
|
||||
mousereleased = function (x,y,b,t,c)
|
||||
if love.mousereleased then return love.mousereleased(x,y,b,t,c) end
|
||||
end,
|
||||
wheelmoved = function (x,y)
|
||||
if love.wheelmoved then return love.wheelmoved(x,y) end
|
||||
|
||||
Reference in New Issue
Block a user