CarnegieMellonGraphics2
Typedef MouseEvent::Button
in CarnegieMellonGraphics.h
These are the buttons that CMG recognizes. A mouse event only ever contains one button.
To find out if two buttons are down at the same time, use Window::isButtonDown.
| NO_BUTTON | Matches if no button was pressed |
| LEFT_BUTTON | Matches if the left button was pressed |
| RIGHT_BUTTON | Matches if the right button was pressed |
| MIDDLE_BUTTON | Matches if the middle button was pressed |
| ANY_BUTTON | Matches if any button was pressed |
- See Also:
Window::isButtonDown
Button
public typedef enum { NO_BUTTON, LEFT_BUTTON, RIGHT_BUTTON, MIDDLE_BUTTON, ANY_BUTTON } Button;