vispy.scene.events module

class vispy.scene.events.SceneMouseEvent(event, visual)

Bases: vispy.util.event.Event

Represents a mouse event that occurred on a SceneCanvas. This event is delivered to all entities whose mouse interaction area is under the event.

property button

The button pressed or released on this event.

property buttons

A list of all buttons currently pressed on the mouse.

copy()
property delta

The increment by which the mouse wheel has moved.

property last_event

The mouse event immediately prior to this one. This property is None when no mouse buttons are pressed.

property pos

The position of this event in the local coordinate system of the visual.

property press_event

The mouse press event that initiated a mouse drag, if any.

property visual