MouseButton

class MouseButton

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=""]; }
MouseButton.__init__()
static MouseButton.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 MouseButton.five()

Returns the ButtonHandle associated with the fifth mouse button.

static MouseButton.four()

Returns the ButtonHandle associated with the fourth mouse button.

static MouseButton.is_mouse_button()

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

static MouseButton.one()

Returns the ButtonHandle associated with the first mouse button.

static MouseButton.three()

Returns the ButtonHandle associated with the third mouse button.

static MouseButton.two()

Returns the ButtonHandle associated with the second mouse button.

static MouseButton.wheel_down()

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

static MouseButton.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 MouseButton.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 MouseButton.wheel_up()

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