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
ButtonHandleassociated with the particular numbered mouse button (zero-based), if there is one, orButtonHandle::none()if there is not.
- static MouseButton.five()¶
Returns the
ButtonHandleassociated with the fifth mouse button.
- static MouseButton.four()¶
Returns the
ButtonHandleassociated with the fourth mouse button.
- static MouseButton.is_mouse_button()¶
Returns true if the indicated
ButtonHandleis a mouse button, false if it is some other kind of button.
- static MouseButton.one()¶
Returns the
ButtonHandleassociated with the first mouse button.
- static MouseButton.three()¶
Returns the
ButtonHandleassociated with the third mouse button.
- static MouseButton.two()¶
Returns the
ButtonHandleassociated with the second mouse button.
- static MouseButton.wheel_down()¶
Returns the
ButtonHandlegenerated when the mouse wheel is rolled one notch downwards.
- static MouseButton.wheel_left()¶
Returns the
ButtonHandlegenerated when the mouse is scrolled to the left. Usually, you’ll only find the horizontal scroll on laptops.
- static MouseButton.wheel_right()¶
Returns the
ButtonHandlegenerated when the mouse is scrolled to the right. Usually, you’ll only find the horizontal scroll on laptops.
- static MouseButton.wheel_up()¶
Returns the
ButtonHandlegenerated when the mouse wheel is rolled one notch upwards.