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

Can't seem to find documentation on mouse_click and mouse_drag

Started by Jasonfran, 27 October 2012 - 01:15 PM
Jasonfran #1
Posted 27 October 2012 - 03:15 PM
I am gonna try and make one of the best OSes ever but I can't find any documentation on the mouse functions. I'd appreciate some help please. Thanks in advance
ChunLing #2
Posted 27 October 2012 - 03:39 PM
You want the os.pullEvent() "mouse_click".
Jasonfran #3
Posted 27 October 2012 - 03:45 PM
In the paint program there is a mouse_drag event. Where is the information about that?
ChunLing #4
Posted 27 October 2012 - 03:50 PM
You can try asking the program creator about it.

Or you can use a repeat t_event = {os.pullEvent()} print(textutils.serialize(t_event)) until t_event[2] == "X" to check out what kinds of events you can see. Play around, just don't press Shift+X till you're done.
Edited on 27 October 2012 - 01:53 PM