_mousereleased.md 464 B

This function is called everytime a mouse button is released.

Important Note: Besure to call Controls("mouse") in the first line of the game !


Syntax:

function _mousereleased(x,y,button)
  --Do something here
end

Arguments:

  • x (Number): x position of cursor.
  • y (Number): y position of cursor.
  • button (Number): pressed button, check MouseButtons Enum.