Easy way to track what your mouse is doing.
It needn't be a class, but since Joystick works better
as a class this may as well be one too for consistency
|
|
|
|
|
setPos(self,
newPos=(0, 0))
Sets the current postiion of the mouse (pygame only),
in the same units as the :class:`~visual.Window` (0,0) is at centre |
source code
|
|
|
|
|
|
|
getRel(self)
Returns the new position of the mouse relative to the
last call to getRel or getPos, in the same units as the :class:`~visual.Window`. |
source code
|
|
|
|
|
|
|
getVisible(self)
Gets the visibility of the mouse (1 or 0) |
source code
|
|
|
|
|
|
|
getPressed(self)
Returns a 3-item list indicating whether or not buttons
1,2,3 are currently pressed |
source code
|
|