CustomMouse(win, newPos=None, visible=True, leftLimit=None, topLimit=None, rightLimit=None, bottomLimit=None, showLimitBox=False, clickOnUp=False, pointer=None, name=None, autoLog=None)¶
Class for more control over the mouse, including the pointer graphic and bounding box.
Seems to work with pyglet or pygame. Not completely tested.
Known limitations: - only norm units are working - getRel() always returns [0,0] - mouseMoved() is always False; maybe due to
self.mouse.visible == False -> held at [0,0]
Author: Jeremy Gray, 2011
Class for customizing the appearance and behavior of the mouse.
Use a custom mouse for extra control over the pointer appearance and function. It’s probably slower to render than the regular system mouse. Create your visual.Window before creating a CustomMouse.
CustomMouse is a new feature, and subject to change. setPos() does not work yet. getRel() returns [0,0] and mouseMoved() always returns False. clickReset() may not be working.
mro() → list¶
return a type’s method resolution order