Mouse event in pyleap
Attributes:
- mouse.x = returns the x-coordinate of mouse position
- mouse.y = returns the y-coordinate of mouse position
- mouse.LEFT = returns True if the left mouse button is pressed
- mouse.RIGHT = returns True if the right mouse button is pressed
Methods:
- on_move(function) – The function will be called when the mouse moves.
- on_press(function) – The function will be called when left mouse button is pressed.
- on_release(function) – The function will be called when left mouse button is released.
- on_right_press(function) – The function will be called when right mouse button is pressed.
- on_right_release(function) – The function will be called when right mouse button is released.