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

#include <CUPanInput.h>

Public Member Functions

 PanEvent ()
 
 PanEvent (const Vec2 &point, const Vec2 &offset, int down, const Timestamp &stamp)
 

Public Attributes

Timestamp timestamp
 
Vec2 position
 
Vec2 pan
 
Vec2 delta
 
int fingers
 

Detailed Description

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

Constructor & Destructor Documentation

cugl::PanEvent::PanEvent ( )
inline

Constructs a new touch event with the default values

cugl::PanEvent::PanEvent ( const Vec2 point,
const Vec2 offset,
int  down,
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
offsetThe delta distance of the pinch
stampThe timestamp for the event

Member Data Documentation

Vec2 cugl::PanEvent::delta

The pan delta since the last animation frame

int cugl::PanEvent::fingers

The number of fingers involved in this pan

Vec2 cugl::PanEvent::pan

The cumulative pan vector

Vec2 cugl::PanEvent::position

The normalized center of this pan

Timestamp cugl::PanEvent::timestamp

The time of the pan event


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