![]() |
CUGL 2.5
Cornell University Game Library
|
#include <CUPanGesture.h>
Public Member Functions | |
| PanEvent () | |
| PanEvent (const Timestamp &start, const Vec2 position, Uint32 fingers) | |
| PanEvent (const PanEvent &event) | |
| void | clear () |
Public Attributes | |
| Timestamp | start |
| Timestamp | now |
| Vec2 | origPosition |
| Vec2 | currPosition |
| Vec2 | delta |
| Uint32 | fingers |
This simple class is a struct to hold a pan event.
A pan event is a gesture with duration. Hence this event stores information about the start of the event, as well as the current status of the event.
|
inline |
Constructs a new pan event with the default values
Constructs a new pan event with the given values
| start | The initial timestamp |
| position | The starting location |
| fingers | The number of fingers uses |
|
inline |
Constructs a new pan event that is a copy of the given one
| event | The event to copy |
|
inline |
Clears the contents of this pan event
| Vec2 cugl::PanEvent::currPosition |
The current position of the pan
| Vec2 cugl::PanEvent::delta |
The change since the last generated event
| Uint32 cugl::PanEvent::fingers |
The number of fingers involved in this pan
| Timestamp cugl::PanEvent::now |
The current time of the gesture
| Vec2 cugl::PanEvent::origPosition |
The initial position of the pan
| Timestamp cugl::PanEvent::start |
The starting time of the gesture