Jump to content




Can't seem to find documentation on mouse_click and mouse_drag


  • You cannot reply to this topic
3 replies to this topic

#1 Jasonfran

  • Members
  • 148 posts
  • LocationEngland

Posted 27 October 2012 - 02: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

#2 ChunLing

  • Members
  • 2,027 posts

Posted 27 October 2012 - 02:39 PM

You want the os.pullEvent() "mouse_click".

#3 Jasonfran

  • Members
  • 148 posts
  • LocationEngland

Posted 27 October 2012 - 02:45 PM

In the paint program there is a mouse_drag event. Where is the information about that?

#4 ChunLing

  • Members
  • 2,027 posts

Posted 27 October 2012 - 02: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 by ChunLing, 27 October 2012 - 02:53 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users