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.
1
[Wiki] mouse_drag event documentation misses "button" parameter
Started by Calculator, Dec 27 2012 10:20 AM
5 replies to this topic
#1
Posted 27 December 2012 - 10:20 AM
#2
Posted 27 December 2012 - 11:16 AM
Moved to Wiki Discussion.
#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.
#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
Edit: NINJA'D
Edited by Cranium, 27 December 2012 - 11:30 AM.
#5
Posted 27 December 2012 - 11:33 AM
Lyqyd, on 27 December 2012 - 11:16 AM, said:
Moved to Wiki Discussion.
AfterLifeLochie, on 27 December 2012 - 11:23 AM, said:
Error corrected - this probably happened when I was gluing the pages together. Let me know if there are any other borked events.
#6
Posted 27 December 2012 - 11:34 AM
Calculator, on 27 December 2012 - 11:33 AM, said:
Nice! You probably also want to correct it in the Events Types table of os.pullEvent().
Fixed as well.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users