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

◆ PanEvent() [1/2]

cugl::PanEvent::PanEvent ( )
inline

Constructs a new touch event with the default values

◆ PanEvent() [2/2]

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

◆ delta

Vec2 cugl::PanEvent::delta

The pan delta since the last animation frame

◆ fingers

int cugl::PanEvent::fingers

The number of fingers involved in this pan

◆ pan

Vec2 cugl::PanEvent::pan

The cumulative pan vector

◆ position

Vec2 cugl::PanEvent::position

The normalized center of this pan

◆ timestamp

Timestamp cugl::PanEvent::timestamp

The time of the pan event


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