SavinaRoja/PyUserInput — pull request #11 by pythonian4000 (2013-07-29 14:46:18+00:00)
Title: Add "drag" method

Another bit of code from PyLeapMouse that I'd like to push into PyMouse is dragging (with this and scrolling pushed, PyLeapMouse can be entirely migrated to PyUserInput). On OSX, there is a specific event for when the left mouse is dragged while depressed (in PyLeapMouse, this is called instead of the standard "mouse moved" event when the state of the left mouse button is known to be "pressed"). On Windows and X11 there does not seem to be an equivalent, and a standard "mouse moved" event suffices.

Disclaimer: I don't have OSX, so I don't actually know if this OSX-specific event is actually required for dragging, but if it is then a `drag()` method is necessary in PyMouse.