CUGL 2.1
Cornell University Game Library
|
#include <CUAccelerometer.h>
Public Member Functions | |
AccelerationEvent () | |
AccelerationEvent (const Vec3 roll, const Vec3 diff, const Timestamp &stamp) | |
Public Attributes | |
Timestamp | timestamp |
Vec3 | axis |
Vec3 | delta |
This simple class is a struct to hold acceleration event information
|
inline |
Constructs a new acceleration event with the default values
|
inline |
Constructs a new touch event with the given values
roll | The 3-axes of acceleration |
diff | The acceleration delta from the last recorded value |
stamp | The timestamp for the event |
Vec3 cugl::AccelerationEvent::axis |
The 3-axes of acceleration during this event
Vec3 cugl::AccelerationEvent::delta |
The acceleration delta from the last recorded value
Timestamp cugl::AccelerationEvent::timestamp |
The time of the acceleration event