CUGL 2.1
Cornell University Game Library
|
#include <CUMouse.h>
Public Member Functions | |
MouseEvent () | |
MouseEvent (Uint32 state, const Vec2 point, const Timestamp &stamp) | |
Public Attributes | |
Timestamp | timestamp |
ButtonState | buttons |
Vec2 | position |
This simple class is a struct to hold mouse event information
|
inline |
Constructs a new mouse event with the default values
Constructs a new mouse event with the given values
state | The state of the button set |
point | The current mouse position |
stamp | The timestamp for the event |
ButtonState cugl::MouseEvent::buttons |
The current button set; meaning depends on the event
Vec2 cugl::MouseEvent::position |
The current mouse position in screen coordinates
Timestamp cugl::MouseEvent::timestamp |
The time of the mouse event