Generic description of a mouse event. More...
#include <common/common.hh>
Public Types | |
enum | Buttons { NO_BUTTON = 0x0, LEFT = 0x1, MIDDLE = 0x2, RIGHT = 0x4 } |
Standard mouse buttons enumeration. More... | |
enum | EventType { NO_EVENT, MOVE, PRESS, RELEASE, SCROLL } |
Mouse event types enumeration. More... | |
Public Member Functions | |
MouseEvent () | |
Constructor. | |
Public Attributes | |
bool | alt |
Alt key press flag. | |
unsigned int | button |
The button which caused the event. | |
unsigned int | buttons |
State of the buttons when the event was generated. | |
bool | control |
Control key press flag. | |
bool | dragging |
Flag for mouse drag motion. | |
float | moveScale |
Scaling factor. | |
math::Vector2i | pos |
Mouse pointer position on the screen. | |
math::Vector2i | pressPos |
Position of button press. | |
math::Vector2i | prevPos |
Previous position. | |
math::Vector2i | scroll |
Scroll position. | |
bool | shift |
Shift key press flag. | |
EventType | type |
Event type. | |
Generic description of a mouse event.
|
inline |
Constructor.
bool gazebo::common::MouseEvent::alt |
Alt key press flag.
unsigned int gazebo::common::MouseEvent::button |
The button which caused the event.
unsigned int gazebo::common::MouseEvent::buttons |
State of the buttons when the event was generated.
bool gazebo::common::MouseEvent::control |
Control key press flag.
bool gazebo::common::MouseEvent::dragging |
Flag for mouse drag motion.
float gazebo::common::MouseEvent::moveScale |
Scaling factor.
math::Vector2i gazebo::common::MouseEvent::pos |
Mouse pointer position on the screen.
math::Vector2i gazebo::common::MouseEvent::pressPos |
Position of button press.
math::Vector2i gazebo::common::MouseEvent::prevPos |
Previous position.
math::Vector2i gazebo::common::MouseEvent::scroll |
Scroll position.
bool gazebo::common::MouseEvent::shift |
Shift key press flag.
EventType gazebo::common::MouseEvent::type |
Event type.