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
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
The mouse wheel scrolling has no released events because there is no physical release of the wheel. When scrolling the wheel will send a signal for either up or down. The user/player has either scrolled and fired the event or not scrolled at all. It is not possible to 'hold down the mouse scroll' - continuous scrolling will just fire multiple events.
There is nothing wrong with the second example you posted.
Do you recognise when the world won't stop for you? Or when the days don't care what you've got to do? When the weight's too tough to lift up, what do you? Don't let them choose for you, that's on you.