CUGL 2.0
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

◆ PinchEvent() [1/2]

cugl::PinchEvent::PinchEvent ( )
inline

Constructs a new touch event with the default values

◆ PinchEvent() [2/2]

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

◆ delta

float cugl::PinchEvent::delta

The pinch delta since the last animation frame

◆ fingers

int cugl::PinchEvent::fingers

The number of fingers involved in this pinch

◆ pinch

float cugl::PinchEvent::pinch

The cumulative pinch distance

◆ position

Vec2 cugl::PinchEvent::position

The normalized center of this pinch

◆ timestamp

Timestamp cugl::PinchEvent::timestamp

The time of the pinch event


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