A callback function triggered when the user releases a pressed mouse button i terms of arguments and how it works it is the same as mousepressed
- x [number]: the
xcoordinate of the release
- y [number]: the
ycoordinate of the release
- btn [number]: the ID of the mouse button that was released
- click_count [number]: the amount of releases on this position and button in last 400ms.
function c3d.mousepressed(x,y,btn,click_count) if btn == 0 and click_count == 2 then error("released a double left click at "..x..","..y,0) end end