CUGL 2.1
Cornell University Game Library
|
#include <CUMouse.h>
Public Member Functions | |
MouseWheelEvent () | |
MouseWheelEvent (const Vec2 offset, const Timestamp &stamp, bool flip=false) | |
Public Attributes | |
Timestamp | timestamp |
Vec2 | direction |
bool | flipped |
This simple class is a struct to hold mouse wheel information
The mouse wheel movement is an integer vector with positive meaning up/right and negative meaning down/left. This directions will be reversed if flipped is true.
|
inline |
Constructs a new mouse wheel event with the default values
|
inline |
Constructs a new mouse wheel event with the given values
offset | The amount the mouse wheel was moved |
stamp | The timestamp for the event |
flip | Whether the direction of the mouse wheel is flipped |
Vec2 cugl::MouseWheelEvent::direction |
The movement of the mouse wheel position
bool cugl::MouseWheelEvent::flipped |
Whether the direction of the mouse wheel is flipped
Timestamp cugl::MouseWheelEvent::timestamp |
The time of the mouse wheel event