Jump to content




[Wiki] mouse_drag event documentation misses "button" parameter



5 replies to this topic

#1 Calculator

  • Members
  • 14 posts
  • LocationBelgium

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. :)

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,451 posts

Posted 27 December 2012 - 11:16 AM

Moved to Wiki Discussion.

#3 AfterLifeLochie

    Wiki Oracle

  • Moderators
  • 480 posts
  • LocationAfterLifeLochie's "Dungeon", Australia

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 Cranium

    Ninja Scripter

  • Moderators
  • 4,031 posts
  • LocationLincoln, Nebraska

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 by Cranium, 27 December 2012 - 11:30 AM.


#5 Calculator

  • Members
  • 14 posts
  • LocationBelgium

Posted 27 December 2012 - 11:33 AM

View PostLyqyd, on 27 December 2012 - 11:16 AM, said:

Moved to Wiki Discussion.
Woops, should have scrolled further down on the forum index. Sorry, my bad! :P

View PostAfterLifeLochie, 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.
Nice! You probably also want to correct it in the Events Types table of os.pullEvent(). ;)

#6 AfterLifeLochie

    Wiki Oracle

  • Moderators
  • 480 posts
  • LocationAfterLifeLochie's "Dungeon", Australia

Posted 27 December 2012 - 11:34 AM

View PostCalculator, 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. :P





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users