Callback function triggered when a mouse button is released.
Available since LÖVE 0.10.0
This variant is not supported in earlier versions.
love.mousereleased( x, y, button, istouch )
number x
number y
number button
boolean istouch
Nothing.
Removed in LÖVE 0.10.0
This variant is not supported in that and later versions.
love.mousereleased( x, y, button )
number x
number y
MouseConstant button
Nothing.
Position a string ("Text") wherever the user releases the primary mouse button.
function love.load() printx = 0 printy = 0 end function love.draw() love.graphics.print("Text", printx, printy) end function love.mousereleased(x, y, button) if button == 1 then printx = x printy = y end end
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/love.mousereleased