mouse up (event)
From ComputerCraft Wiki
Examples
![]() | |
Print every button, x and y coordinates of every mouse_up event. | |
Code |
while true do local event, button, x, y = os.pullEvent( "mouse_up" ) print( "The mouse button ", button, " was released at ", x, " and ", y ) end |
Output | The button that was released, followed by the X and Y position of where it was released. |