#include <mouseButton.h>
Static Public Member Functions | |
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. | |
ButtonHandle | one () |
Returns the ButtonHandle associated with the first mouse button. | |
ButtonHandle | two () |
Returns the ButtonHandle associated with the second mouse button. | |
ButtonHandle | three () |
Returns the ButtonHandle associated with the third mouse button. | |
bool | is_mouse_button (ButtonHandle button) |
Returns true if the indicated ButtonHandle is a mouse button, false if it is some other kind of button. | |
void | init_mouse_buttons () |
This is intended to be called only once, by the static initialization performed in config_util.cxx. |
Definition at line 40 of file mouseButton.h.
|
Returns the ButtonHandle associated with the particular numbered mouse button (zero-based), if there is one, or ButtonHandle::none() if there is not.
Definition at line 47 of file mouseButton.cxx. References _buttons. |
|
This is intended to be called only once, by the static initialization performed in config_util.cxx.
Definition at line 131 of file mouseButton.cxx. |
|
Returns true if the indicated ButtonHandle is a mouse button, false if it is some other kind of button.
Definition at line 110 of file mouseButton.cxx. |
|
Returns the ButtonHandle associated with the first mouse button.
Definition at line 65 of file mouseButton.cxx. Referenced by Trackball::apply(). |
|
Returns the ButtonHandle associated with the third mouse button.
Definition at line 95 of file mouseButton.cxx. References _buttons, nassertv, num_mouse_buttons, ButtonRegistry::ptr(), and ButtonRegistry::register_button(). Referenced by Trackball::apply(). |
|
Returns the ButtonHandle associated with the second mouse button.
Definition at line 80 of file mouseButton.cxx. References _buttons, and num_mouse_buttons. Referenced by Trackball::apply(). |