This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
FoxData's profile picture

Event = Mouse.Drag()

Started by FoxData, 13 April 2016 - 06:34 PM
FoxData #1
Posted 13 April 2016 - 08:34 PM
Hi everyone. I had this idea for a new type of system event - This time it checks if the mouse has dragged something (Left/Right click + move mouse).


While true do
Event = Mouse.Drag("Left", "RMB",)
If Event = (1, 1) then print ("You're mouse has reached the corner of the screen - Yaaay!!!")

End
	  End
SquidDev #2
Posted 13 April 2016 - 08:42 PM
There already is a mouse_drag event.