PyMML Mouse

This is the PyMML Mouse class.

class mouse.Mouse(MC, cli)[source]

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 [].


Get the current states of the mouse buttons.


Get the current mouse position as a tuple.

setButtonState(button, downup)[source]

Set the states of the mouse buttons.


Set the mouse position to the tuple _pos_.