Mouse Wheel Down/Up does not available in the love.mouserele
Posted: Wed Jan 01, 2014 1:27 pm
Mouse Wheel Down/Up does not available in the love.mousereleased()
this program is NO function
change to
This program is available
in the Wiki http://www.love2d.org/wiki/love.mousereleased,the "wd" and "wu" are also in the MouseConstant
Code: Select all
function love:load()
count = 1
end
function love.draw()
love.graphics.print(count,100,100)
end
function love.mousepressed(x, y, button)
end
function love.mousereleased(x, y, button)
if button == "wd" then
count = count +1
end
end
change to
Code: Select all
function love:load()
count = 1
end
function love.draw()
love.graphics.print(count,100,100)
end
function love.mousepressed(x, y, button)
if button == "wd" then
count = count +1
end
end
function love.mousereleased(x, y, button)
end
in the Wiki http://www.love2d.org/wiki/love.mousereleased,the "wd" and "wu" are also in the MouseConstant