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

[Wiki] mouse_drag event documentation misses "button" parameter

Started by Calculator, 27 December 2012 - 09:20 AM
Calculator #1
Posted 27 December 2012 - 10:20 AM
While fiddling with the new mouse events, I found that the mouse_drag event returns three parameters while the wiki only specifies two. More specifically, the wiki lists the "X-coordinate" and "Y-coordinate" parameters but forgets to mention the first "button" parameter. In effect, mouse_drag returns the same parameters as a mouse_click event.

I would have edited this on the wiki page myself, but apparently normal users cannot do that (I guess spam protection?) and they also cannot start a discussion about a page. Therefore, I'll just post it on these forums, hoping that a wiki editor sees this. If this is not the appropriate spot for this, just let me know what is for future reports. :)/>
Lyqyd #2
Posted 27 December 2012 - 11:16 AM
Moved to Wiki Discussion.
AfterLifeLochie #3
Posted 27 December 2012 - 11:23 AM
Error corrected - this probably happened when I was gluing the pages together. Let me know if there are any other borked events.
Cranium #4
Posted 27 December 2012 - 11:30 AM
There is now a wiki discussion board below the computercraft forums. You can report issues with the wiki there.

Edit: NINJA'D
Edited on 27 December 2012 - 10:30 AM
Calculator #5
Posted 27 December 2012 - 11:33 AM
Moved to Wiki Discussion.
Woops, should have scrolled further down on the forum index. Sorry, my bad! :P/>
Error corrected - this probably happened when I was gluing the pages together. Let me know if there are any other borked events.
Nice! You probably also want to correct it in the Events Types table of os.pullEvent(). ;)/>
AfterLifeLochie #6
Posted 27 December 2012 - 11:34 AM
Nice! You probably also want to correct it in the Events Types table of os.pullEvent(). ;)/>

Fixed as well. :P/>