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

[SOLVED] [Lua] [Question] How to use the mouse api?

Started by aura, 08 November 2012 - 04:01 PM
aura #1
Posted 08 November 2012 - 05:01 PM
I don't know how to use the mouse api and I want to. There is lots of talk about mouse but I'm unsure how to use it.
An example would also be nice. Thanks!
Watcher7 #2
Posted 08 November 2012 - 05:09 PM
Mouse information is handled via events:
http://computercraft.info/wiki/index.php?title=Os.pullEvent#Event_Types
aura #3
Posted 08 November 2012 - 05:15 PM
Sorry, but… how do you use that event?
(Haha! Im new to this sorry!)
Watcher7 #4
Posted 08 November 2012 - 05:24 PM
Sorry, but… how do you use that event?
(Haha! Im new to this sorry!)
To get a basic understanding of os.pullEvent please refer to: http://www.computerc...1156#entry11156
After that it's up to you to decide on how to best use it.
aura #5
Posted 08 November 2012 - 05:49 PM
Thank you!
Watcher7 #6
Posted 08 November 2012 - 05:50 PM
Thank you!
No problem, just be sure to indent. :P/>/>