CUGL
Cornell University Game Library
Public Member Functions | Public Attributes | List of all members
cugl::PinchEvent Class Reference

#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
 

Detailed Description

This simple class is a struct to hold pinch event information.

Constructor & Destructor Documentation

cugl::PinchEvent::PinchEvent ( )
inline

Constructs a new touch event with the default values

cugl::PinchEvent::PinchEvent ( const Vec2 point,
int  down,
float  distance,
const Timestamp stamp 
)
inline

Constructs a new pinch event with the given values

Parameters
pointThe normalized pinch center
downThe number of fingers in the pinch
distanceThe delta distance of the pinch
stampThe timestamp for the event

Member Data Documentation

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


The documentation for this class was generated from the following file: