Panda3D
|
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. More...
#include <pandadoc.hpp>
Public Member Functions | |
__init__ () | |
__init__ (const MouseButton) | |
Static Public Member Functions | |
static ButtonHandle | button (int button_number) |
Returns the ButtonHandle associated with the particular numbered mouse button (zero-based), if there is one, or ButtonHandle::none() if there is not. | |
static ButtonHandle | five () |
Returns the ButtonHandle associated with the fifth mouse button. | |
static ButtonHandle | four () |
Returns the ButtonHandle associated with the fourth mouse button. | |
static bool | isMouseButton (ButtonHandle button) |
Returns true if the indicated ButtonHandle is a mouse button, false if it is some other kind of button. | |
static ButtonHandle | one () |
Returns the ButtonHandle associated with the first mouse button. | |
static ButtonHandle | three () |
Returns the ButtonHandle associated with the third mouse button. | |
static ButtonHandle | two () |
Returns the ButtonHandle associated with the second mouse button. | |
static ButtonHandle | wheelDown () |
Returns the ButtonHandle generated when the mouse wheel is rolled one notch downwards. | |
static ButtonHandle | wheelLeft () |
Returns the ButtonHandle generated when the mouse is scrolled to the left. | |
static ButtonHandle | wheelRight () |
Returns the ButtonHandle generated when the mouse is scrolled to the right. | |
static ButtonHandle | wheelUp () |
Returns the ButtonHandle generated when the mouse wheel is rolled one notch upwards. | |
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.
__init__ | ( | ) |
__init__ | ( | const MouseButton | ) |
|
static |
Returns the ButtonHandle associated with the particular numbered mouse button (zero-based), if there is one, or ButtonHandle::none() if there is not.
|
static |
Returns the ButtonHandle associated with the fifth mouse button.
|
static |
Returns the ButtonHandle associated with the fourth mouse button.
|
static |
Returns true if the indicated ButtonHandle is a mouse button, false if it is some other kind of button.
|
static |
Returns the ButtonHandle associated with the first mouse button.
|
static |
Returns the ButtonHandle associated with the third mouse button.
|
static |
Returns the ButtonHandle associated with the second mouse button.
|
static |
Returns the ButtonHandle generated when the mouse wheel is rolled one notch downwards.
|
static |
Returns the ButtonHandle generated when the mouse is scrolled to the left.
Usually, you'll only find the horizontal scroll on laptops.
|
static |
Returns the ButtonHandle generated when the mouse is scrolled to the right.
Usually, you'll only find the horizontal scroll on laptops.
|
static |
Returns the ButtonHandle generated when the mouse wheel is rolled one notch upwards.