![]()  | 
  
    CUGL 1.1
    
   Cornell University Game Library 
   | 
 
#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 | 
This simple class is a struct to hold pan 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 | 
| offset | The delta distance of the pinch | 
| stamp | The timestamp for the event | 
| 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
 1.8.10