SavinaRoja / PyUserInput

A module for cross-platform control of the mouse and keyboard in python that is simple to install and use.
GNU General Public License v3.0
1.07k stars 244 forks source link

Forgot to (not to) filter mouse move events #67

Closed diogotito closed 9 years ago

diogotito commented 9 years ago

On Windows, when I subclassed PyMouseEvent and instantiated that subclass passing capture=True to the constructor, my mouse would get stuck, as if I made capture_move=True. That was because the MouseAll hook function would filter both the mouse click and move events only by checking the self.capture attribute at line 133, making the the mouse move events captured regardless of the value of self.capture_move.