MouseButton

from acron.core import MouseButton
class MouseButton

Bases:

This class is just used as a convenient namespace for grouping all of these handy functions that return buttons which map to standard mouse buttons.

Inheritance diagram

digraph inheritanceb55e968081 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "MouseButton" [URL="acron.core.MouseButton.html#acron.core.MouseButton",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "MouseButton" [arrowsize=0.75,style=""]; }
__init__()
static button()

Returns the ButtonHandle associated with the particular numbered mouse button (zero-based), if there is one, or ButtonHandle.none() if there is not.

static five()

Returns the ButtonHandle associated with the fifth mouse button.

static four()

Returns the ButtonHandle associated with the fourth mouse button.

static is_mouse_button()

Returns true if the indicated ButtonHandle is a mouse button, false if it is some other kind of button.

static one()

Returns the ButtonHandle associated with the first mouse button.

static three()

Returns the ButtonHandle associated with the third mouse button.

static two()

Returns the ButtonHandle associated with the second mouse button.

static wheel_down()

Returns the ButtonHandle generated when the mouse wheel is rolled one notch downwards.

static wheel_left()

Returns the ButtonHandle generated when the mouse is scrolled to the left. Usually, you’ll only find the horizontal scroll on laptops.

static wheel_right()

Returns the ButtonHandle generated when the mouse is scrolled to the right. Usually, you’ll only find the horizontal scroll on laptops.

static wheel_up()

Returns the ButtonHandle generated when the mouse wheel is rolled one notch upwards.