Added a click count argument to love.mousepressed/released. Tracks double/triple/etc. clicks.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2016-09-27 22:46:55 -03:00
parent 25376ba310
commit b38e567e74
4 changed files with 91 additions and 39 deletions
+4 -4
View File
@@ -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