CUGL 2.0
Cornell University Game Library
|
#include <CUPinchInput.h>
Public Member Functions | |
PinchEvent () | |
PinchEvent (const Vec2 point, int down, float distance, const Timestamp &stamp) | |
Public Attributes | |
Timestamp | timestamp |
Vec2 | position |
int | fingers |
float | pinch |
float | delta |
This simple class is a struct to hold pinch event information.
|
inline |
Constructs a new touch event with the default values
|
inline |
Constructs a new pinch event with the given values
point | The normalized pinch center |
down | The number of fingers in the pinch |
distance | The delta distance of the pinch |
stamp | The timestamp for the event |
float cugl::PinchEvent::delta |
The pinch delta since the last animation frame
int cugl::PinchEvent::fingers |
The number of fingers involved in this pinch
float cugl::PinchEvent::pinch |
The cumulative pinch distance
Vec2 cugl::PinchEvent::position |
The normalized center of this pinch
Timestamp cugl::PinchEvent::timestamp |
The time of the pinch event