lovr.mousereleased

Edit

This callback is called when a mouse button is released.

function lovr.mousereleased(x, y, button)
  -- your code here
end

Arguments

NameTypeDescription
xnumber The x position of the mouse when the button was released.
ynumber The y position of the mouse when the button was released.
buttonnumber The button that was released. Will be 1 for the primary button, 2 for the secondary button, or 3 for the middle mouse button.

Returns

Nothing

See also