xecs.Mouse#

class xecs.Mouse(*args, **kwargs)[source]#

Bases: Resource

Represents the current state of the mouse.

Methods

Attributes

pressed

The currently pressed buttons.

position

The x and y position of the mouse.

Parameters:
  • args (Any) –

  • kwargs (Any) –

position: tuple[int, int]#

The x and y position of the mouse.

pressed: set[MouseButton]#

The currently pressed buttons.