mouse up (event)
From ComputerCraft Wiki
Revision as of 11:43, 28 June 2015 by MKlegoman357 (Talk | contribs) (Created page with "{{lowercase}} {{Event |name=mouse_up |desc=Fired when a mouse key (which was pressed while being inside the computer's terminal) is released. If the mouse button is released o...")
Examples
Example | |
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. |