Mouse event in pyleap



Attributes:

  1. mouse.x = returns the x-coordinate of mouse position
  2. mouse.y = returns the y-coordinate of mouse position
  3. mouse.LEFT = returns True if the left mouse button is pressed
  4. mouse.RIGHT = returns True if the right mouse button is pressed

Methods:

  1. on_move(function) – The function will be called when the mouse moves.
  2. on_press(function) – The function will be called when left mouse button is pressed.
  3. on_release(function) – The function will be called when left mouse button is released.
  4. on_right_press(function) – The function will be called when right mouse button is pressed.
  5. on_right_release(function) – The function will be called when right mouse button is released.