PyMML Mouse

This is the PyMML Mouse class.

class mmlmouse.Mouse(MC, cli)

The MML Mouse object communicates directly with libmml, but wraps it around a nice and easy to use layer.

It will allow several ways to set mouse positions and buttons. __getitem__ and __setitem__ are also implemented, so one can access mouse buttons states and positions with [].

getButtonStates()
Get the current states of the mouse buttons.
getPos()
Get the current mouse position as a tuple.
setButtonState(button, downup)
Set the states of the mouse buttons.
setPos(pos)
Set the mouse position to the tuple _pos_.

Previous topic

Python MML

Next topic

PyMML Color

This Page