xecs.MouseButton#

class xecs.MouseButton(number)[source]#

Bases: object

Represents a mouse button.

Parameters:

number (int) – The number of the button.

Methods

left

The left button.

middle

The middle button.

right

The right button.

xinput1

The first extra button.

xinput2

The second extra button.

Attributes

number

The number of the button.

static left()[source]#

The left button.

Return type:

MouseButton

static middle()[source]#

The middle button.

Return type:

MouseButton

static right()[source]#

The right button.

Return type:

MouseButton

static xinput1()[source]#

The first extra button.

Return type:

MouseButton

static xinput2()[source]#

The second extra button.

Return type:

MouseButton

number: int#

The number of the button.