Mouse

class compas_view2.scene.Mouse[source]

Bases: object

Class representing mouse actions and movements.

Attributes:
  • pos (QtCore.QPoint) – The current position of the mouse on the screen.

  • last_pos (QtCore.QPoint) – The last recorded position of the mouse on the screen.

  • buttons (dict) – A dict containing keys “left” and “right” with each an associated boolean indicating if the corresponding mouse button is pressed.

Methods

dx

dy